Hi,
I'm having a hard time making custom link tracking work. I have no idea if the values of my s.trackingServer are correct or not. Here's my code:
var s_account="my-account" var s=s_gi(s_account) s.trackDownloadLinks=true s.trackExternalLinks=true s.trackInlineStats=true s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx" s.linkInternalFilters="javascript:" //optional: add your internal domain here s.linkLeaveQueryString=false s.linkTrackVars="None" s.linkTrackEvents="None" s.trackingServer="112.2o7.net" ...
Also, is the section above the tracking server values necessary?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Rainen ,
You do not need the config variables mentioned in the custom link tracking - use the following code snippet as reference
<a href=“your link ” onClick=“ var s=s_gi(‘your RSID’); s.linkTrackVars=‘eVar1,events’; // only if you plan to fire event or populate eVar s.linkTrackEvents=‘event3’; s.events=‘event3’; s.eVar1=‘value for the eVar’; s.tl(this,‘o’,‘the value will populate as line item'); // o - Custom link report , e - Exit Link report, d - Download link report ”><img src=“"/></a>
In order to debug Custom Link Tracking you can use httpfox or use preserve log option in chrome to see if the request is firing or you can use any other packet analyser
hope this helps,
Regards,
Mody
Views
Replies
Total Likes
Hi Rainen,
Welcome to the Analytics Community!
The tracking server value should be based on your Analytics Data Center. Also, you have added a non-RDC domain in your code, though its not wrong but using RDC domains is preferable.
Please go through this document and determine your correct tracking server value - https://marketing.adobe.com/resources/help/kb/en_US/analytics/kb/determining-data-center.html
The section above depends on your requirements. You can set them true or false depending on your need. Check this doc to know what they do - https://marketing.adobe.com/resources/help/en_US/sc/implement/configuration-variables.html
Feel free to ask further questions.
Tanmay
Views
Replies
Total Likes
Hi Rainen ,
You do not need the config variables mentioned in the custom link tracking - use the following code snippet as reference
<a href=“your link ” onClick=“ var s=s_gi(‘your RSID’); s.linkTrackVars=‘eVar1,events’; // only if you plan to fire event or populate eVar s.linkTrackEvents=‘event3’; s.events=‘event3’; s.eVar1=‘value for the eVar’; s.tl(this,‘o’,‘the value will populate as line item'); // o - Custom link report , e - Exit Link report, d - Download link report ”><img src=“"/></a>
In order to debug Custom Link Tracking you can use httpfox or use preserve log option in chrome to see if the request is firing or you can use any other packet analyser
hope this helps,
Regards,
Mody
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies
Views
Likes
Replies