In short
Testing internal search means checking that the site's search engine returns the right result at the top for the words visitors actually type: typos, synonyms, product references, full questions. The task produces a grid of 30 to 50 scored test queries, a measurement of searches with no results and a list of fixes. Once it is done, visitors who search find what they want instead of going back to Google or to an AI assistant.
Why it matters
Visitors who use internal search have stated what they want, in their own words. They are the easiest visitors to convert, and the fastest to lose: a “No results” page or a list where the right product shows up in fifteenth position sends them back to the search engine, often to a competitor.
Internal search engines always fail in the same ways. They do not know synonyms (“boiler” and “water heater”, “quote” and “price”), handle typos and accents poorly (“the vert” instead of “thé vert”), ignore the fields that hold the information (reference, attribute, brand) and sort by date rather than by relevance. WordPress's default search, for example, only looks in the title, the excerpt and the content.
The queries typed into internal search are also free keyword research: they reveal your customers' vocabulary and the content that is missing. See analyze internal search (opens in a new tab).
What it improves
- Conversion Sessions with a search succeed when the right result is at the top. Measure the effect on your own site, not with a general figure.
- Retention Fewer returns to the search engine after a failed search.
- Content Queries with no results give you the list of pages or products to create, or of words to add to existing pages.
- AI agents An agent browsing on behalf of a user can use the search field like a human. An accessible, relevant search helps it; the effect is hypothetical and not measured.
- Rankings No direct effect. Internal search results pages should not be indexed anyway.
How to check
In ten minutes, type these five queries into the site's search field and note the position of the right result:
- The exact name of your best-selling product or service.
- The same name with a typo (“chaudiere” without the accent, “cafetiere”).
- A synonym your customers commonly use but that does not appear on your pages.
- A product reference or code (SKU, model number).
- A full question, the way you would ask an assistant: “which tea for the evening without theine”.
Expected result: the right result appears in the top three for the first four queries, and the no-results page offers alternatives (categories, suggestions, contact) rather than a dead end.
Next, check that searches are measured. In Google Analytics 4 (GA4), Reports > Engagement > Events should list view_search_results. In Matomo, the site search report (under Behaviour) should show keywords. If not, start with step 1.
How to implement
Step 1 — Measure searches
GA4. Enhanced measurement detects a search when the URL contains one of the parameters q, s, search, query or keyword, and sends the view_search_results event with the search_term parameter. If your site uses another parameter (recherche, term), add it: Admin > Data collection and modification > Data streams, open the web stream, the gear icon for enhanced measurement, the site search option, advanced settings. If the search does not change the URL (results loaded in JavaScript), send the recommended search event yourself:
gtag('event', 'search', { search_term: 'thé vert sans théine' });
To read the terms: Explore > Free form, dimension “Search term”, metrics “Event count” and “Key events”.
Matomo. Administration > Websites > Manage, the site's pencil icon, Site Search section: turn tracking on and keep the default parameters (q, query, s, search, searchword, k, keyword, keywords) or enter your own. Matomo provides reports on searched keywords, keywords with no results, pages viewed after a search and search categories.
Keywords with no results are only counted if the tool knows the number of results. With Matomo, pass it in trackSiteSearch(motCle, categorie, nombreDeResultats). With GA4, add a custom search_results parameter and register it as a custom dimension.
Step 2 — Build the test grid
Put together 30 to 50 queries from real data: the 20 most searched terms, the 10 most frequent terms with no results, and queries built for each family of pitfall. Example for Thé des Lisières, a fictitious shop:
| Query | Family | Expected result | Position obtained | Verdict | Fix |
|---|---|---|---|---|---|
| thé vert | Main query | Green tea category | 1 | OK | — |
| the vert | Missing accent | Green tea category | No results | Fail | Normalize accents |
| matcha bio | Attribute | Organic matcha page | 4 | Needs work | Weight the title |
| TDL-0412 | Reference | Sencha Fukamushi page | No results | Fail | Index the SKU |
| infusion pour dormir | Synonym, need | Evening herbal teas category | No results | Fail | Synonym “dormir” (sleep) to “soir” (evening) |
| quel thé sans théine le soir | Full question | Rooibos category | 7 | Needs work | More tolerant engine, content on the page |
| frais de port | Practical question | Shipping page | No results | Fail | Include pages in search |
Fictitious values. Test on desktop and on mobile, and with autocomplete (the list that appears while typing) as well as with the full results page: they are often two different engines.
Also check the no-results page: it should repeat the query, suggest a corrected spelling or categories, and offer a way to get in touch. An empty page that only says “No results” is a failure.
Step 3 — Calculate the indicators
Formulas for Google Sheets, with the grid in the Tests tab (verdict in column E) and the export of terms in the Termes tab (A: term, B: searches, C: results):
Grid success rate:
=COUNTIF(Tests!E2:E,"OK")/COUNTA(Tests!E2:E)
Share of searches with no results:
=SUMIF(Termes!C2:C,0,Termes!B2:B)/SUM(Termes!B2:B)
In French-language Excel, these functions are named NB.SI, NBVAL, SOMME.SI and SOMME, with ; as the separator. There is no official threshold: compare your site with itself, month after month, and deal first with the no-result terms that come up most often.
WordPress
Versions WordPress 6.4 and later, WooCommerce 9 and 10, November 2026.
Native search queries the title, the excerpt and the content, with no typo tolerance and no search in custom fields or attributes. Two options:
- Relevanssi (free version): fuzzy search, weighting of the title and tags, excerpts with highlighted terms, and a query log, including recent searches with no results. After installing it, run the indexing from its settings and tick the content types to include (products, pages).
- SearchWP (paid) or an external service such as Algolia, for large catalogs.
Results pages (/?s=) must stay out of the index: common SEO plugins put a noindex on them by default. See handle internal search results with no SEO value (opens in a new tab).
Shopify
Versions Shopify admin, all plans, November 2026.
- Measure:
Analytics > Reports, the “Top online store searches with no results” report, which lists terms with no results and their number of searches. - Fix: Shopify's free Search & Discovery app lets you create synonym groups, boost products for specific terms (
Apps > Search & Discovery > Product boosts, ten terms at most per boost), set up filters and choose the result types (products, pages, articles). - Test: the theme's predictive search and the
/searchpage do not always show the same results; test both.
PrestaShop
Versions PrestaShop 8 and 9.
In Shop Parameters > Search:
- Aliases: map frequent typos to the right word (“sensha” to “sencha”). Typos show up in
Stats, in the catalog search tab. Aliases apply as soon as they are saved. - Indexing: check that the number of indexed products equals the number in the catalog; otherwise add the missing products or rebuild the index.
- Options: search within word, fuzzy search, maximum number of words handled by fuzzy search (4 by default).
- Weight: product name 6, tags 4, descriptions 1 by default. Raise the weight of the reference if your customers search by code.
Magento
Versions Magento Open Source and Adobe Commerce 2.4.
- Report:
Reports > Marketing > Search Termsgives the results and number of searches per term, exportable to CSV. - Search terms:
Marketing > SEO & Search > Search Terms, to redirect a query to a landing page or show it as a suggestion when a search returns nothing. - Synonyms:
Marketing > SEO & Search > Search Synonyms, “New Synonym Group” button. According to the Adobe documentation, they only apply to the name and SKU attributes in the standard configuration.
Laravel
Versions Laravel 12 and 13, Laravel Scout.
Laravel Scout adds search to Eloquent models. The database engine queries MySQL or PostgreSQL directly, with no external service; Meilisearch, Typesense and Algolia add typo tolerance and synonyms.
composer require laravel/scout
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
In .env, SCOUT_DRIVER=database, then in the model:
use Laravel\Scout\Attributes\SearchUsingFullText;
use Laravel\Scout\Searchable;
class Product extends Model
{
use Searchable;
#[SearchUsingFullText(['name', 'description'])]
public function toSearchableArray(): array
{
return [
'name' => $this->name,
'sku' => $this->sku,
'description' => $this->description,
];
}
}
The controller logs searches with no results and keeps the page out of the index:
public function index(Request $request): Response
{
$term = trim((string) $request->query('q', ''));
$products = $term === ''
? collect()
: Product::search($term)->take(24)->get();
if ($term !== '' && $products->isEmpty()) {
Log::channel('search')->info('zero_results', ['term' => $term]);
}
return response()
->view('search.index', ['term' => $term, 'products' => $products])
->header('X-Robots-Tag', 'noindex, follow');
}
Declare the search channel in config/logging.php (daily driver). GA4 and Matomo detect the q parameter without any setting.
Next.js
Versions Next.js 15 and 16 (App Router).
The results page reads the q parameter (a promise since Next.js 15) and declares itself non-indexable:
// app/recherche/page.tsx
import type { Metadata } from 'next';
import { searchProducts } from '@/lib/search';
export const metadata: Metadata = {
robots: { index: false, follow: true },
};
export default async function SearchPage({
searchParams,
}: {
searchParams: Promise<{ q?: string }>;
}) {
const { q = '' } = await searchParams;
const results = q ? await searchProducts(q) : [];
return (
<main>
<h1>Results for “{q}”</h1>
{results.length === 0 && q ? (
<p>No product matches. Try a category or contact us.</p>
) : (
<ul>{results.map((r) => <li key={r.id}><a href={r.url}>{r.name}</a></li>)}</ul>
)}
</main>
);
}
Keep URL-based search (/recherche?q=…) rather than a purely JavaScript state: the search can be shared, is measured automatically and can be used by an agent.
Step 4 — Fix, then rerun every month
- Handle failures by family: synonyms, accent normalization, indexed fields, weighting.
- When a frequent term has no answer on the site, it is missing content (opens in a new tab): create the page or expand the product page.
- Rerun the grid after every change of search engine, theme or plugin, and once a month with the new no-result terms.
Tip: add a “test date” column to the grid and keep the old scores. A regression after a plugin update then shows up immediately.
Common mistakes
- Testing with your own words: the team knows the exact product names. Start from the terms people actually type.
- Measuring only the volume of searches without the number of results: you then cannot spot searches with no results.
- Indexing results pages: they create an infinite URL space and thin content.
- Forgetting autocomplete: it is often what visitors use, and it has its own logic.
- Fixing a typo with an alias without enriching the page: if customers say “herbal tea for sleep”, the page should use those words too.
- Ignoring mobile: a search field hidden behind an icon, a keyboard that covers the suggestions.
Frequently asked questions
How can I see what visitors search for on my site?
Turn on internal search tracking in your analytics tool. In GA4, enhanced measurement detects the URL parameters q, s, search, query or keyword and records the view_search_results event with the search term. In Matomo, turn on Site Search in the website settings. Shopify, PrestaShop and Magento also have their own search term reports, some of which isolate searches with no results.
What should I do when internal search returns no results?
A search with no results has three causes: the product or page does not exist, it exists under another word, or the engine does not read the right field. Add a synonym or alias in the second case, index the reference or attribute in the third, and create the content in the first. The no-results page should always offer categories, a correction or a way to get in touch.
Should internal search results pages be indexed?
No. Internal search results pages generate an infinite number of URLs with thin, redundant content, which waste crawling and add nothing to search engine results. Set them to noindex, follow, and do not list them in the sitemap. If a query deserves an indexable page, create a real category or a landing page with its own content, rather than letting the raw result be indexed.
Is WordPress's native search good enough?
For a small editorial site, often yes. It searches the title, the excerpt and the content, without tolerating typos or reading custom fields and WooCommerce attributes. As soon as visitors search for products or references, or make typos, a plugin such as Relevanssi adds fuzzy search, weighting and a log of searches with no results.
Resources
- Google Analytics Help: Enhanced event measurementsupport.google.com
- Google Analytics for developers: recommended search eventdevelopers.google.com
- Matomo: Enable site search trackingmatomo.org
- Shopify Help: Behavior reportshelp.shopify.com
- PrestaShop 8 documentation: Search parametersdocs.prestashop-project.org
- Adobe Commerce: Search termsexperienceleague.adobe.com
- Laravel: Scoutlaravel.com
Updated on
Topic checklist (PDF)