How to Set AdSense for Search to Search Your Site by Default

July 13, 2007 by  

When you set up the AdSense for search with SiteSearch enabled, the search box will default to web search instead of SiteSearch. It’s likely that most users who use the search box on your site use it to search pages within your site, not the Internet.

To set the search box to search pages on your site by default, visit the ‘AdSense Setup’ tab in your account and select ‘AdSense for search’ as your product. On the code generation page, you’ll see a sample search box under ‘Search box style’ that changes as you customise the layout.




Just click the radio button for SiteSearch within the sample to default your search box to SiteSearch.




Once you’ve finished customizing your search box, copy and paste the provided code onto your pages and you are done! As you can see here at, the search box default to SiteSearch. Adding the AdSense for search is a good way to create another revenue stream for your site or blog.

Additionally, you can exclude certain pages on your site from being spidered and searchable using the robots.txt file.


[via Inside AdSense]

Did you enjoy this post? Please subscribe via RSS or email.

Related posts


RSS feed | Trackback URI


Comment by Alex Ion
2007-07-13 17:55:21

I am sure there are people that didn’t knew that.


Comment by KennyP
2007-07-14 00:52:30

This is what I wanted to do at the first times I installed it long long ago, thanks for your useful tips

Comment by
2007-07-14 02:43:26

There were some details in there that I was not sure of. Thanks for this!

Comment by Lorna
2007-07-14 03:17:32

I use the default Google search widget that came with WordPress, but did a little modification to it in that the radio buttons are hidden and replaced with my site by default. I generated the new search form using SiteSearch of course.

Comment by pablopabla
2007-07-16 11:35:47

I have this installed in my recipes blog but am not sure whether I should install this at my review blog. The codes in the latter appear to be slightly more complicated and I am afraid to mess it up 😉

2007-07-20 03:50:32

Yup I didn’t realize that we can set that as default until today… just before I saw your post.. 🙂

Name (required)
E-mail (required - never shown publicly)
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> in your comment.

Trackback responses to this post