Wednesday, November 5, 2008

Track Google AdSense Clicks via Google Analytics - Free AdSense Tracker

There have been 3rd party javascripts that track adsense clicks out for a while, but no free ones to my knowledge that track clicks on Firefox. Until now.

This free script integrates with Google Analytics to allow you to track your adsense clicks.

This tracking is done through "Goals". A goal is a way of tracking when a website visitor does something you want - Buy an item, submit a contact form, or in our case click an adsense ad.

Create a goal: To create a goal you assign it a URL. This url doesn't have to exist, as the javascript will trigger it.
In the Goal URL field, enter "/asclick" and "AdClick" for the goal name.

Google Analytics Goal.

Adding the javscript to your page: Copy the astrack.js to your website server and add the following to the footer of your website. This has to come after all adsense code.

Testing it: DON'T! There is no way to test that this works as it tracks adsense clicks, and you can't click your own adsense. You'll just have to trust me that works :)

After some time you should start seeing goal tracking appearing in your stats.
For example, here is source conversion. Note that the percentages are based on Visitors, not Pageviews, so they do not compare to CTR.

Google Analytics Source Conversion.

So from that graphic we can see that out of 11 visitors that came from MSN, 54% of then clicked on an adsense ad over the course of their visit.

Below many graphs in Google Analytics is a list with round arrows. If you click the arrows on almost any item you see an option for "To-date Lifetime value".

Google Analytics Lifetime.

Click this and you see the Goal conversion for that item. For example here is the Coversion rate for DSL users.

Google Analytics DSL user conversion rate example.

Once you have Google Analytics tracking your clicks, you can cross segment that data to almost any other data Google Analytics shows. It becomes a very powerful way of optimising your site, not just for CTR, but for the type of visitors that click adsense.

[Thanks to Shawn Hogan and Jim from Digital Media Minute]

No comments: