Replicate SiteCatalyst Manual Tracking

Gold Contributor
Gold Contributor
How would I replicate this line of code using utag.link()? s.tl(this,'e','Link Name') I specifically want to know how to set the link type? Everytime I call utag.link the pe parameter in pixel's querystring is set to lnk_o and no matter what I do I cannot change it to lnk_e. In general, do you have code samples using utag.link() for sitecatalyst? I find bits and pieces in this forum but it never really able to get a full picture of what I can do.
5 REPLIES 5

Replicate SiteCatalyst Manual Tracking

Gold Contributor
Gold Contributor
Hi Brian, the way this would look is like this: utag.link({link_name:"Exit Link Name",link_type:"exit link"}); Where the link_type can be set to "exit link" or "download link". If you leave it blank, it will always default to an internal link ('o'). Make sure you have link_name and link_type set up as variables in the Data Sources tab in Tealium.

Replicate SiteCatalyst Manual Tracking

Silver Contributor
Silver Contributor
Andrew, if I get this right you're not using any extensions. Correct? Just calling utag.link with variables link_name and link_type should be sufficient.

Replicate SiteCatalyst Manual Tracking

Employee Emeritus

Hi David, This could be done with extensions for on-click events using our jQuery onhandler extension (https://community.tealiumiq.com/t5/Tealium-iQ/jQuery-onHandler-Extension-jQuery-v1-7-and-up/ta-p/986...). But if you do have s.tl calls on your site that you can easily replace with our utag.link call then I would recommend taking that route. Does this help?

Replicate SiteCatalyst Manual Tracking

Silver Contributor
Silver Contributor
Hi James, this helps partially, but Adobe keeps registering the link name as "no link_name". You can find my script on http://users.telenet.be/analytics/test/custom-links.html I've aliased both aa_link_name (to link_name) and aa_link_type (to link_type). You can find the request to Adobe below (click on "klik hier" text). Strangely, pev2 gets the value no%20link_name... http://upc.d2.sc.omtrdc.net/b/ss/upctelenet20test/1/H.27.4/s59924236803781?AQB=1&ndh=1&t=16%2F2%2F20...

Replicate SiteCatalyst Manual Tracking

Employee Emeritus
Hi David, Give something like this a shot where you use link_name and link_type specifically. utag.link({link_name:'abc',link_type:'exit link'});
Public