Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Automatic Download links tracking in DTM using s-code

Avatar

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

Avatar

Correct answer by
Employee Advisor

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

Avatar

Correct answer by
Employee Advisor

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?