How to capture complete file download URL for default download call | Community
Skip to main content
Level 2
May 10, 2022
Solved

How to capture complete file download URL for default download call

  • May 10, 2022
  • 3 replies
  • 2001 views

Hi Everyone,

Default File download URL shows 100 characters, is there any way to get complete file download URL. Any suggestion.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by yuhuisg

You need to set your eVar with the download URL first before the download call trigger fires.

If you're using Adobe Launch and want to track downloads of PDFs using AA's default download tracking, try this:

Create a Rule with the following:

  • Event: Core > Click, then specify the selector for your PDF links, e.g. a[href$=".pdf"]
  • Action: Adobe Analytics > Set Variables, then set your eVar with %this.href%

That's all. Though there's no Send Beacon action, when AA's default download call trigger happens, your eVar will get picked up too.

All of the above assumes that when you say "default download call", you mean that you've set the AA to automatically track download and exit links.

3 replies

Adobe Employee
May 10, 2022

Hi @mrg01,
It depends on what variable are you storing the page URL in. Props have 100 characters length and eVars have 255 characters length. If you are storing the URL in prop, you will only see first 100 bytes and rest will be truncated.

MRG01Author
Level 2
May 10, 2022

I am capturing URL as eVar but when default download call trigger it wont show evar as URL in analytics call. However it shows default url.

yuhuisg
Community Advisor
yuhuisgCommunity AdvisorAccepted solution
Community Advisor
May 11, 2022

You need to set your eVar with the download URL first before the download call trigger fires.

If you're using Adobe Launch and want to track downloads of PDFs using AA's default download tracking, try this:

Create a Rule with the following:

  • Event: Core > Click, then specify the selector for your PDF links, e.g. a[href$=".pdf"]
  • Action: Adobe Analytics > Set Variables, then set your eVar with %this.href%

That's all. Though there's no Send Beacon action, when AA's default download call trigger happens, your eVar will get picked up too.

All of the above assumes that when you say "default download call", you mean that you've set the AA to automatically track download and exit links.

BenjaminHawk
Level 2
May 10, 2022

If I understand correctly, you want the full URL, which also includes the query string parameters?
You may run into problems here if your total url exceeds limits, in regard to workspace.

If you are using adobe tag manager you can still access the excess: 

https://experienceleague.adobe.com/docs/analytics/implementation/vars/page-vars/pageurl.html?lang=en

 

 

Level 3
May 12, 2022

Hi @mrg01 ,

 

Place this below code in Adobe Analytics Extension under doplugin to capture the download file URL into evar

if(s.linkType && s.linkType === "d") {
s.eVar1=s.linkURL
}