Utag.Link on new page load

Anonymous
Anonymous

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 

2 REPLIES 2

Utag.Link on new page load

Tealium Expert
Tealium Expert

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!

Utag.Link on new page load

Anonymous
Anonymous

I cant be using Dom scraping here and just piggyback on the utag.link to fire .utag.link is configured in a way that it fires when user clicks on the CTA

Public