Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Automatic Download links tracking in DTM using s-code

sundhara_m
Level 2
Level 2

Hi Team,

I was trying to track the file downloads via DTM by adding the following two lines of code to s-code,

s.trackDownloadLinks=true

s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx"

But I was not able to get the server call for the file downloads which are happening on the site. Whereas I am able to achieve it by using the link tracking global setting in the adobe tool settings. Can anyone please help me with an Idea that Why I was not able to achieve it using s-code?

Thanks in Advance!

Sundhara M.

1 Accepted Solution
Gigazelle
Correct answer by
Employee
Employee

If you're adamant about putting these values in the s_code library, you could try putting it in the doPlugins function. doPlugins always runs last before firing an image request.

Adobe recommends using the UI for those fields, though. Is there a reason why you'd need to change these variables mid-visit?

View solution in original post

1 Reply
Gigazelle
Correct answer by
Employee
Employee

If you're adamant about putting these values in the s_code library, you could try putting it in the doPlugins function. doPlugins always runs last before firing an image request.

Adobe recommends using the UI for those fields, though. Is there a reason why you'd need to change these variables mid-visit?

View solution in original post