- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
utag.link was configured when a user clicks on a CTA and a new landing page loads.My scenario is that i need to fire GA event when user clicks on the CTA and i cant use Jqueryonclick handler as Jquery is descoped .Will utag.link work here.
I had implemented this but the evewnt is not firing as expected.Any help is greatly appreciated.I could see the utag.link coming up in tag debugger upon halting the navigation
Hello @Anonymous
Below link will help you set up the basic event tracking -
Google Universal Analytics Event Tracking
In your case instead of using the Set Data Values extension use a Javascript extesion (you had mentioned jquery is not avaliable) to write a custom code the set the values based on the button click.
example:
document.getElementById("clickMe").onclick = function () { b['ga_eventaction'] = "Play" b['ga_eventCategory'] = "Videos" b['ga_eventLabel'] = "Fall Campaign" };
Hope this helps
Thanks!
Copyright All Rights Reserved © 2008-2023