I am a newbie with piwik.
I have installed piwik for having basic statistics on my web site (a photo blog).
as said in the title, I wish to have download tracking but no outlink tracking (in fact, I have published some theme for the CMS zenphoto and I wish to have specifics stats of downloading).
how can i do ?
disable the download & outlink tracking and force a click on a link to be recorded as a download in Piwik ?
I disabled the monitoring of outlink and set the class ‘piwik_download’ to forcetracking of specific downloads.
but the results are not good: I do not see any specific downloads.
info: currently, I use phpMyVisit (version installed by default by my ISP Free) and piwik.
I test the correct configuration of Piwik and the proper integration on my site before migrating all on a new hoster.
there is the code of my footer
<!-- phpmyvisites -->
<a href="http://st.free.fr/" title="phpMyVisites | Open source web analytics"
onclick = "window.open(this.href); return(false);"><script type="text/javascript">
<!--
var a_vars = Array();
var pagename = 'zpArdoise 1.4';
var phpmyvisitesSite = 204639;
var phpmyvisitesURL = "http://st.free.fr/phpmyvisites.php";
//-->
</script>
<script language="javascript" src="http://st.free.fr/phpmyvisites.js" type="text/javascript"></script>
<object><noscript><p>phpMyVisites | Open source web analytics
<img src="http://st.free.fr/phpmyvisites.php" alt="Statistics" style="border:0" />
</p></noscript></object></a>
<!-- /phpmyvisites -->
<!-- Piwik Tracking Code -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://avbo7291.o2switch.net/piwik/" : "http://avbo7291.o2switch.net/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.setDocumentTitle("zpArdoise 1.4");
//piwikTracker.enableLinkTracking();
piwikTracker.trackPageView();
} catch( err ) {}
</script><noscript><p><img src="http://avbo7291.o2switch.net/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
You need to leave piwikTracker.enableLinkTracking(); to track downloads.
It will also track outlinks but it should be fine, even if you don’t need the data?
ok, whith i will follow outlinks, even if I don’t need the data.
but, my tests between phpMyVisit and piwik are not concluant : I am unable to follow the download of specific files with piwik.
I want only tracking specific downloads and I don’t want to follow other download (I do not mix - or walnut - the results supplied)
for my needs, should I do like that :
1/ configure the script : piwikTracker.setDownloadExtensions("") (-> no file extention to follow)
2/ add class=“piwik_download” on my specifics links to follow as a download ?