Two methods to use Google search in your website. Using google search in your website is an effective method to help visitors find content quickly. It also gives an idea of what users are searching for in your website.

google search website

Method 1: Using Google custom search

  1. Go to cse.google.com
  2. Login with your Gmail id.
  3. Enter your website URL. (If you want to search the entire web, enable search the entire web).
  4. Go to edition-> Click on get code.
  5. Add this code to your website and take live.
  6. If you are on WordPress, you can add this code using the WP Google search plugin.Google search website

Method 2: Using the Google custom search API

  1. Create a Google custom search engine.
  2. Enter your website URL.
  3. Get your CX or search engine ID from your Google custom search control panel.
  4. Get your Google custom search JSON API Key from here.
  5. Formulate your Google custom search API URL in the following format.
    https://www.googleapis.com/customsearch/v1?key={YOUR_API_KEY}&cx={CUSTOM_SEARCH_ENGINE_ID}&q={KEYWORD}

     

muthali ganesh

Muthali loves writing about emerging technologies and easy solutions for complex tech issues. You can reach out to him through chat or by raising a support ticket on the left hand side of the page.

You may also like