You can use both Programmable Search Engine and Google Analytics to get data for your search engine. However, the data in Programmable Search Engine may not match that in Google Analytics (see below). We recommend that you use the Stats page in Programmable Search Engine to get an accurate total number of searches conducted using your search engine. Use Google Analytics data to understand user behavior and track search quality.
There are two ways to get detailed usage information about your search engine.
- The Stats tab of the Statistics and Logs page shows you popular queries for your search engine. You can view this info by day, week, month, or year—even the entire lifetime of your search engine. The Stats page provides accurate data about the search usage and the total number of searches completed.
- The Site Search reports in Google Analytics provide data and metrics on how people use search on your site. If you already have a Google Analytics account (using the same Google Account you use for your search engine), we recommend that you configure these reports directly from the Programmable Search Engine control panel. The Site Search reports provide the following data:
- Search usage: What did users search for on your site? Did they refine their searches? Where did they go after searching?
- Trending terms: What are people searching for?
- Pages: Which pages on your site have the most search usage?
Why doesn't Statistics data match the Site Search data in Analytics?
The Statistics data in Programmable Search Engine may differ from the data displayed in other tools, such as Google Analytics. Possible reasons for this include:
- Programmable Search Engine returns 10 results at a time. When a user does a search for [pizza], and then clicks on the second page of results (for example, to see results 11-20), Programmable Search Engine considers that click to be a second search for the term [pizza]. Google Analytics considers only unique searches per visit, and would count both as a single search. Similarly, if a user searched for [pizza] twice during a visit, Programmable Search Engine will count those as separate search.
- Once you add the Google Analytics tracking code to your site, Analytics will track usage from the time the code was added. The Statistics page in Programmable Search Engine shows the total number of searches since the search engine was created.
- Google Analytics doesn’t track any searches that come from automated scripts you may be running on your site.