Let's face it. When it comes to search, there is only one game in town — Google. Another fact that you should face is that the built-in search in WordPress is not that great. Put those two ideas together and it's clear that what you need to do is integrate Google's Custom Search (GCS) into you blog. You get a better search, and some opportunity to generate AdSense revenue.
To be honest, I'd be surprised if you generate much in the way of revenue. The reason to do this integration is to improve your readers experience. Frankly, if you always use user experience as the reason that you do things to your blog, you will often come out ahead in the long run in any case.
Google Custom Search Overview
As you can see, I have successfully integrated GCS into my sidebar. To do this, you basically need 3 things.
- You need a Google AdSense account
- You need code for your sidebar
- You need code for the results page
The way GCS works is that you first create a custom configuration in your Google AdSense account. The result of that step is the generation of two pieces of JavaScript. One piece of JavaScript goes in your sidebar (or wherever you want the search bar). This first piece of JavaScript is the code that presents the search box and search button to the user. That code includes information that points to your search configuration on the Google AdSense servers.
When a search is submitted by your visitor, the first JavaScript program runs and loads the a results page that you have specified in your AdSense configuration. In our case, that results page is regular WordPress page that has some JavaScript in it. The results page JavaScript is the second script provided by Google mentioned above. That code interfaces with the Google AdSense servers to get and format the results and AdSense ads.
Best Ways To Implement Google Custom Search
There are at least two ways to implement this Google Custom Search integration. You can do it manually by following the excellent documentation provided by on Maki's blog over at DoshDosh.com, or your can use the Google Custom Search plugin.
As part of my research for this article, I tried the plugin. Unfortunately, my theme was not compatible with it (I think because of some customizations that I have done to the WordPress theme code and file locations). I suspect that most simple themes will work just fine.
I like to understand how things work, so I used the instructions at DoshDosh. If you try to implement this and have problems, please feel free to leave a comment and I will try to assist.
Parting thoughts about Google Custom Search
Some things to consider based on my experience with this.
- Don't expect to make tons of money on AdSense for search ads.
- Try the plugin first. It's easier to implement if it works.
- If you have a narrow page area like I do, ads to the right will not work. I recommend that you use ads on the top and bottom (specified in the AdSense search setup interface).
Let me know if you try this and you get it to work, or if you need some help.
Thanks,
Mark
I’m just redesigning my blog and was using GCS before. I actually did find it earning $0.30 to a $1 a day so will be getting it back in very soon.
@Forest – that is actually pretty good. Better than my results — but it depends on the niche. IF you are getting that result in the IM niche, I think that is pretty good.
Excellent info. Mark – thanks. For those of us with newer blogs that haven’t been fully monetized, this is a great time to add the Google search box with adsense.
Hi Mark,
I implemented the Google Search in my site, an Adsense Ready WP Theme (thanks Mark), but what happens is that the results page shows the adsense ads already included in the template plus the adsense ads from the GCS.
As an example to see what I mean, go to the site http://www.advogados.eu and type advogados (which means lawyers in Portuguese) in the GCS. On the results’ page you’ll see two blocks of ads on the top, one on the right side and one on the bottom.
Is there a way to put the Google results in a clean template without the corresponding adsense ads so to not violate Google’s TOS regarding the number of ads placed in a page?
This is a very good question, Alberto. It is actually 2 questions — one about the TOS and one about the theme. With regard to the theme, it is certainly possible to create a special page template for GCS. I will do that for you and let you know (I need to do this for myself as well).
Regarding TOS, I am not sure if they count adsense units from search in the “limit of 3”.
Regards,
Mark
Hey Mark,
Is GCS plugins included in Firepow system?
It’s not one of the officially supported ones (unless I missed it), but it is easy to integrate GCS into a Firepow blog. No problem.
Really nice article.
Google Custom Search really is a nice and a must have tool.
I’ll be referring back to this when I upgrade from FREE WordPress, hopefully in the next week.
James Mangosteen Dean
Excellent. Good luck.
Thank you, good topic
Very nice information. Check out my blog, I just posted a great blog about the 36 Best WordPress plugins for 2009.
What a fantasitc site i have saved this page for further reading in my exploer bookmark box and keep up the good work i learnt a lot from here but can i just ask how would i install the google part again on places like a wordpress which is on hostgator…sorry to ask but just curious and thanks for your time
Thanks for this relevant information, I have not implemented the plugi, but since reading this info..I think I will.
This blog is impressive and also has great information. I personally like going through
your solid points on this topic. Many thanks for creating such excellent blog.
This is excellent.
<a href=”http://www.jicstech.com/”>jicstech.com</a>