Why is my GTM tag not firing?

Why is my GTM tag not firing?

Incorrect trigger. The first thing you should check in order to find out why your tag did not fire in GTM is firing triggers. In order for a tag to fire, ALL conditions in a single trigger must be met. If a tag is linked to multiple triggers, AT LEAST ONE of triggers must be activated.

How do I enable GTM in debugging?

Enable preview and debug mode

  1. Click Preview in the top right of your workspace.
  2. Enter your site’s URL.
  3. Some sites or pages might be broken by an additional debug parameter added to the URL.
  4. Click Connect.
  5. Click back on the Tag Assistant tab and click Continue to access the debug interface.

How do I test a GTM dataLayer?

What I would do is type dataLayer into the console after dataLayer. push, then click on the last object in the array and you’ll see your values. For instance, I put the dataLayer. push on an onclick event and ran dataLayer and was able to see this come through.

How do I enable GTM?

Setup and install Tag Manager

  1. Create an account, or use an existing account, at tagmanager.google.com. (A new container is created by default, and you can create additional containers within each account.)
  2. Install the container in your website or mobile app.
  3. Add and publish your tags.

How do you test if a tag is firing?

How to Check Google Tag Manager is Working

  1. Open Google Tag Manager and click Preview in the top right corner.
  2. Next navigate to your website. You may need refresh the browser. The debug console will open at the open of the browser window.
  3. Evaluate what tag are being fired on the page and which ones are not fired.

How does the event key work in GTM?

Sometimes, these Event conditions are obfuscated under template semantics, but you can also create a Custom Event Trigger, where you specify the value of the ‘event’ key in dataLayer that fires your tag. You can read more about the relationship between GTM events and Tags in these two posts:

Why is the empty DataLayer not working in Google Tag Manager?

You don’t need to initiate empty dataLayer (there’s no data between the brackets []) because Google Tag Manager container does that automatically for you. In the screenshot above, the empty dataLayer = [ {}]; has reset (and damaged) the data layer because it is placed below the GTM container.

Why does GTM process past states of DataLayer?

This is because GTM processes the past states of dataLayer as well, which have been defined before the container snippet started to process the data structure. If you take a look at the #GTMtips picture for this post, you can see an example of this.

What does the debug interface on Google Tag Manager show?

The debug interface shows detailed information about your tags, including how tags fired and what data is being processed. The debug interface will only appear on the same browser that was used to enable preview mode, or for shared users, and is not visible to your regular website visitors.