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

Posted on 13th July, 2007

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 Sabahan.com, 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]

An engineer by training, Victor has been working full-time online as an Internet marketer, a programmer and an app developer since 2001. He has been blogging at Sabahan.com since 2006 sharing his experience and teaching people how to make money online. Click here to join his private Facebook Group for bloggers.

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

  • […] the above the fold where it’s easily accessible for your users. In addition, you can use AdSense for Search to monetize your blog search […]

  • pablopabla says:

    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 😉

  • Lorna says:

    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.

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

  • KennyP says:

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

  • Alex Ion says:

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


  • >
    Scroll Up

    Sign Up Below... For Tips and Tools to Help You Build a Better Blog

    >> Sign Up Now and get access to:

    • chevron-circle-right
      The exact methods I use to make money
    • chevron-circle-right
      Resources to increase traffic to your blog
    • chevron-circle-right
      The latest updates from Sabahan.com

    We hate spam. Unsubscribe anytime.