Click for Google Analytics
-
Hey guys
I need help. I am unable to understand how I capture the clicks of a button on AMP pages.
I still have the pages in the html version. Only blog posts are in AMP.
I’m using this script to try to capture clicks and send to Google Analytics, but it’s not working. (see the link in the AMP plugin)
{ "triggers": { "button": { "selector": "#ctaamp-exa", "on": "click", "vars": { "event_name": "cta-exa", "method": "AMP" } } } }I’m thinking of using Google tagmanager, but how should I create it?
I have the HTML pages yet. And in Google tagmanager I must choose the WEB or AMP version.
I thought it was better to pass the event directly to Google Analytics using the Script, but I couldn’t get it to work.
Can anyone help me and check where I’m going wrong?`
Thanks
The topic ‘Click for Google Analytics’ is closed to new replies.