Skip to main content

How to track banner clicks with Google Analytics

There is a realy simple and free way to track your banner efficiency. If you don’t use any banner management system, or maybe doing a link/banner exchange with someone you will probably wanna see how much visitors did you get with that campaign.

So, this should do the trick…
Idea is to add some parametars to URL of your landing page so Google Analytics can differ visits that came from clicks on your banner or link.
You can do that by adding ‘?ref=MyBanner’ at the end of URL of your landing page.
For example, if you want your banner to point to address:

then your tracking link would be:

Then, code for flash banner button (Actionscript 2.0) would be:

on(release) {
getURL("", "_blank");

You can also add some more parametars to your URL if you want, just seperate them with ‘&’, Example:

After some time login to Google Analytics and go to ‘Content overview’ section, there are listed all your pages that have been visited.
Filter your content with keyword that you added to your link, in this case: ‘ref=MyBanner’, and you will get number of page views that came form clicking on the banner
1 page view = 1 click on banner.

I’v tested this with Google Analytics, but i think it should work with any other tool you use to mesure statistics of your site.

For more advanced way to track online campaigns with Google Analytics visit Google Analytics help center and use URL Builder to generate your tracking links.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please don’t paste any HTML, Js or PHP code into comments box, use or similar service to share code examples.

Characters left: 1000