Forum Moderators: DixonJones

Message Too Old, No Replies

Events Tracking Not Working

         

nehamishra

9:09 am on Nov 26, 2021 (gmt 0)



I have applier event tracking to track PDF downloads on my website but it doesn't work.

Tried different options but still doesn't; work. I am adding the options I tried-

1. Put this code on the button - onclick="ga('send', 'event', 'PDF Downloads', 'Click', 'Widget Brochure')
In analytics, I have added-
Category- PDF Downloads, Action- Click, Label- Widget Brochure

2. Put this code on the button - onclick="ga('send', 'event', 'PDF Downloads', 'Click', 'Widget Brochure')
In analytics, I have added-
Category- PDF Downloads, Action- {{Click}}, Label- Widget Brochure

Can anyone help please?



[edited by: not2easy at 12:23 pm (utc) on Nov 26, 2021]
[edit reason] anonymized for privacy [/edit]

DixonJones

2:43 pm on Nov 26, 2021 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Sorry I can't fix your code up there, but if you search for "how to track a click in GTM" in your favourite search engine, there are some pretty detailed options.

I personally use a redirect script, not Tag Manager to track clicks. I have a free script called "Yourls" I think which I set up on a short domain. Then when I out links on Twitter, the links go through the URL redirect and count the click. But thats maybe me being obtuse.

RhinoFish

11:35 pm on Dec 2, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Google this: pdf download event in google analytics

My favorite result has multiple methods:
[empower.agency...]