- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
04-12-2018 02:13 AM
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.
04-13-2018 12:14 PM
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)
04-13-2018 01:58 PM
OOOOoooooo my ears are burning @mitchellt. :-p
04-15-2018 11:40 PM
thank you so much, let me check on this.
04-23-2018 01:32 PM
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)
s.tl (true, 'e', b.link_name, null, null) ;
Hope this Helps
Thanks!
Copyright All Rights Reserved © 2008-2023