# 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.

Canonical: https://scaplet.com/glossary/internal-search

Glossary Glossary · Measurement

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Finternal-search%20(%22Internal%20search%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Finternal-search%20(%22Internal%20search%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Finternal-search%20(%22Internal%20search%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Finternal-search%20(%22Internal%20search%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## 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

_01_At a glance

## Internal search vs external search

### Where it happens

Internal search

A search box on your own site

External search

A web search engine such as Google or Bing

### Who runs it

Internal search

You, or a search tool on your site

External search

The search engine

### What the query tells you

Internal search

What a visitor who already arrived still cannot find

External search

What people want before they pick a site

### Where you see the terms

Internal search

Your own analytics

External search

[Google Search Console](/glossary/google-search-console), as aggregated queries

In an enterprise setting the phrase can also mean searching a company's internal documents and apps. This page covers the website meaning, where visitors search a public site.

_02_How 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](/glossary/serp) 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](/glossary/query) 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](/glossary/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](/glossary/url-parameters).
3. 03

### Confirm the event fires

Search once on your site, then check that `view_search_results` appears in realtime reporting or [DebugView](/glossary/ga4-debugview), with the term in `search_term`.

_03_At 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](/glossary/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](/glossary/landing-page)

What it probably means

The page did not answer the [intent](/glossary/search-intent) of its visitors

Action

Review that page against what people searched next

_04_Check 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.

**Pick one rule per URL set**A crawler can only see a `noindex` tag on a page it is allowed to fetch. Google cautions that combining multiple crawling and indexing rules might cause some rules to counteract other rules. Decide between blocking crawling and allowing `noindex`, then test with the [URL Inspection tool](/glossary/url-inspection-tool).

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.

_01_ What 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.

_02_ What 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.

_03_ How 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.

_04_ Should 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. 01 [Google Analytics Help: Enhanced measurement events](https://support.google.com/analytics/answer/9216061) support.google.com · checked 2026-10-25
2. 02 [Google Crawling Infrastructure: Managing crawling of faceted navigation URLs](https://developers.google.com/crawling/docs/faceted-navigation) developers.google.com · checked 2026-10-25
3. 03 [Google Search Central: Spam policies for Google web search](https://developers.google.com/search/docs/essentials/spam-policies) developers.google.com · checked 2026-10-25
4. 04 [Google Search Central: Introduction to robots.txt](https://developers.google.com/search/docs/crawling-indexing/robots/intro) developers.google.com · checked 2026-10-25

## Keep learning

[All glossary](/glossary)

[Learn Faceted navigation Crawling](/glossary/faceted-navigation) [Related Google Analytics 4 Measurement](/glossary/google-analytics-4) [Read next Index bloat Crawling and indexing](/glossary/index-bloat) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Interaction to Next Paint (INP)](/glossary/interaction-to-next-paint) [Internal links](/glossary/internal-links) [International SEO](/glossary/international-seo) [JavaScript SEO](/glossary/javascript-seo)

More in Measurement
[Default channel group](/glossary/default-channel-group) [Direct traffic](/glossary/direct-traffic) [Dwell time](/glossary/dwell-time) [Engagement rate](/glossary/engagement-rate) [GA4 audiences](/glossary/ga4-audiences) [GA4 DebugView](/glossary/ga4-debugview) [GA4 events](/glossary/ga4-events) [GA4 Explorations](/glossary/ga4-explorations) [GA4 sessions](/glossary/ga4-sessions) [Google Analytics 4](/glossary/google-analytics-4) [Google Tag Manager](/glossary/google-tag-manager) [Impressions](/glossary/impressions) [Internal search](/glossary/internal-search) [Key events](/glossary/key-events) [Last touch attribution](/glossary/last-touch-attribution) [Lead scoring](/glossary/lead-scoring) [Magic number (SaaS)](/glossary/magic-number) [Measurement Protocol](/glossary/measurement-protocol) [MRR (monthly recurring revenue)](/glossary/mrr) [Multivariate testing](/glossary/multivariate-testing) [Net Promoter Score (NPS)](/glossary/nps) [Net revenue retention (NRR)](/glossary/net-revenue-retention) [North star metric](/glossary/north-star-metric) [Performance report](/glossary/performance-report)

Terms on this page
[Google Search Console](/glossary/google-search-console) [SERP](/glossary/serp) [Search query](/glossary/query) [URL parameters](/glossary/url-parameters) [GA4 DebugView](/glossary/ga4-debugview) [Google Analytics 4](/glossary/google-analytics-4) [Content gap](/glossary/content-gap) [Landing page](/glossary/landing-page)

Free · 2 minutes

## Know the term. _Now check your site._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
