Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Analytics report for downloads from dynamic link

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi,

 

Sorry for leaving it open.

We did change the url links structuring by making them static which resolved the issue and we were able to track them. The suggestions were really helpful in trying to get the dynamic links captured.

 

 

Thanks,

Sayabanna

View solution in original post

6 Replies

Avatar

Level 10

Could you share a few examples of the context_data?

Avatar

Level 2

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

Avatar

Level 10
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.

Avatar

Level 2

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.

Avatar

Level 10
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?

Avatar

Correct answer by
Level 2

Hi,

 

Sorry for leaving it open.

We did change the url links structuring by making them static which resolved the issue and we were able to track them. The suggestions were really helpful in trying to get the dynamic links captured.

 

 

Thanks,

Sayabanna