简体   繁体   中英

How to get Google Tag Manager Event Tracking to send to Google Analytics?

My website has a tel: link in the header, and I want to see in Google Analytics when this link is clicked, and on what page. I've decided to do this using Event Tracking in Google Tag Manager. So I made a tag, with the following configuration.

And this is my Trigger configuration.

This is the HTML that this is referencing , (note that I also tried to add an onclick attribute, which was meant to push Event data directly to analytics. This didn't work.)

This is the variable configuration used in this tag.

This is proof it fires in the GTM debug pane.

And this is the summary coming in when you click on the item withing the pane.

In Analytics, this is what I see in the Real-time events tracking.

And this is what I see under the events overview.

So the tag is firing correctly, but the information is not going over to Analytics. I can find no resource on the internet that addresses this issue. Has anyone successfully pushed Google Tag Manager event tracking into Google Analytics? If so, what did you do to make it work, and what am I not doing/doing wrong that is preventing me from the result?

The end goal is I want to track the page where the click happened in Google Analytics' Events Overview, and also in the Goals section.

Thanks for that link, Uda! What was going wrong was my Google Optimize Tag. I paused all tags except my click-tracking and my Universal Analytics

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM