I would like to be able to add a download counter to some files in the Media section. Is this possible? And if so, could someone help me in the right direction?
Of course it won't be 100% accurate (but it will be close) since users can disable JavaScript (but then again that will break Google Analytics altogether)
If you want something that's 100% accurate the only way would be a solution that used the raw log files from the web server.
One extreme would be to write a custom ASHX handler that can then be used to retrieve media nodes given their ID. You could then do your logging inside that handler.
These solutions sound good, but just as friendly reminder this question is not in the correct section of the forum. This forum our.umb dev Forum --> Features is used to request features/ideas for the our.umbraco.org website and not the umbraco core product.
Download counter
I would like to be able to add a download counter to some files in the Media section. Is this possible? And if so, could someone help me in the right direction?
Thanks!
You can do this if you're using Google Analytics by adding a bit of javascript code to the link to the document, for example:
<a href="http://www.example.com/files/map.pdf" onClick="javascript: pageTracker._trackPageview('/downloads/map'); ">
More info can be found here:
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55529
Of course it won't be 100% accurate (but it will be close) since users can disable JavaScript (but then again that will break Google Analytics altogether)
If you want something that's 100% accurate the only way would be a solution that used the raw log files from the web server.
Regards
Tom
One extreme would be to write a custom ASHX handler that can then be used to retrieve media nodes given their ID. You could then do your logging inside that handler.
These solutions sound good, but just as friendly reminder this question is not in the correct section of the forum.
This forum our.umb dev Forum --> Features is used to request features/ideas for the our.umbraco.org website and not the umbraco core product.
Warren :)
is working on a reply...