Download File Link Tracker - Friendly Name

Gold Contributor
Gold Contributor

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.

4 REPLIES 4

Download File Link Tracker - Friendly Name

Tealium Expert
Tealium Expert

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 Expert

Download File Link Tracker - Friendly Name

Moderator
Moderator

OOOOoooooo my ears are burning @mitchellt. :-p

If you liked it then you should have put a kudo on it!

Download File Link Tracker - Friendly Name

Gold Contributor
Gold Contributor

thank you so much, let me check on this.

Download File Link Tracker - Friendly Name

Tealium Expert
Tealium Expert

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!

Public