Pushing data to the right Google Tag Manager dataLayer namespace
It may happen that the site we're tracking is using a custom dataLayer name, or that it's using more than one Google Tag Manager accounts at the same time and therefore (it should) using 2 different dataLayer namespaces. Most of people just push the info to window.dataLayer variable, but it could be window.myOwnDataLayerNS . So we'd need to adapt our dataLayer pushes to that variable name. So we're going to setup a Macro that…
- Date