Profile cover photo
Profile photo
Andy Scott
Digital Analytics Guy
Digital Analytics Guy
About
Andy's posts

Post has shared content
holy crap this is exactly what i wanted to do the moment both arrive

Post has shared content
Just sharing my generic GTM containers templates/recipes...

The generic login for these is:
username: coolgtmstuff@gmail.com
password: philrulesgtm8

Or if the login does not work you can import using these links...

Generic CMS:
https://www.dropbox.com/s/woak00y749jk36e/AUTO-EVENTS%20-%20NEW%20interface.json?dl=0

Wordpress (mapped to GTM for Wordpress)
https://www.dropbox.com/s/qgzd0lny273j100/WORDPRESS%20TEMPLATE%20-%20NEW%20interface.json?dl=0
https://en-gb.wordpress.org/plugins/duracelltomi-google-tag-manager/

Magento (mapped to Qubit dataLayer)
https://www.dropbox.com/s/rc2ew58w3ls3quk/MAGENTO%20-%20mapped%20to%20qubit%20-%20NEW%20interface.json?dl=0
https://www.magentocommerce.com/magento-connect/qubit-universal-variable.html

Drupal (mapped to plugin)
https://www.dropbox.com/s/uoa19tp8zjt4c03/DRUPAL%20-%20work%20in%20progress%20-%20NEW%20interface.json?dl=0
https://www.drupal.org/project/google_tag
https://www.drupal.org/project/datalayer
https://www.drupal.org/project/commerce_google_tag_manager

Bootstrap
https://www.dropbox.com/s/bly0i85i134qe6a/BOOTSTRAP%20-%20DEMO%20SITE%20-%20NEW%20interface.json?dl=0

Angulartics (mapped to plugin)
https://www.dropbox.com/s/bbkchg7m32eu06t/Angulartics.json?dl=0
http://angulartics.github.io/

AMP (new)
https://www.dropbox.com/s/01ccor3fmbx6hfr/AMP.json?dl=0

APP - iOS FireBase (new)
https://www.dropbox.com/s/8f1s561xe4ehqop/APP%20-%20NEW%20interface%20-%20FireBase.json?dl=0

APP - Legacy
https://www.dropbox.com/s/8lzc5o7awwtijat/APP%20-%20NEW%20interface.json?dl=0

JSONLD
https://www.dropbox.com/s/d7ti8fv8vfhdf3e/JSON%20-ld%20-%20NEW%20interface.json?dl=0

Yandex.Metrika
https://www.dropbox.com/s/b38649b2o0izqm3/Yandex.Metrika%20-%20NEW%20interface.json?dl=0

Thanks

Phil.
Photo

Post has shared content
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  

Post has shared content
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
Photo

Post has shared content

Post has shared content
Want to start tracking hover events with Google Tag Manager? Download our new GTM recipe and learn how to start tracking with this guide.

Post has shared content
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>?

Post has shared content
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

Post has attachment
hahahaha great ad NoIP...great ad :)
Wait while more posts are being loaded