
Srinivasan Kumar wrote...
Recently in one of my analysis I found the below issues with file downloads tracking
1. How do I make sure that File downloads are triggered when a user right clicks on the link?
2. Also the file downloads are not working, when use target="_blank" in the href?
Do we have any fix to handle these two issues?
Note: I cannot manually place link track call functions on all the links, because there are so many of them.
Any guidance would be really helpful!!
Thanks & Regards,
Srinivasan K
Here are some thoughts
For your 2nd question - target is a separate attribute from href in anchor tag. Check href, does that include file download extension (PDF,DOC,XLS etc) & if that is already enabled to track in your analytics implementation.You may be using a redirector not a direct file path & in that case, you'll need to identify the anchor tag attributes which can uniquely identify those particular file downloads. Recommending Tag Management tool to track those links otherwise you can make changes in your AppMeasurement analytics JS file to identify those links & fire a file download beacon.
For your first question, I generally believe there would be relatively smaller percentage of visitors using right clicks for file download activity. Also, there is not complete surety that after right click visitor did downloaded the file.
Regards,
Saurabh Kumar.