Hi Guys,
I can see that kentico web analytics is not tracking media libraries download. (Let me know if kentico already has got that feature)
We are using permamnet Url's for media libraries.
I have got few PDF's which I want to track when someone downloads. Below is an example of my pdf link:
/getmedia/dcc6591f-a2a0-4dee-b53f-b9c29c1f8be7/cardiology-research-review-issue-41.pdf.aspx?ext=.pdf
I have tried keeping my Analytics code in ~/CMSPages/GetMediaFile.aspx, but it didn't work (Code below):
<%@ Page Language="C#" AutoEventWireup="true" Inherits="CMSPages_GetMediaFile" CodeFile="GetMediaFile.aspx.cs" %>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-*******-1']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Any other ideas for tracking Media Library PDF downloads?
Thanks
Gitesh Shah