Currently I'm setting an onclick event for a specific exit link on my site that runs a typical s.tl() function - this simply records a custom link name into a prop so that we can track this button click.
Unfortunately I recently realized that this prop is getting double counted (at least in the debugger) it's not only being set in the request being fired when the custom link track function is set off but also when the exit link is tracked. What's the proper way to track a prop along with an exit link? Should I not be running the s.tl() function on a true exit link with automatic exit link tracking enabled, assuming this will allow the prop to piggyback off of the exit link image request? I was worried this may then not report properly in the traffic report for that prop.
Simplified Example:
<a onclick="omnitrackProp22('linkname','value')" href="http://www.exitlink.com"> <img src="button.jpg" /> </a> <script> function omnitrackProp22(linkName, value) { var s = s_gi(s_account); s.linkTrackVars = 'prop22'; s.prop22 = value; s.tl(true, 'e', linkName); //Do I need this since the automatic exit link tracking is already picking up the prop value when it fires? } </script>
Solved! Go to Solution.
Views
Replies
Total Likes
As long as s.linkTrackVars is set in your s_code file (by default its set to None), automatic exit link tracking should pick up the prop value if its already defined. You do not need manual s.tl() image requests to send that data, which is probably why its double counting.
Views
Replies
Total Likes
Hi Joseph D'Andrea ,
Since we haven’t heard back from you recently,hope we were able to answer all your queries and the issue got resolved to your satisfaction.
I will go ahead and archive this case as resolved.
However, if you have any additional questions simply respond to this message and it will be reopened.
I would appreciate if you could spare your valuable time to participate and identify the correct answer which would be of great help to us.
Thanks and Regards
Akhil
Views
Replies
Total Likes
As long as s.linkTrackVars is set in your s_code file (by default its set to None), automatic exit link tracking should pick up the prop value if its already defined. You do not need manual s.tl() image requests to send that data, which is probably why its double counting.
Views
Replies
Total Likes
Views
Likes
Replies