Automatic Download links tracking in DTM using s-code | Community
Skip to main content
Level 2
August 9, 2018
Solved

Automatic Download links tracking in DTM using s-code

  • August 9, 2018
  • 1 reply
  • 2019 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gigazelle

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?

1 reply

Gigazelle
Adobe Employee
GigazelleAdobe EmployeeAccepted solution
Adobe Employee
September 14, 2018

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?