Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.
SOLVED

How to capture complete file download URL for default download call

Avatar

Level 2

Hi Everyone,

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

5 Replies

Avatar

Employee

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.

Avatar

Level 2

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.

Avatar

Correct answer by
Community Advisor

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.

Avatar

Level 2

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

 

 

Avatar

Level 3

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
}