This gives you a bit more flexibility with what kind of adverts you’re tracking. Including HTML5 and even Flash ads.
Using the Piwik option all statistics are tracked externally, using a few special tags AdRotate adds to your adverts and the Piwik tracking code.
AdRotate can detect simple banner images, flash ads and even some HTML5/iFrame adverts and add the Piwik tags in the code by itself.
If you use Piwik Analytics you should already have their tracking code in your site.
To track stats with it you need to alter it a tiny bit to have it recognise content blocks.
Add the line
_paq.push(['trackAllContentImpressions']); to your tracking code and you should be good.
The tracker then should look something like this:
<!-- Piwik -->
var _paq = _paq || ;
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script');
<noscript><p><img src="https://your.pikwik/setup/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
Once set up, your next Piwik report should include stats from your adverts.
Seeing your statistics
If you log in to your Piwik dashboard and navigate to Contents in the Actions menu you should see something like this:
As you can see, nobody clicks the adverts on my blog.