Analytics report for downloads from dynamic link

sayabannatole 03-03-2020

Hi All,

 

We are trying to get the report for file downloads which are part of a dynamic link. It's like http://WWW.mycompany.com/home/category.do?data=<context_data> and context_data keeps on changing for every session of the user. We did enable the downlods tracking and link tracking but these are not getting captured in either of the filedownloads or tracked links in analytics report. Any idea how to get the these captured when the file is delivered as part of the dynamic link?

 

Thanks,

Sayabanna

Mark Solution

Are these answers useful?
Help other community members by marking useful answers as accepted.

Accepted Solutions (0)

Answers (1)

Answers (1)

Andrey_Osadchuk
MVP
03-03-2020

Could you share a few examples of the context_data?

Hi Andrey,

Thanks for checking on this one.

The context data is dynamic data asigned after a user is logged in ex" data=8Y2l73dGihj7QTV%2F2htdbtpyYOJW58IELJ3a1hFsXSco8t6hWG3ddqAZ%2BLjpRObHuQzmLAEAWdAerMmoK8Mjgom7h4xv9dSmhZFKOc5xh8jyeg9%2BVpLc2F3zyoCw%2FnMgmQwz4XN1P4rVg8cuwMoUMg%3D%3D"

And as as mentioned earlier this keeps on changing for every session.

 

the downloadable file will have the link like this <a href="/docroot/folder1/folder2/myAction.do?data=8Y2l73dGihj7QTV%2F2htdbtpyYOJW58IELJ3a1hFsXSco8t6hWG3ddqAZ%2BLjpRObHuQzmLAEAWdAerMmoK8Mjgom7h4xv9dSmhZFKOc5xh8jyeg9%2BVpLc2F3zyoCw%2FnMgmQwz4XN1P4rVg8cuwMoUMg%3D%3D"

Hope this helps to understand the issue here.

 

 

Thanks,

Sayabanna

 

 

Thanks,

Sayabanna

Since the value can't be parsed, I think the best option would be to ask the web developers/ editors to improve the html markup by adding a data attribute(s) to each link that is associated with downloads. The data attribute may contain the asset/ file name for example. Then if you configure a rule in Launch with an onClick trigger, you will be able to track number of downloads and the asset/file names.

Hi Andrey,

 

The Href link has inner text as well. ex :<a href="/folder1/folder2/action.do?data=xt7%2BHJ43BN4dnFie0fyiOarDVkAeJl8V7kWDD3P0ILE3yTdUF9Mb8bKrf9sZkMGoISW0tm1r3rcb03StdlhMTMdpLJttIl9oWzCjUzDVTvUXWD0U%2BzVSnzt5JoT0IwShjR6gi92KPlVC8Rps6WQjDA%3D%3D">link Name</a>

These kind of links are there in a list. I tried to get the innerText(%this.@text%) and assign it to one of the eVar using the onClick event and trigger on a particulra page.

The report is not showing the link name captured when custom report is viewed for the eVar used to capture the value. It just shows "unspecified" in the report.

even tried the custom code in set variables but it's not picking the link name.