Link Tracking - Disable Events

Gold Contributor
Gold Contributor
For SiteCatalyst pageviews, we are using utag.view(utag_data) since we have Ajax scenarios - I'm firing events for pageviews based on values used in datasource variables. E.g. ContentType --- prop19, ART:event18, Summary:event16, RT:event19, MM:event54 Now, when I fire a utag.link(utag_data) call, this event is getting fired, as I have to use the same values for ContentType variable. I don't have another variable to add in the condition to limit the event getting fired. What is the best way to disable events for Link Tracking in utag.link() calls?
3 REPLIES 3

Link Tracking - Disable Events

Employee Emeritus
Hi Venkat, Events, props and eVars are 'sticky' meaning they stay 'on' when they are fired and don't get reset until the next page view. For some users of SiteCatalyst this is preferred behavior, but being on an AJAX site like you are, this is probably not what you want. In the Tealium iQ, you (or whomever in your company manages your account profiles) just have to go into the SiteCatalyst tag config and set the Clear Vars setting to "Yes" and republish. This resets all those variable types after each utag.viev() or utag.link() call. That should fix the issue you're describing. Hope this helps!

Link Tracking - Disable Events

Gold Contributor
Gold Contributor
Hi Son, Thanks for your response! I already have ClearVars set to 'Yes' in my profile. I've set-up the events in Tealium while mapping the datasources to SiteCatalyst variables, there I've mentioned if prop2 (corresp' datasource) comes with value 'ART', then fire this event18, which works perfectly fine in utag.pageview(). Now, for utag.link() call also, I have to pass prop2 with same value in 'ART' and hence event18 gets fired based on set-up in Tealium, which is what I want to avoid, as for all utag.link calls, I don't want any events to get fired. Hope my explanation is clear now.

Link Tracking - Disable Events

Employee Emeritus

Ah okay, you'll probably have to change this a bit. This is how I would do it based on the u.addEvent() method in this post: https://community.tealiumiq.com/t5/Tags/Adobe-Analytics-SiteCatalyst-Tag/ta-p/664

 

1. Removing that mapping that fires event18 when prop2='ART'

2. Create a JavaScript code extension and scope it to the SiteCatalyst tag

3. In the code itself you'd write something like: if (a=='view' && prop2=='ART') { u.addEvent(["event18"]); }

 

Not sure if prop2 is the actual name of your datasource you're checking for art. The 'a' variable is where we store whether you're doing a utag.view() or utag.link(). So this way, you are checking if it's a 'view' and if prop2 is 'ART'. When you're doing utag.link(), a=='link' so it won't fire event18.

 

If this doesn't resolve your issue you will probably want to reach out to your account manager for more specific help.

Public