The AdSense for Search keyword tracking workaround

Since I talked about the new “Top Queries” report for AdSense for Search (AFS), I have had people asking me about how to implement the logo workaround I discussed, so all searches can be tracked (beyond the top 25 as well as single searches).

Here are the instructions on how to start tracking, and how to extract the data you need to get those keywords.

First, you need to create a custom logo, with these specifications:

Logo dimensions are limited to 50 pixels by 50 pixels for logos that are placed above the search box, and 100 pixels by 100 pixels for logos placed to the left of the search box. Any images that exceed these limits will be scaled. Supported file types are: JPG, GIF, PNG.

This image should have a unique filename that is used only for AFS.

Once you have created it, login to your AdSense account and in the “AdSense for Search” tab, click “Styles”. You can enter in your custom logo as well as your logo URL link into the appropriate fields. Then save the palette and generate a new AFS code in the “Search Code” link. Replace or add the javascript where you would like the AFS box to appear.

Then, you will need to go log hunting to extract the search information. The easiest thing is to find all the referrals for your AFS logo – I used googlelogo.gif in the graphics directory as an example below – which will show you the horrendously long URL which has your keywords hidden in it (I have bolded the keywords below, so you can spot them a bit easier).

“GET /graphics/googlelogo.gif HTTP/1.1” 200 “”

Most of that code is for how the search results page appears to the visitor. Another part worth noting is the “” which tells you the visitor was searching two of your specified domains.

It is not the easiest or prettiest way to get specifics on all the searches performed, but it works 😉

Share this with others!
  • Twitter
  • Digg
  • Sphinn
  • StumbleUpon
  • Reddit
  • Technorati
  • Mixx
  • Google Bookmarks
  • Facebook

1 comment to The AdSense for Search keyword tracking workaround

  • Hm, that get me to an more interesting idea. You could use a little PHP-Script as logo which first logged the keywords with PHP into an MySql-Database and then is displaying the logo. But I don

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>