Search code examples
google-tag-manager

Google Tag Manager _event macro


I'm trying to set up Google Tag Manager. To keep it simple I created a click event tag that fires on all pages. When I get I see that the event fires on page load. However, it and all other tags I've tried fail because of not matching the rule '_event equals gtm.js'. I did not make this rule. I found this SO question Events not firing with UA and GTM - event equals gtm.js condition is not matched but the solution of creating a new container did not work for me.

Anyone know where this _event macro is and how to get rid of it?


Solution

  • I will preface with this with: I'm not exactly sure this is right because I have no real proof other than the behavior I see.

    If you don't give the rule an event condition it defaults to '_event equals gtm.js'. So it only passes the condition when the GTM script is loaded. Adding an event rule condition seems to keep GTM from adding the _event condition.