Profile

Cover photo
Verified name
Andy Scott
Works at Perficient
Attends Hard Knocks University
1,913,799 views
AboutPostsCollections

Stream

Andy Scott

Shared publicly  - 
 
Critical knowledge right here
 
10 JavaScript Concepts for Web Analytics Implementation

Anyone working with the web should have a working knowledge of JavaScript. There's no excuses! If you happen to work with web analytics, I dare say there's no other more important technical skill.

In this article, I list 10 JavaScript concepts which I consider absolutely vital for anyone working with analytics implementations to grasp.

#gde   #blogpost   #googleanalytics   #googletagmanager  
Here are 10 JavaScript concepts I consider fundamental for anyone working with web analytics. They range from simple to advanced.
1 comment on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Table variable generator, by the GTM community resident Stephen Harris.
Wish GTM lookup tables were easier to make, or more flexible? We did. So we built a tool that creates lookup tables, regex tables, and more.
3 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Currently in a back and forth with a client about adding GTM's javascript container tag to the <head> instead of opening body. Keeping my own opinion silent (for the moment).

Of course, I thought that this forum would be a good place to poll some of my expert friends. Especially +Brian Kuhn. :-)

What say you? Should GTM's javascript run from the <head> or <body>?
21 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
hahahaha great ad NoIP...great ad :)
2
Add a comment...

Andy Scott

Shared publicly  - 
 
 
For anyone interested in Google Data Studio, I recently published a post looking at some of the more advanced features like multiple pages, page-level filters and calculated fields: http://www.benlcollins.com/dashboard/google-data-studio-tips/
A close look at the Google Data Studio business dashboard reporting tool. In this post I look at 6 techniques to master for creating dashboard reports using this tool, including filtering and calcu…
2 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Can anyone shed some light on the purpose of the tracker name in GA - universal analytics tags. Is this something to do with ajax sites and what will happen if I untick it? (I didn't create the GA tag initially and have read that its use is highly discouraged)
8 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Container Snippet placement recommendation now officially changed to <head>

FINALLY! The recommendation for where to put the Google Tag Manager container snippet has changed. The official word is now to put it in <head>.

This is significant, because <head> is the correct place for all asynchronously loading libraries, but GTM's documentation had been steadfast in recommending it to be placed in the beginning of <body>. With this change, the library will start loading earlier in the page load sequence, and as a result your tracking accuracy will improve.

If you want search console verification to still work, and if you care about JavaScript-less users, you'll need to leave the <noscript></noscript> block in the beginning of <body>.

https://developers.google.com/tag-manager/quickstart

H/T +Scott Herman
13 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Want to start tracking hover events with Google Tag Manager? Download our new GTM recipe and learn how to start tracking with this guide.
Want to start tracking hover events with Google Tag Manager? Download our new GTM recipe and learn how to start tracking with this guide.
View original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Optimizing Variables

Anyone have best practices for optimizing a large container, particularly its variables?  I have a container with 250+ variables, 60+ triggers and 50+ tags.  I'm comfortable with optimizing tags, but I don't totally understand how/when variables are resolved.  I have three main questions:

First: ~100 of those variables are constant custom dimension slot numbers for GA.  Are those getting resolved and re-resolved with every event, if they're only used inside my GA tags?  If so, would it notably lighten/speed up my container to replace them in the tags with their values, and do away with the variables entirely?

Second: I'm rewriting page URLs before I send them to GA, and using a fairly hefty custom javascript variable to do so.  Since this only needs to execute when the page loads, would it be helpful to put an "if ({{Event}} == 'gtm.dom'", or something similar, around the variable, to limit how often it's resolved?

Third: I also have a large number of dataLayer variables.  Would it be more efficient to just set up a single variable pointing to the dataLayer itself, and then access its values through that variable - or do I really need a single dataLayer-type variable for each dataLayer key?

Thanks in advance for any help!

Angela
2 comments on original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Tableau makes it simple to connect directly to Google Analytics through their native GA connector and Google Sheets Web Connector.
Tableau makes it simple to connect directly to Google Analytics through their native GA connector and Google Sheets Web Connector.
View original post
1
Add a comment...

Andy Scott

Shared publicly  - 
 
 
Just sharing a tip for accessing meta elements via GTM. This is very useful for contentGrouping...
1 comment on original post
1
Add a comment...
Andy's Collections
Work
Occupation
Digital Analytics
Skills
nunchuku skills, bow hunting skills, computer hacking skills
Employment
  • Perficient
    Senior Digital Analytics Consultant, 2011 - present
  • Llywelyn's Pub
    Food Runner, 2010 - present
  • Network Solutions
    Corporate SEO Developer, 2006 - 2011
Basic Information
Gender
Male
Looking for
Friends, Networking
Relationship
Married
Story
Tagline
Digital Analytics Guy
Introduction
I've made computer "things" my life ever since I was 13. I love technology and how it helps us in everything we do today.  I work for Perficient as a business consultant that specializes in Digital Analytics and I work nights and weekends at Llywelyn's Pub St. Charles.  

Self imposed title
: Professional Internet Sponge

Words of wisdom
"Be smart enough to surround yourself with smarter people."

"Never be the smartest person in the room"

"It never hurts to ask, unless of course you're asking for a beating..."

"If you know something I don't, congrats...you belong to a exclusive club that has 6.8 Billion members."

"Why reinvent the wheel when you can rip off the rocket?"

"I'm 25% funny and 85% bad at math"

"Even a stopped clock is right two times a day"

Circles I might fit in?
  • By day: SEO/OLM/Web Analytics
  • By night: Gamer, Tech Consumer, Electronic Music Lover
Bragging rights
Solved a Rubik's cube while driving in the rain one handed...wouldn't recommend it.
Education
  • Hard Knocks University
    Failing at everything, present
  • University of Missouri, Columbia
    Computer Science
  • St Charles County Community College
    Multi Media and Web Design
  • Elsberry High School
    1996 - 1999