So far I implemented click tracking on my Ads but I had the idea for Site-Wide Ad Management where a script rotates and tracks Ads all over the site.

The problem with my current implementation is that I have inserted one Ad code per position in my template. This means that the same Ads are showing on all the post pages with the same tracking tags.

So I want to vastly improve this to avoid Ad blindness of visitors and get better Ad tracking in place to detect which Ads work best.

So the new strategy will involve having an “inventory” of Ads. These will be rotated about the whole site and their performance will be tracked. I may even go as far as dynamically optimizing which Ads are displayed and where!

But to get this thing rolled out fast, I will write some code just to rotate the Ads from the inventory and have one function call to insert into the template.

The script will randomly select an Ad from the inventory and increment a view count. If the Ad is clicked, then the click count for that Ad will be incremented and the page will re-direct to the destination URL. This simple approach should be good enough to see which Ads have highest click-through ratio.

I will also record details of every click on Ads separately for later analysis. This data will include the time of the click, IP address, Ad ID and page ID.

Let me know if this kind of thing excites you and you would like to get your hands on the code.


Filed under: Testing by Andy