Internal site search is the search box on your own website, and the record of what visitors type into it. For a site owner it does two jobs: it helps people find a page fast, and it hands you their exact words for what they want. Few data sources are as plain about intent.
What is internal site search? #
It is any search feature that looks only at your own pages or products: a box in the header, a search page, or a filter on a shop. The visitor types “gift set under £20”, your site returns a results page, and the words they typed can be counted. That count is the part this page is about.
It is different from a search engine query. A search query on Google tells you how someone found the site. A site search term tells you what they still wanted after they arrived. That second question is often the more useful one.
Why does it matter for analytics? #
Three reasons.
- Real demand in the visitor’s words. Site search terms are a free form of keyword research. They show the names people use, which are often not the names in your menu.
- Gaps. A search that returns nothing is a request you could not meet: a product you do not stock, a page you never wrote, or a spelling your search does not understand.
- Navigation problems. If many people search for “delivery” from the home page, your navigation is hiding it. See user experience.
How does Google Analytics 4 track it? #
Google Analytics 4 can track it without extra code. Its enhanced measurement help page says the view_search_results event fires each time a visitor is shown a search results page, as indicated by a URL query parameter. By default it looks for five parameter names: q, s, search, query and keyword. You can add others in the settings. The term itself goes into the search_term parameter, which fills the Search term dimension.
So if your search page looks like /search/?s=green+tea, GA4 should see it. If your search runs inside a script and never changes the address, it will not, and you will need a custom event. WordPress uses ?s= by default, which is on GA4’s list.
Remember that GA4 only counts visitors whose browser runs its tag and who accept analytics where consent is needed. See Consent Mode v2 for UK websites and why analytics numbers are low. Server-side and cookieless analytics can count searches without that gap.
Why does it matter for search engines? #
Search results pages on your own site are usually poor landing pages for Google. Each new term creates a new address, so a site search can produce endless near-empty pages. Google’s crawl budget guide says to block unimportant pages that duplicate content using robots.txt if you cannot consolidate them. Its spam policies warn against pages that are “closer to search results than a clearly defined, browseable hierarchy” under doorway abuse, and list scraping search results to make many pages as scaled content abuse.
Our advice for most small sites: keep internal search results out of the index with noindex or a robots.txt rule, and turn the popular terms into real pages, such as a category or a guide. Do not use both at once on the same address; see noindex, nofollow or robots.txt.
One older search feature has gone. Google said on 21 October 2024 that it would remove the sitelinks search box from results from 21 November 2024, because use had dropped. It said there is no need to remove the SearchAction markup, and that the change does not affect rankings.
Why does it matter for AI answers? #
Your site search log is a list of real questions. The same questions are asked of AI assistants every day. If people search your site for “is this kettle limescale safe?” and you have no page that answers it, an AI system has nothing of yours to quote either. Turning frequent searches into clear, answer-first pages serves both. It also feeds prompt research: site search terms tell you which questions to test in ChatGPT or Perplexity.
AI agents may also use your search box to shop. Clear results pages with real links, prices and stock help them; see agent readiness and agentic commerce.
How should the search box be built? #
- Use a normal form that sends the term in the address, such as
?q=, so analytics and links work. - Wrap the form in the HTML
<search>element. MDN says it defines a search landmark, which removes the need to addrole=search, and that it is widely available in browsers since October 2023. MDN also says the element is not for the results themselves. - Give the box a visible label, not just a magnifying glass. See web accessibility.
- Handle spelling slips, plurals and the names customers use.
- Show something useful on zero results: popular items, a contact link, categories.
Common mistakes #
- Not tracking it. The box works, but nobody reads the terms.
- A search that never changes the URL. GA4’s enhanced measurement cannot see it.
- Indexed result pages. Thousands of thin pages compete with your real ones. See index bloat and thin content.
- Linking to search results in menus. Link to a proper category page instead.
- Ignoring zero-result searches. They are the clearest list of lost sales you will get.
- Personal data in terms. People type email addresses and order numbers into boxes. Do not send those to analytics; see UK GDPR.
A worked example #
A kitchenware shop reads 30 days of site search terms.
| Term | What it shows | Action |
|---|---|---|
| “teapot 1 litre” | Many searches, results shown | Add size to product titles and a size filter |
| “returns” | Searched from the home page | Add Returns to the footer menu |
| “cast iron kettle” | Zero results | Stock decision: worth a test? |
| “is enamel dishwasher safe” | Zero results | Write an answer-first guide |
Each row is a small change. Together they fix navigation, content and stock, all from the shop’s own visitors.
How to check it #
- Search your own site and look at the address. If the term appears after
?q=,?s=or similar, GA4 can see it. - Check that tracking tags load on the results page with our Tracking Checker.
- See whether result pages are indexable with our Indexability Checker, and confirm what your rules block using the Robots.txt Checker.
- Look for endless search and filter addresses with our Crawl Trap Checker.
- Group the terms you collect into topics with Keyword Clusters.
- In URSY Pro, Site search terms (Pro) and Zero-result searches (Pro) are being built to report this for you.
Questions #
How many searches do I need before it is useful? #
There is no set number. Even a few dozen zero-result searches can show a clear gap.
Should internal search pages be in Google? #
Usually not. Build real pages for the popular terms instead.
Can I see site search in Search Console? #
No. Search Console shows searches on Google. Site search comes from your own analytics or server.
Is this the same as faceted navigation? #
No, but both create many addresses. See faceted navigation.
Related words #
Sources #
- Google Analytics Help: Enhanced event measurement, checked 25 November 2026
- Google Search Central: Large site owner’s guide to managing your crawl budget, checked 25 November 2026
- Google Search Central: Spam policies for Google web search, checked 25 November 2026
- Google Search Central Blog: Saying goodbye to the sitelinks search box (21 October 2024), checked 25 November 2026
- MDN: The search element, checked 25 November 2026
Updated 25 November 2026 by URSY.
Cite this page: Internal site search. URSY. Updated 25 November 2026. https://ursy.com/wiki/internal-site-search/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveVerify an AI Botis it really GPTBot? IP, published lists and user agentRun the check →
- Livellms.txt Checker + Generatorcheck your llms.txt, or write llms.txt, llms-full.txt and llms.jsonRun the check →
- LiveAI Crawler Log Analyserdrop in your server log, see which AI bots read what (in browser)Run the check →
- LiveIs your site in Common Crawl (a main source of AI training data)?Run the check →
- ProFan-out trackerThe searches AI runs behind your promptsIn URSY Pro →
- ProSourcesSearch, AI, social, links, directIn URSY Pro →
- ProSite search termsWhat people search for on your siteIn URSY Pro →