Cancelling Image Request

sharanya_sathya

14-05-2019

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!

Accepted Solutions (1)

Accepted Solutions (1)

PratheepArunRaj

Moderator

16-05-2019

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

Answers (4)

Answers (4)

sharanya_sathya

17-05-2019

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!

sharanya_sathya

15-05-2019

Hello Pratheep,

I am trying out link tracking on a local site and the image request cancelling looks as follows,

1.JPG

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?

PratheepArunRaj

Moderator

15-05-2019

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