Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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.

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

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 2

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
}