Zurzeit sind 198 Mitglieder online.
Zurzeit sind 198 Mitglieder online.
Anleitung
favorite_border
Antworten

Issue with Click URL in Tag Manager on Button Element

Rang 5
# 1
Rang 5

I do have a Button with a Link below like this:

<a href="https://www.dualsystems.com/wp-content/uploads/2018/03/Dualsystems-Biotech-Scratching-the-surface-Te..." class="avia-button   avia-icon_select-no avia-color-theme-color avia-size-large avia-position-right " target="_blank">
    <span class="avia_iconbox_title">Download</span>
</a>


I added a Trigger to All Elements which is working fine, but when I click the button, I get this:

Click Text = 'Download'

Click URL = ''


The Issue is, Click URL is empty, as the "span" Element is clicked, but the href is at the "a" Tag. If I remove the "span", everything is working fine. But the system is automatically adding the span, which is there for a reasons. How can I fix that GTM is looking for the real href which is triggered (parent element) and not the actual element which is clicked, but has no link?

Thanks for your help.

 

 Stefan

(German or Engish is both fine)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The Issue is, Click URL is empty, as the "span" Element is clicked, but the href is at the "a" Tag. If I remove the "span", everything is working fine. But the system is automatically adding the span, which should be there for some reasons. How can I fix that GTM is looking for the real href which is triggered (parent element) and not the actual element which is clicked, but has no link?

 

Thanks for your help.

 

 Stefan

 

 

 

Issue with Click URL in Tag Manager on Button Element

Rang 9
# 2
Rang 9

Hi Stefan,

 

Try using a link click trigger (instead of the click trigger for all elements). 
Good explanation can be found here: https://www.simoahava.com/analytics/capturing-the-correct-element-in-google-tag-manager/

 

Good luck

 

Claudia