Reply
Highlighted
Frequent Visitor
Posts: 14
Registered: ‎03-13-2018

Download File Link Tracker - Friendly Name

Team,

We have been using the below code to track the automatic download with the respective variable what we ned to be tracked. It is tracking fine as expected per the below code scenario. However, we are not getting the friendly name format since the login was used on the code like that to track the automatic downloads and we know that is because of URL on the PDF or any other file. Is there any other way to get the automatic PDF friendly name files from this tag management?

We  have tried SAINT classification in adobe analytics and it is coming fine. But wondering whethere can we able to do this from Tealium tag Management?

var s_url = s.downloadLinkHandler();
if (s_url) {
s.prop13 = s_url.substr(s_url.lastIndexOf("/") + 1);
...

Thank you,
Jay.

Reply
0 Kudos
VIP
Posts: 159
Registered: ‎01-04-2016

Re: Download File Link Tracker - Friendly Name

Hi @Jayakrishnaa  - of course this is possible.

 

There's often "more than one way to skin the cat"* so be aware that some experimentation may be required to get this the way you want.   The way I'd approach is to define a new UDO variable for the link name, set it within an extension upon the desired condition and map the UDO variable to the Adobe s.linkName var 

 

See https://marketing.adobe.com/resources/help/en_US/sc/implement/linkName.html

 

Let us know how it goes...

 

(PS * no offense to cats, hopefully the @tamedbeast is not a cat)

Tealium Employee
Posts: 50
Registered: ‎08-14-2017

Re: Download File Link Tracker - Friendly Name

OOOOoooooo my ears are burning @mitchellt. :-p

If you liked it then you should have put a kudo on it!
Reply
0 Kudos
Frequent Visitor
Posts: 14
Registered: ‎03-13-2018

Re: Download File Link Tracker - Friendly Name

thank you so much, let me check on this.

Reply
0 Kudos
Regular Visitor
Posts: 21
Registered: ‎08-11-2016

Re: Download File Link Tracker - Friendly Name

Hello @Jayakrishnaa,

If its not many files, then you can use the lookup table and trigger link_name.

Example: as per your code match the s_url in the lookup value and update the link_name with the output value (which is the friendly name)

lookup_table.png

s.tl (true, 'e', b.link_name, null, null) ;

Hope this Helps

Thanks!