Analytics & Reporting

Site Search Tracking: Learn What Visitors Look For

Your site search box tells you exactly what visitors want in their own words. Here is how to set up site search tracking in Google Analytics, read the reports and turn searches into content and fixes.

Quick answer: Site search tracking records what visitors type into your website’s search box. In Google Analytics (Universal Analytics), you turn it on in the view settings by entering the URL query parameter your search uses, such as s for WordPress or q for many other sites. The data then appears under Behavior > Site Search, showing search terms, how often people search, which pages they searched from and whether they left after seeing results. Use it to find missing content, unclear navigation, product demand and the words customers actually use.

Why site search data is valuable

Most analytics data shows behaviour, and you have to infer intent. Site search data is intent written down. When a visitor types “delivery to Canada” or “price list”, they are telling you what they want and, often, that they could not find it easily.

That makes site search one of the most useful and underused reports in Google Analytics. It can reveal:

  • Content or products people expect but you do not offer
  • Pages that exist but are hard to find through navigation
  • Terms customers use that differ from your own labels
  • Questions that should be answered on key pages or in FAQs
  • Demand for products, sizes or features

Step 1: Find your search query parameter

When someone searches your site, the search term usually appears in the URL. Run a search on your own site and look at the address bar.

  • WordPress: https://example.com/?s=pricing uses the parameter s
  • Many sites and platforms use q, query, search or keyword
  • Shopify stores typically use q on the /search page

Note the letters before the equals sign. That is the parameter you need. If your search results URL does not contain the term at all, skip to the section on sites without a query parameter below.

Step 2: Turn on site search tracking

In Google Analytics:

  1. Go to Admin
  2. In the View column, choose the view you want (ideally your main reporting view, and test it in a test view first)
  3. Click View Settings
  4. Scroll to Site Search Settings and switch Site search Tracking on
  5. Enter your query parameter in the Query parameter field. You can enter several, separated by commas, up to five
  6. Decide whether to tick Strip query parameters out of URL. This removes the search parameter from page URLs in other reports, which keeps page reports tidier
  7. Optionally, turn on Site search categories if your search has a category filter with its own parameter
  8. Save

Tracking only applies from the moment you turn it on. Google Analytics does not process past data retroactively, so set it up early.

It is good practice to keep an unfiltered view and a test view alongside your main reporting view, so you can try settings safely. Our Google Analytics audit checklist covers that and other setup basics.

Step 3: Read the reports

Site search reports live under Behavior > Site Search.

Overview

Shows high-level numbers:

  • Sessions with Search: the share of sessions where someone used the search box
  • Total Unique Searches: number of searches, counting repeats of the same term in a session once
  • Results Pageviews / Search: how many result pages people viewed per search
  • % Search Exits: how often people left the site straight from the search results page
  • % Search Refinements: how often people searched again with a different term
  • Time after Search and Average Search Depth: how long and how far people went after searching

Usage

Compares sessions with and without search. This shows whether searchers behave differently, for example converting at a higher or lower rate. If you have goals or ecommerce tracking set up, you can see how search relates to leads and sales.

Search Terms

The most useful report. It lists the actual terms people searched, with exits and refinements for each. Sort by Total Unique Searches to see the most common, then look at % Search Exits to find searches that disappointed.

Search Pages

Shows which pages people were on when they searched. A high number of searches from a particular page can signal that the page did not answer something important.

Step 4: Turn search data into action

Collect a few months of data, then review it regularly. Questions to ask:

What are the top searches? If many people search for something already in your main navigation, the menu label may be unclear, or the link may be hard to spot on mobile.

Which searches lead to exits? A high exit rate on a term often means the results were poor or the content does not exist. Either improve your search results, create the missing page, or both.

What words do customers use? If visitors search “cost” and your page is titled “investment”, consider changing the label. Those same words are useful for keyword research and page titles.

Where do people search from? If visitors search for “shipping” from product pages, add shipping information to those pages.

What do refinements show? When people search “boots”, then “waterproof boots”, then “waterproof boots size 9”, they are telling you which filters would help.

What is missing entirely? Searches for products or services you do not offer can guide what to add.

For WordPress sites, the default search is basic, and poor results increase exits. Our guide to improving WordPress site search covers how to make results more relevant.

Sites without a query parameter

Some search systems use clean URLs like /search/pricing/, send searches via a form POST, or load results with JavaScript without changing the URL. Standard site search settings will not pick those up.

Options include:

  • Change the search to use a query parameter, if your developer can do it easily
  • Send a virtual pageview with Google Tag Manager or analytics code, such as /search?q=pricing, when results load. Analytics then treats it like a normal search URL
  • Use a filter in a view to rewrite clean search URLs into a query parameter format

Tag Manager is often the cleanest route for JavaScript-driven search, similar to how we handle form submission tracking.

Privacy and data quality tips

  • Watch for personal data. Some visitors type email addresses or phone numbers into search boxes. Google Analytics terms forbid sending personally identifiable information, so consider filtering or masking search terms that look like emails, especially if you serve European visitors under GDPR.
  • Lowercase search terms with a view filter so “Pricing” and “pricing” are counted together.
  • Exclude internal traffic, so staff searches do not skew the data.
  • Watch for spam terms that may come from bots rather than real visitors.

Sharing site search data with your team

Site search findings are useful beyond the web team. Sales and support teams often recognize the same questions. Consider adding a monthly table of top searches and top exit searches to your reporting dashboard. Our guide to Google Data Studio dashboards explains how to build one that updates automatically.

FAQ

Why is my Site Search report empty?

Check that the query parameter matches your search URL exactly, that you enabled tracking in the right view, and that enough time has passed. Data only appears from the day you turn it on.

How many people use site search?

It varies widely by site. Sites with large catalogs or lots of content see more searches. Even if a small share of visitors search, those visitors often show high intent.

Should I strip the query parameter?

Usually yes. It keeps search results URLs from cluttering your page reports. The search terms still appear in the Site Search reports.

Does this work with Google Tag Manager?

Yes. If Google Analytics is deployed through Tag Manager, site search settings in the view still apply. For searches without a URL parameter, Tag Manager can send virtual pageviews.

Let visitors tell you what they need

Site search tracking takes minutes to set up and gives you a steady list of what visitors want in their own words. Review it monthly, fix what frustrates people and build what they are asking for. If you want help setting up tracking and reporting you can act on, see our Know what’s working service.

About the author

Imran M

Leave a Reply

Your email address will not be published. Required fields are marked *

Ready to improve your website?

Let's build a faster, higher performing website.