# Analyze internal search

- Check 33.04 · Prompts, intent and conversational search · Important
- Source: https://checklist-seo-geo.com/en/prompts-intent-conversational-search/analyze-internal-search
- Measure internal search with GA4, Matomo, Shopify, PrestaShop or Magento, then turn search terms and searches with no results into actions.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/prompts-intent-conversational-search/analyze-internal-search.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## 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](https://checklist-seo-geo.com/en/indexing-canonicalization/handle-internal-search-results-no-seo-value): 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](https://checklist-seo-geo.com/en/ux-conversion/test-internal-search).
- **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

1. **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.
2. **Is the data coming in?** In GA4, open `Reports > Realtime`, run a search and check that a `view_search_results` event appears. In Matomo, open the visits log and find your search.
3. **Can searches with no results be identified?** Shopify, PrestaShop, Magento, Matomo and Algolia distinguish them; GA4 does not, without additional configuration.
4. **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:

```js
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:

```js
_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 Terms` shows each query, the store view, the number of results (`Results`) and the number of uses (`Hits`). Sort by `Results` in ascending order to see searches with no results.
- **Action**: `Marketing > SEO & Search > Search Terms` lets you associate a frequent term with a redirect URL (`Redirect URL`), for example `cylinder` to 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

1. **Export** the terms for the period with their number of searches and, if possible, of results.
2. **Normalize**: `=LOWER(TRIM(A2))` in Google Sheets, then group variants (plurals, typos) under a reference term.
3. **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](https://checklist-seo-geo.com/en/readability-direct-answers/answer-questions-directly) |
| Practical fact | “delivery belgium”, “lead time” | Information on the decision pages |
| Competing brand | “matcha brand X” | Signal for [alternatives prompts](https://checklist-seo-geo.com/en/prompts-intent-conversational-search/identify-prompts-about-alternatives) |

4. **Prioritize** by number of searches, starting with those with no results.
5. **Copy** the terms that reveal a need into your [bank of prospects' questions](https://checklist-seo-geo.com/en/prompts-intent-conversational-search/list-prospects-real-questions), 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](https://checklist-seo-geo.com/en/prompts-intent-conversational-search/avoid-one-url-per-minor-question-variation).
- **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 measurement](https://support.google.com/analytics/answer/9216061?hl=en)
- [Matomo: tracking site search keywords](https://matomo.org/faq/reports/tracking-site-search-keywords/)
- [Matomo: analyzing site search reports](https://matomo.org/faq/reports/analyse-site-search-reports/)
- [Shopify Help Center: behavior reports](https://help.shopify.com/en/manual/reports-and-analytics/shopify-reports/report-types/default-reports/behaviour-reports)
- [PrestaShop: statssearch module](https://github.com/PrestaShop/statssearch)
- [Adobe Commerce: search terms](https://experienceleague.adobe.com/en/docs/commerce-admin/catalog/catalog/search/search-terms)
- [Algolia: search analytics overview](https://www.algolia.com/doc/guides/search-analytics/overview/)
- [Relevanssi on WordPress.org](https://wordpress.org/plugins/relevanssi/)

Next steps: [identify missing information](https://checklist-seo-geo.com/en/prompts-intent-conversational-search/identify-missing-information) and [enrich existing pages before creating new ones](https://checklist-seo-geo.com/en/prompts-intent-conversational-search/enrich-existing-pages-before-creating-new-ones).
