Search code examples
google-analyticstagse-commercegoogle-tag-managergoogle-datalayer

Google Tag Manager Trigger for Data Layer is not Showing the Tag


I have been reading the new documentation for Google Tag Manager, and based on that have created a custom event which looks like this: enter image description here

enter image description here

Here event is the key and the value is Shop Now Start. I am pushing this in the Data layer in my website. But at the point, where these key value pairs are pushed in my data layer, the respective tag is not being triggered.

Besides the event key/value pair, how can I go about setting a trigger that is fired when a key value pair has a certain value (e.g. userId='12')

Also, when I am setting the trigger, can I set the value to be boolean false? (e.g. isNew='true'


Solution

  • The problem was that my website is a single page architecture. So custom Event triggers don't work. So instead need to create a history change trigger