In short
Your internal search engine records what visitors type, in their own words, when the navigation was not enough for them. This task consists of measuring these searches, especially those that return no results, then sorting them to fix the navigation, enrich pages, add synonyms and feed your prompts. Once it is in place, you get every month the list of search terms, the searches with no results and the pages viewed afterwards.
Why it matters
A visitor who uses internal search tells you three things: what they want, the word they use to say it, and that your navigation did not lead them to the right page. No other source gives these three pieces of information as directly, about your own audience.
Searches with no results are the most valuable. They reveal a product or service you do not offer, a page that exists under another name (“cylinder” instead of “water heater”), or a question no content answers. This vocabulary gap is the same one that separates your pages from the prompts people put to AI assistants.
This task has nothing to do with indexing internal results pages, which is covered by handling internal search results with no SEO value (opens in a new tab): here, you read the searches, you do not publish them.
What it improves
- Navigation and conversion Frequent terms point to the pages that should be easier to reach. See test internal search (opens in a new tab).
- Missing content Searches with no results list the offers, products and answers missing from the site.
- Page vocabulary Visitors' words make their way into titles and copy, which also helps search engines and assistants match a question with the right page.
- Prompts The terms provide the real vocabulary to reuse in the prompt panel.
- Rankings An indirect effect only.
How to check
- Is search measured? Run a search on your site and look at the URL of the results page. If it contains
?q=,?s=,?search=,?query=or?keyword=, GA4 can detect it automatically. A URL with no parameter (JavaScript search) requires manual measurement. - Is the data coming in? In GA4, open
Reports > Realtime, run a search and check that aview_search_resultsevent appears. In Matomo, open the visits log and find your search. - Can searches with no results be identified? Shopify, PrestaShop, Magento, Matomo and Algolia distinguish them; GA4 does not, without additional configuration.
- Does anyone read this data at least once a month?
How to implement
Before you start
- Useful volume: on a small site, it sometimes takes three to six months of data for trends to emerge. Start measuring right away, analyze later.
- Personal data: visitors sometimes type their email, an order number or their name into the search box. Google Analytics policies prohibit sending it information that could identify a person: if your internal search receives such data, filter it out before sending. Do not share a raw export.
- A single reference source: if both the CMS and the analytics tool count searches, choose one for comparisons over time.
With Google Analytics 4
Versions Google Analytics 4, November 2026 interface.
Enable detection. Admin > Data collection and modification > Data streams, choose the web stream, then the settings icon for Enhanced measurement. The site search option detects the URL parameters q, s, search, query and keyword by default. If your search engine uses another parameter (?recherche=, ?term=), add it in the advanced settings of this option, then save.
The view_search_results event is then sent each time a results page is displayed, with the search_term parameter that populates the “Search term” dimension.
JavaScript search. If the URL does not change, send the event from your code when the results are displayed:
gtag('event', 'view_search_results', {
search_term: query,
search_results: results.length
});
The search_results parameter does not exist by default: register it as an event-scoped custom dimension in Admin > Custom definitions, so you can filter searches with zero results. With Google Tag Manager, push the same values to the data layer and create a GA4 event tag.
Read the data. Explore > Free form: “Search term” dimension in rows, “Event count” metric, “Event name” filter equal to view_search_results. Add the custom dimension for the number of results to isolate the zeros. Export to CSV or Google Sheets.
With Matomo
Versions Matomo 5.
Enable. In the administration, open site management (Websites > Manage), edit the site and enable Site Search tracking. By default, Matomo recognizes the parameters q, query, s, search, searchword, k and keyword; add your own if needed.
JavaScript search. On the results page, replace the trackPageView call with:
_paq.push(['trackSiteSearch', query, category || false, results.length]);
The third argument, the number of results, lets Matomo isolate keywords with no results.
Read the data. Behavior > Site Search brings together the search keywords, the keywords with no results, the search categories if you use them, and the pages viewed after a search.
WordPress
Versions WordPress 6.5 and later; Relevanssi plugin 4.x.
WordPress's native search uses the ?s= parameter, detected without any setup by GA4 and Matomo. The same goes for WooCommerce product search (?s=…&post_type=product).
WordPress does not record searches itself. For a log you can view in the admin, the free Relevanssi plugin records queries and displays the most frequent ones as well as recent searches with no results: enable logging in its settings, then open the “User searches” screen in the admin menu. Relevanssi also replaces the WordPress search engine: test it on a copy of the site before enabling it in production.
Shopify
Versions Shopify admin, all plans, November 2026.
Open Analytics > Reports and filter on the Behavior category. Four reports cover store search:
| Report | What it shows |
|---|---|
| Searches by search query | The terms entered and the number of sessions that used them |
| Searches with no results | The terms that returned no results |
| Searches with no clicks | The terms that returned results without any click |
| Search conversions over time | The click, add-to-cart and purchase rates of sessions with a search |
Data can be up to 72 hours late. The conversions report assumes Shopify's native search and a theme that uses the url property of results, which themes developed by Shopify do. If a third-party app replaces search, use its own statistics. Access to some reports may depend on your plan.
PrestaShop
Versions PrestaShop 8.2 and later, statssearch module.
In Modules > Module Manager, check that the shop search statistics module (statssearch) is installed and enabled. Then open Stats and choose this module in the list on the left: it lists the keywords searched by visitors, filterable by period. Export the list for analysis.
With a third-party search module, search may no longer go through the native engine: in that case, check the module's statistics.
Magento
Versions Magento Open Source and Adobe Commerce 2.4.
- Report:
Reports > Marketing > Search Termsshows each query, the store view, the number of results (Results) and the number of uses (Hits). Sort byResultsin ascending order to see searches with no results. - Action:
Marketing > SEO & Search > Search Termslets you associate a frequent term with a redirect URL (Redirect URL), for examplecylinderto the water heaters category. Use it for terms that clearly refer to an existing page.
With Algolia
Versions Algolia dashboard, November 2026.
In the dashboard, choose the application, then Search, the index and Analytics. There you will find the most frequent searches, searches with no results and, if you send click and conversion events, the related rates. The download button exports to CSV or XLSX. Query rules and synonyms are set in the index configuration.
Analyze the terms every month
- Export the terms for the period with their number of searches and, if possible, of results.
- Normalize:
=LOWER(TRIM(A2))in Google Sheets, then group variants (plurals, typos) under a reference term. - Classify each term at the top of the list into one of these categories:
| Category | Example | Action |
|---|---|---|
| Existing page that is hard to reach | “pricing” searched 120 times | Link in the menu or the footer |
| Different vocabulary | “cylinder”, while the site says “water heater” | Synonym in the search engine, term used on the page |
| Missing offer | “water softener descaling” with no results | Decide: create the offer, the page, or nothing |
| Question | “green tea pregnant” | Answer section or page. See answer questions directly (opens in a new tab) |
| Practical fact | “delivery belgium”, “lead time” | Information on the decision pages |
| Competing brand | “matcha brand X” | Signal for alternatives prompts (opens in a new tab) |
- Prioritize by number of searches, starting with those with no results.
- Copy the terms that reveal a need into your bank of prospects' questions (opens in a new tab), and turn them into complete prompts: “cylinder 200 l price” becomes “how much does it cost to replace a 200-liter hot water cylinder in Nantes?”.
Tip: compare internal search terms with Search Console queries. A term searched often on the site but absent from Google queries often points to a need your pages do not express in visitors' vocabulary.
Common mistakes
- JavaScript search not measured: GA4 sees nothing, and you wrongly conclude that nobody uses search.
- Undeclared URL parameter (
?recherche=): same result. - Ignoring searches with no results: they are the most instructive.
- Fixing only the search engine: a synonym fixes internal search, not the page that keeps using different vocabulary from its visitors.
- Creating a page for each search term: many terms refer to an existing page. See avoid one URL per minor question variation (opens in a new tab).
- Sharing a raw export containing emails or order numbers typed into the search box.
- Letting results pages be indexed instead of analyzing them.
Frequently asked questions
How can I see what visitors search for on my site?
Enable internal search measurement in your analytics tool. In GA4, enhanced measurement detects searches whose URL contains q, s, search, query or keyword, and populates the “Search term” dimension. Matomo offers a Site Search menu. Shopify, PrestaShop and Magento have their own reports in the back office. A JavaScript search with no URL parameter requires sending the event manually.
How do I find internal searches with no results in GA4?
GA4 does not natively know how many results a search returned. Send the number of results as a parameter of the view_search_results event, register it as a custom dimension, then filter on the value zero in a free-form exploration. Matomo, Shopify, Magento and Algolia identify searches with no results without this work, provided you pass them the number of results when search runs in JavaScript.
Should I create a page for every internal search with no results?
No. A search with no results may refer to an existing page under another name, in which case a synonym and using the term on the page are enough. It may also target an offer you do not provide: creating a page then only makes sense if the offer exists or will exist. Only frequent searches that express a real, uncovered need justify new content.
How does internal search relate to AI assistant prompts?
Internal search shows your visitors' real vocabulary, the words they reuse when writing to an AI assistant. The terms are short, but they reveal needs, synonyms and competing brands. By adding your prospects' context (location, budget, constraint), you get realistic prompts to test, rather than phrasings invented in-house.
Resources
- Google Analytics Help: enhanced event measurementsupport.google.com
- Matomo: tracking site search keywordsmatomo.org
- Matomo: analyzing site search reportsmatomo.org
- Shopify Help Center: behavior reportshelp.shopify.com
- PrestaShop: statssearch modulegithub.com
- Adobe Commerce: search termsexperienceleague.adobe.com
- Algolia: search analytics overviewalgolia.com
- Relevanssi on WordPress.orgwordpress.org
Updated on
Topic checklist (PDF)