Hi, I am doing a generic link tracking across my website and tracking it as follows on click of that link,
s.clearVars()
var linkName;
s.linkTrackVars = 'prop1,eVar1,events';
s.linkTrackEvents = 'event1';
s.events = 'event1';
linkName = "linkclick";
s.prop1 = s.eVar1 = s.pageName+":"+linkName;
When I check under the Console->Network tab, it shows the image request is getting cancelled followed by a subsequent image request firing. Although the beacon is firing, the data is not getting mapped to the eVar or the prop or the events. This in turn is resulting in report data showing up empty. Please do help!
Solved! Go to Solution.
Views
Replies
Total Likes
Dear Sharanya,
Guess your DTM/Launch request is getting cancelled.
Make sure that your property has your local domain so that your local domain didn't get excluded.
Thank You!
Arun
Dear Sharanya,
The code is working perfect for me.
s.clearVars();
var linkName;
s.linkTrackVars = 'prop1,eVar1,events';
s.linkTrackEvents = 'event1';
s.events = 'event1';
linkName = "linkclick";
s.prop1 = s.eVar1 = s.pageName+":"+linkName;
s.tl();
If you can share the Public URL, we can help you to debug more.
Thank You!
Arun
Views
Replies
Total Likes
Hello Pratheep,
I am trying out link tracking on a local site and the image request cancelling looks as follows,
The Custom Link I pass along with the s.tl() call fires but the respective eVars do not fire or get mapped in the reports. Hence, the reports are showing up empty. Could you please help me figure out what is causing this cancellation?
Views
Replies
Total Likes
Dear Sharanya,
Guess your DTM/Launch request is getting cancelled.
Make sure that your property has your local domain so that your local domain didn't get excluded.
Thank You!
Arun
Dear Sharanya,
Able to solve the issue?
Thank You!
Arun
Views
Replies
Total Likes
Hey Pratheep,
I added the domains and no it did not resolve the issue. Still figuring it out. I have even tried tracking internal traffic and mapped the eVar for the same. Nothing seems to be collecting any sort of data in the reports! The image requests are still cancelling on click of any component. For internal traffic, I added the below code in my Analytics extension custom code section.
s.intURL = "http://localhost/dailyshop"
s.eVar16 = s.intCheck();
Note: I HAVE correctly mapped the eVars and props in the report suite settings!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies