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.

  1. You need a Google AdSense account
  2. You need code for your sidebar
  3. 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.

  1. Don’t expect to make tons of money on AdSense for search ads.
  2. Try the plugin first.  It’s easier to implement if it works.
  3. 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

TEST
Enter your name and email address below and I'll send your Domain Name Checklist directly to your inbox.

Enter your name and email address below and I'll send your Domain Name Checklist directly to your inbox.

It's the only domain name checklist you will ever need.

You have Successfully Subscribed!

Enter your name and email address below and I'll send your Blog Post SEO Checklist directly to your inbox.

It's the only SEO checklist you'll ever need.

You have Successfully Subscribed!

Enter your name and email address below and I'll send your awesome Become An ExpertChecklist directly to your inbox.

Crush Imposter Syndrome Starting Today!

You have Successfully Subscribed!

Monday Motivational Email

Yes!! Please help me stay motivated by sending me an awesome motivational email each Monday morning.

Success! Now check your email to confirm your subscription.

Affiliate Marketing Tips

Enter your name and email address below and I'll send your awesome Affiliate Tips Checklist.

More than 30 tips to help you increase commissions sent directly to your inbox.

You have Successfully Subscribed!

Join The Community!

 

Leave me your email and I will send you cool free stuff

You have Successfully Subscribed!

Sign Up To Get Notified About The Launch!

You have Successfully Subscribed!

utm parameters google analytics

Where should Isend your UTM Parameter Secret Decoder Ring?

It's the only UTM Parameter reference you will ever need, and I'll send it straight to your inbox.

You have Successfully Subscribed!

Want To Start Your Own Internet Profitable Online Business? Need Help Making It Grow?

Want To Start Your Own Internet Profitable Online Business? Need Help Making It Grow?

Just leave your email and I'll send you everything you need to get started, and helpful tips to make your business thrive.

You have Successfully Subscribed!

Enter your name and email address below and I'll send this presentation directly to your inbox.

These slides are perfectly with episodes 147 and 148.  They'll make everything crystal clear.

Your content is on the way!

Yes! Notify Me When New Late Night Internet Marketing Podcast Episodes Are Released!

You'll know when new episodes are available (and exactly where to find them).  Easy peasy.

You have Successfully Subscribed!

Yes! Notify Me When New Late Night Internet Marketing Podcast Episodes Are Released!

You'll know when new episodes are available (and exactly where to find them).  Easy peasy.

You have Successfully Subscribed!

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!