Search
Clear search
Close search
Google apps
Main menu

Enhance your organization's website even more with Google Site Search.

Configure Google Analytics Site Search

If you already have a Google Analytics account, you can configure Analytics Site Search reports from within Custom Search.

 
To enable Google Analytics Site Search, you must add the Google Analytics tracking code to your site.
At this time, Google Custom Search Engine, is not compatible with Universal Analytics.

Configure Google Analytics Site Search reports:

  1. On the Custom Search home page, under Edit search engine, select the search engine you want.
  2. Click Statistics, and then click the Google Analytics tab. 
  3. If you have a Google Analytics account, select Yes.
  4. Click Edit next to the profile you want to use.
  5. Make sure to check the Enable Google Analytics site search box.
  6. In the Query parameters box, type the query parameters you want to use. Please enter only the word or words that designate an internal query parameter such as "term,search,query". Sometimes the word is just a letter, such as "s" or "q". You can provide up to five parameters, each separated by a comma.
  7. (Optional) If your search engine includes refinements, type the category parameter in the Category parameters box.
  8. Click OK.

Your page should now contain both the Custom Search snippet and the Google Analytics tracking code, like this:

      <!DOCTYPE html>
      <html>
      <head>
        <title>Example</title>
      </head>
      <body>
        <!-- Paste your CSE code snippet (for search results) here. -->

        <!-- The following is your Google Analytics setup code. -->
        <script>
          var _gaq = _gaq || [];
          _gaq.push(['_setAccount', 'UA-12345678-1']);
           _gaq.push(['_trackPageview']);

          (function() {
            var ga = document.createElement('script');
            ga.type = 'text/javascript';
            ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www')
                          + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(ga, s);
          })();
        </script>
      </body>  
      </html>

You’re done. You can now see Site Search reports in Google Analytics. Note that it may take several hours before data is available for viewing.