Aug18
Tracking File Downloads with Google Analytics
- posted by: George
- 1 comment
- post a comment
Yes, you can track file downloads with Google Analytics. Although it doesn’t automatically give you that capability by just dropping in the Google Analytics Code, here is a simple method to add that tracking ability. For each file that you want Google Analytics to track, you need to create a “virtual page” using the pageTracker function in each file HREF in your site.
Example:
If you site has a PDF called financial-report.pdf and the link is
<a href="/files/financial-report.pdf">Financial Report</a>That code will need to be rewritten to read.
<a href="/files/financial-report.pdf" onclick="pageTracker._trackPageview('/files/financial-report.pdf');">Financial Report</a>
This works great for a limited number of files, but for sites which have multiple file downloads. You may want to try Brian Clifton’s JS Script.










Leave a comment