Thursday, September 4, 2008

Blogger Hack : Integrate Google Adsense for Search

Yesterday I was fetching some data about this blog analytic, on Google analytics.
I was shocked by the number of searches, this blog have had. Much more than 5,000 queries my visitors have submit. (If we compare it to my search activity, that's more than I had search in 1 year!!!, my history shows 4,696 in 2008).
Idea?! Integrate Google Adsense for search and increase my earnings.

  1. Some analytic
    There was much more than 5,000 search query since this blog had started. That mean, as this blog started 3 months ago, an average of 50 query a day is estimated. How much you search!! That's really strange :p

  2. Integration on Blogger
    If you use Google Adsense code, then you should see an ugly box, with an ugly button also (Ok, that Google style)!!
    No you should conserve your actual template, like I have done, here's how to do it.

    • Get the Adsense code
      That's easy, go to your Adsense account, Setup a new search engine, and copy the code in note pad. Because the Adsense text box is not really enjoyable when editing and will sucks!!!
    • Now, here's what you have to extract from it.
      The <form blabla > tag
      The hidden inputs
      <input type="hidden" name="cx" value="partner-pub-4333671749651538:7ojekfjjf2h" />
      <input type="hidden" name="ie" value="ISO-8859-1" />
      and that's all
    • Integration is easy but be careful and backup your template!
      First of all, search for the search box in your template. (If you template don't have a customized search, then it really sucks you change it).
      After you find it, replace the <form blabla> tag, with the Adsense one.
      Add inside the <form blabla> your two hidden inputs.
      Finally, change the name of your search button to 'sa'.
    • And your search engine works as well
Something is difficult, let me know, just drop a comment.

1 comments:

thanks for the guide. Helps a lot

September 5, 2008 12:58 PM  

Newer Post Older Post Home