Hi guys, I am currently making a website for a musician and he is offering a free download of his album. I have built that into the site, but is there an easy way to track how many people download it?
I see google analytics(sp?) is the way to go, but I have never undertook something like this before and would appreciate some help as to where to start.
If i can provide any more info, please let me know
Many thanks
Page 1 of 1
Tracking a zip download
#2
Posted 21 August 2011 - 01:02 PM
Try this: http://www.google.co...py?answer=55529
You add an OnClick javascript handler for the link to download the file like this:
You add an OnClick javascript handler for the link to download the file like this:
<a href="http://www.example.com/files/downloadedfile.zip" onClick="javascript: pageTracker._trackPageview('/downloads/map'); ">
#3
Posted 05 October 2011 - 05:47 PM
Dxnx, on 21 August 2011 - 01:02 PM, said:
Try this: http://www.google.co...py?answer=55529
You add an OnClick javascript handler for the link to download the file like this:
You add an OnClick javascript handler for the link to download the file like this:
<a href="http://www.example.com/files/downloadedfile.zip" onClick="javascript: pageTracker._trackPageview('/downloads/map'); ">
You know you can do this by removing the messy onClick attribute and use JQuery instead - ensuring you keep your code clean.
Share this topic:
Page 1 of 1
Help














