Automatic Download links tracking in DTM using s-code

sundhara_m

09-08-2018

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.

Accepted Solutions (1)

Accepted Solutions (1)

Gigazelle

Employee

14-09-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?

Answers (0)