Internet Marketing Resources
Google Adsense Tracker
Google Adsense is a great way for you to generate income from your website. Google Analytics is a terrific way to track your page hits, visitors and other information. But you have always been missing a way to combine both Adsense and Analytics.
Now you have the Adsense Tracker script. It's a javascript that you install on your pages just after the Google Analytics script. What it does is track when the mouse moves over an Adsense iframe on your page. A post to Analytics is made when the page is exited and the user was on a Adsense link.
To install the Google Adsense Tracker script on your page, follow these steps.
- Download the Google Adsense Tracker zip file.
- Install the javascript file in the same folder on your web server as your pages.
- Add the following code to your pages just below the Analytics code.
<!-- google adsense tracker (http://www.imarketingtool.com) do not remove -->
<script type="text/javascript" src="/GoogleAdsenseTracker.js">
</script>
- Create a new "goal" inside Adwords. The goal should be a "head match" goal. The url of your will be "/adsense".
Do not test the installation of the code. If you click on ads shown on your own pages, Google will ban you from Adsense. Instead, wait one day and then check your goals inside Analytics.
The tracker will report the individual iframes clicked on to Analytics. This resembles custom channels in adsense, letting you know which ad black was clicked. The script will send the /adsense url to analytics, plus the format of the ad block. Using the format ou can tell if it was banner ad or square ad, etc. It's useful for deciding if banners, towers or squares work better for your website.
Alternatively, if you wrap each of your Adsense Ad Blocks in a DIV tag, and then give the DIV tag an ID that starts with "adsense_" and then a unique string. The tracking script will then use your unique string when reporting to analytics. You can then distinquish between two square formatted ads if you want.
The tracking script is not one hundred percent accurate. It will not report all the Adsense clicks. There are several ways to circumvent the tracking. However, it will give you a rough idea of what Adsense ads are getting clicks.
The Adsense Tracking data is particularly useful when combined with url rewriting. The "reverse goal path" in Analytics will show you waht page generated the Adsense click. This will tell you what url rewritten pages are generating the most Adsen clicks, and therefore what keywords are more profitable. You can then tailor more pages for the keywords with the highest Adsense revenue.
You will have the source code to modify, so feel free to do so. Please leave the comments in the script intact.
|