Free auditStart free
GlossaryGlossary · Measurement

Internal search

Internal search is the search box on your own site. See what its queries tell you, how GA4 tracks them, and how to keep its result URLs from wasting crawling.

4 min
read
4
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Internal search, also called site search, is the search function on your own website that lets visitors look for content within it, as opposed to searching the web with Google. Its value is the data: Google Analytics 4 can record each search term, which shows what visitors want and could not find through your navigation.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode

At a glance

4 facts from the sources below
Site search, on-site search
Also called
view_search_results
GA4 event
q, s, search, query, keyword
GA4 default parameters
Many crawlable result URLs
SEO risk
02How it works

How to track internal search in GA4

GA4's enhanced measurement includes a site search option. Google documents the view_search_results event as firing each time a user is shown a search results page, as indicated by a URL query parameter. By default it looks for one of 5 parameters in the URL: q, s, search, query and keyword. The search term fills the Search term dimension.

Google notes that the event only sends the unique_search_term parameter when its value is 1, meaning the string is unique to that session. See Google Analytics 4 for the rest of the setup.

  1. 01

    Check your search URL

    Run a search on your site and look at the address. If it reads /?s=shoes or /search?q=shoes, a default parameter is already covered.

  2. 02

    Add your own parameter if needed

    If your search uses another name, such as term, add it in the enhanced measurement site search settings. Google says you can optionally configure the event to look for other query parameters.

  3. 03

    Confirm the event fires

    Search once on your site, then check that view_search_results appears in realtime reporting or DebugView, with the term in search_term.

03At a glance

What to do with the search terms

What you see

A term searched often that matches a page you have

What it probably means
The page is hard to find through navigation
Action
Link it from the menu, home page or related pages
What you see

A term with no matching page

What it probably means
A content gap
Action
Brief a page, then add it to the plan
What you see

A product or feature name spelled several ways

What it probably means
Visitors use different vocabulary than you
Action
Add synonyms to the search tool and use their wording in copy
What you see

Searches that start on a landing page

What it probably means
The page did not answer the intent of its visitors
Action
Review that page against what people searched next
04Check it

The SEO side: result pages and crawling

Every search can create a new URL such as /search?q=anything. Google's guidance on faceted navigation describes a similar problem for filter URLs: its most common implementation, based on URL parameters, can generate infinite URL spaces, which leads to overcrawling and slower discovery crawls of new, useful URLs. Google's doorway spam policy also lists creating substantially similar pages that are closer to search results than a clearly defined, browseable hierarchy.

If you do not want result pages in Google, Google's robots.txt documentation says robots.txt is used to manage crawling and to avoid crawling unimportant or similar pages. It also warns not to use it as a way to hide pages from Search: a blocked URL can still appear in results, without a description, if other pages link to it. To keep a page out of results, use noindex or password protection.

robots.txt example (adjust the path to your search URL)
User-agent: *
Disallow: /search
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is an internal search?

A search function inside a website that lets visitors find content on that site, as opposed to searching the web with a search engine. It is also called site search.

02What is the difference between internal and external search?

External search happens in a search engine such as Google and returns pages from many sites. Internal search happens on one site and returns only that site's content. Internal search terms show you what visitors want after they arrive.

03How do I see internal search terms in Google Analytics 4?

Turn on enhanced measurement for the web data stream. GA4 then records a view_search_results event when a URL contains q, s, search, query or keyword, and fills the Search term dimension.

04Should internal search result pages be indexed?

The Google documents cited here give no rule just for them. They cover the underlying risks: infinite parameter URLs and near-duplicate pages. If you don't want them in Search, use robots.txt to manage crawling or noindex to keep them out of results, and don't rely on robots.txt to hide pages.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  1. 01Google Analytics Help: Enhanced measurement eventssupport.google.com · checked 2026-10-25
  2. 02Google Crawling Infrastructure: Managing crawling of faceted navigation URLsdevelopers.google.com · checked 2026-10-25
  3. 03Google Search Central: Spam policies for Google web searchdevelopers.google.com · checked 2026-10-25
  4. 04Google Search Central: Introduction to robots.txtdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly