utag.link firing Universal Analytics event twice

Bronze Contributor
Bronze Contributor

I've run into an issue where when I call utag.link, 2 identical universal analytics call fire. I've searched the forums as best I could, but I wasn't able to find anything.

Could someone point me toward troubleshooting steps to figure out what might be causing the double-firing?

2 REPLIES 2

utag.link firing Universal Analytics event twice

Bronze Contributor
Bronze Contributor

Update on this after further testing:

When I do a manual utag.link call and change my event_type from a custom event type variable (_ua_event_type) to just 'event_type' (which is also mapped in UA for link tracking, separate from what I am trying to do right now, a different type of event tracking), it only fires once.

If I make that same change in the jQuery onHandler, UA still fires twice.

utag.link firing Universal Analytics event twice

Tealium Employee

@eandren

Your best bet is to follow the debugging steps stated here with step 8 being the important part. By using the call stack to traverse the code and find where the utag.link initiated each time it will tell you what piece of code is triggering the event.

If you only see your breakpoint hit only once then likely the first call is a page view and the second call is a custom jQuery event added via extensions or custom JS.

If you're able to provide a URL where you see this happening and steps to reproduce I'm happy to look into this further I apologize I'm not able to help a whole lot more, with more details I'm hopeful to provide more details.

Cheers,
-Dan

Public