Analytics
2.4K members online now
2.4K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Google Tag Manager - Event Tag for Anchor Tag?

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi,

Could someone please help me out with a GTM trigger for this anchor tag:

<a href="#primary" class="roll-button button-slider">Click to begin</a>

 

Below is my tag & trigger setup -which isn't working either on Preview or on Real Time Events. Thanks for any help.

 

Anchor Tag.JPG

 

Anchor Trigger.JPG

Google Tag Manager - Event Tag for Anchor Tag?

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆

Hi @Bluelake,

Kindly check the variable Click text in GTM debugger (preview mode) when you click the button. Also check for unique combination of other variables only for that event, to apply as triggers.
For Eg: Click url contains ,Click class contains ,page path contains etc

Hope this helps,
Thanks,
Ritwik 

Google Tag Manager - Event Tag for Anchor Tag?

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆

Hi Ritwik,

 

Many thanks for your help but no luck yet. For the trigger, I have these settings (as in photo above):

Clicks- Just Links

Wait for Tags and Check Validation - unticked

Fire on some links-

And I've tried ....

Click Text equals/contains/starts with "Click to begin"

Click url equals/contains "#primary", "primary"

Click calls contains/equals "roll-button button-slider"

Not sure how to employ "page path"?

 

After saving the trigger, I've gone to Preview and clicked on the button; the "Click to begin" tag wasn't fired Smiley Sad

 

Spot any errors please?

Re: Google Tag Manager - Event Tag for Anchor Tag?

[ Edited ]
Explorer ✭ ✭ ☆
# 4
Explorer ✭ ✭ ☆

Hi @Bluelake,

Actually i meant looking for GTM debugger to check variables & where the triggers are not firing.


I'll give an example (image below), when I click on 'Adwords Scripts for Analysis' link the gtm.linkClick event fires
I can look for the variables which got captured when clicked.
Then making sure there no such other configuration on this page. i'll apply the trigger.
Click text equals 'Adwords Scripts for Analysis' and Click URL contains 'adwords-scripts-for-analysis' , etc
 

Googledoubt11.png

 

Let us know if you still face some issue. 

Hope this helps,
Thanks,
Ritwik

Marked as Best Answer.
Solution
Accepted by topic author Bluelake
January 2017

Re: Google Tag Manager - Event Tag for Anchor Tag?

Follower ✭ ☆ ☆
# 5
Follower ✭ ☆ ☆

 Thanks Ritwik; I've followed your instructions but I still have issues Smiley Sad

 

My trigger is unchanged as in the original screenshot. Please see screenshot of gtm.click / Variables. I can't see any conflict - except the Click Text is now showing in capitals for some reason. But no firing yet . Can you spot a conflict anywhere please?

GTM debugger.JPG

 

Re: Google Tag Manager - Event Tag for Anchor Tag?

[ Edited ]
Explorer ✭ ✭ ☆
# 6
Explorer ✭ ✭ ☆

Hi @Bluelake,

Ohk (Thanks for screenshot). Kindly change your trigger to Click - All elements and try applying conditions

Google Doubt13.png


Thanks,
Ritwik

Google Tag Manager - Event Tag for Anchor Tag?

Follower ✭ ☆ ☆
# 7
Follower ✭ ☆ ☆

Thanks very much Ritwik - that worked! Much appreciated Smiley Happy