- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
03-18-2015 07:35 AM - last edited on 10-07-2015 02:50 PM by akshata_yerdoor
I would like to extend the autolink tracking (SiteCatalyst) with a custom event and some custom eVars.
I have configured my SiteCat tag with Auto link tracking.
Now if I click a PDF download link on my page a download request is sent to SC.
How can I extend the request with for example event7 and eVar5, eVar6 ?
At this moment I've got a jQuery onclick which populates the following UDO values:
linkTrackVars = "eVar5, eVar6, events";
linkTrackEvents = "event7";
But when adding these values onClick we're to late and the download link is already sent when these are available. (I have tested this by adding an extra request onClick. (utag.link(adv_data)). The data is sent in the extra request.
So is there a generic approach to add additional data to the request generated by auto link tracking?
Solved! Go to Solution.
03-18-2015 07:48 AM - last edited on 10-07-2015 02:52 PM by akshata_yerdoor
Hey Marcel,
There are a few ways to accomplish this. One way would be to use a SiteCat plugin but that would limit your tracking to only SiteCat. It would look something like this and requires the doPlugins function within a JS extension.
/* Plugin Config */
s.usePlugins=true
function s_doPlugins(s) {
if(s.linkType=="d"){
s.linkTrackVars = "eVar5,eVar6,events";
s.linkTrackEvents = "event7";
s.events="event7";
}
}
s.doPlugins=s_doPlugins
Alternatively you could make this vendor neutral by using an extension in TIQ to set a global variable on-click or mousedown called event_type. Then, in the mapping toolbox of SiteCat when event_type equals something like "download" you can set your events and evars accordingly.
Hope this helps. Let me know if you have any questions.
03-24-2015 03:02 AM
Copyright All Rights Reserved © 2008-2023