Why isn't my Google Tag Manager event listener being installed?

780 views Asked by At

I have a very simple Google Tag Manager trigger that looks like this:

GTM trigger info

I also have a corresponding tag that uses this trigger. I have published my container, and the tag shows up when previewing/debugging the container:

Debugging the container

I also see my link's id in the response from GTM. However, I don't see a GTM listener for click events on my page:

enter image description here

And, moreover, no GTM action occurs when I click the link. (The link is a simple a tag with id="currentcustomer".)

What am I missing here?

2

There are 2 answers

0
nyuen On BEST ANSWER

Uncheck "Wait for Tags" and "Check Validation". When either of these is specified, you get the "Enable When" section of the tag which allows you to specify when the trigger should be listening for the related event. Some good information can be found here: http://www.simoahava.com/analytics/trigger-guide-google-tag-manager/

Check Validation, when checked, will require that a valid action is propagated to GTM’s listeners. With Link Clicks this means that there’s no event.preventDefault() called by other scripts. In other words, the link click has to be an actual link click, where the action of clicking the link takes the user to another page.

and

Wait For Tags ensures that all tags that fire on the trigger execute first before proceeding with the action of the event. So if it’s a Link Click trigger, the redirect (or whatever is the action) is halted long enough for all dependent tags to complete execution, after which the action is resumed. Same thing with forms.

0
ePetkov On

Actually I think you got it all wrong from the beginning. First - as @nyuen points - turn off the waiting/validation. Then you want to choose "Some clicks" on firing rules, and there you should create your rule to element ID equals currentcustomer.