You've spent weeks on your product pages, your categories and your campaigns. The search bar, meanwhile, still runs on the settings that shipped with the theme: nobody has tested it, and nobody looks at what people type into it.
That's exactly where the visitors who already know what they want end up. They hand you the product name, and all that's left is to show it to them. We'll go through everything, from where the field sits to the numbers worth checking every month.
- Put the bar in the header, visible without scrolling, with a field of at least 27 characters (300 to 400 px on desktop).
- On mobile, show a real field, not a magnifying-glass icon on its own.
- Visitors expect five features: autocomplete, typo tolerance, intent understanding, synonyms and zero-result handling.
- Track search usage, the zero-result rate (target: under 5%) and the conversion of sessions with a search every month.
- Beyond a few hundred products, native CMS search isn't enough: a module or a SaaS solution takes over.
Why the search bar matters more than it looks
A visitor browsing the menus is exploring. A visitor who types "navy linen dress size 10" has already decided: purchase intent is high, and they convert far better than average when they find what they want.
So nearly half of your visitors go through this field, and more than one site in two lets them down there. The problem doesn't show up in the usual dashboards: the visitor doesn't complain, they just leave.
Where to put the bar, and how wide to make it
Usability research settled the placement question long ago: the bar must be visible on load, without scrolling, on every page. In practice, that means in the header, centered or slightly to the right depending on the header's width.
Size matters as much as position. According to the Nielsen Norman Group, a field showing fewer than 27 characters forces some visitors to type without seeing what they've entered. Aim for 300 to 400 pixels on desktop. On mobile, the field should take the full width of the screen once activated.
One last detail that often gets overlooked: the example text inside the field (the placeholder). "Search..." tells the visitor nothing. A placeholder that names the kinds of queries you accept cuts down on empty or off-topic searches.
On mobile, a magnifying-glass icon on its own (with no visible field) saves space but lowers search usage: visitors first have to spot it, then tap it, before they can type. And around 70% of e-commerce traffic comes from mobile (Contentsquare, Digital Experience Benchmark 2025). That extra tap costs you on most of your visits.
Mobile does worse than desktop while carrying most of the traffic, so that's where to test your search bar first. Our article on mobile e-commerce search covers the settings specific to small screens.
The 5 features visitors expect
Beyond placement, it's the engine behind the field that decides whether search sells or frustrates. Five features make the difference between a basic engine and one that actually answers.
1. Real-time autocomplete
Suggestions appear from the first few letters, before the query is finished. They speed up typing, steer visitors toward terms that exist in your catalog and cut down on typos. On mobile, where people type slower and less accurately, it's the feature that helps most. To go further: our guide to autocomplete.
2. Typo tolerance
An engine that returns zero results for "sneekers" instead of "sneakers" punishes the visitor for a tiny mistake. Typo tolerance (fuzzy matching) fixes common misspellings and swapped letters. It's a baseline requirement, not an advanced option.
3. Understanding intent
A keyword engine only returns products whose page contains the exact terms typed. A semantic engine understands the need: "lightweight shoes for summer" can bring up sandals or espadrilles, even though those words aren't in the query.
4. Synonyms
Every catalog has its own vocabulary, and your customers use another. "Sneakers", "trainers" and "tennis shoes" mean the same product depending on the visitor's age or region, just like "fridge" and "refrigerator". Synonyms bridge the gap without duplicating your descriptions. Our article on e-commerce synonyms explains how to build the list.
A shoe store lists "sneakers" in its product pages. A visitor types "mens trainres". Without typo tolerance or synonyms: zero results. With both: the typo is corrected to "trainers", "trainers" is matched to "sneakers", and the visitor sees the catalog's 40 men's models.
5. Zero-result handling
When the engine finds nothing, an empty page is the worst possible answer. Suggest similar queries, popular categories or a way to get in touch, so the visitor never hits a dead end. The topic has its own article: zero-result pages and how to fix them.
The metrics that tell you if search is working
A search bar can be measured. Here are the five indicators to track first, with common operational benchmarks to compare against your own figures.
| Metric | Target | Warning sign |
|---|---|---|
| Search usage rate | Over 20% of sessions | Under 10%: bar hard to spot or poor reputation |
| Zero-result rate | Under 5% of queries | Over 10%: poorly indexed catalog or overly literal engine |
| Exits after a search | Under 30% | Over 50%: irrelevant results |
| Clicks on suggestions | Over 40% | Under 20%: weak or badly placed suggestions |
| Conversion of sessions with search | Clearly higher than sessions without search | Equal to or lower than sessions without search |
A store gets 10,000 sessions a month, 1,500 of them with a search: 15% usage, in the middle range. Out of 2,400 queries, 290 return nothing, so 290 ÷ 2,400 = 12% zero results. That's the number to tackle first: above 10%, the engine or the catalog has a real problem.
Getting these numbers from GA4
- In Admin > Data collection and modification > Data streams, open your site's web stream.
- Under Enhanced measurement, check that Site search is turned on. Add your engine's URL parameter if it isn't in the default list (q, s, search, query, keyword).
- GA4 then records a
view_search_resultsevent, with the typed term in thesearch_termparameter. - To read the terms in reports, register
search_termas a custom dimension, or use an exploration.
Enhanced measurement detects searches through the parameter in the URL. If your results appear in an overlay without the URL changing, GA4 sees nothing: check in the realtime report that a test search comes through. SaaS engines usually provide their own query statistics, which fill the gap.
The full walkthrough, with the reports to build, is in our article on analyzing site search queries in GA4.
4 mistakes we see on most stores
After auditing plenty of e-commerce sites, we keep running into the same problems. None of them shows up in a standard dashboard, and all of them can be fixed.
Mistake 1: searching the product title only
Many engines only index the product title and ignore descriptions, attributes and categories. A visitor searching for "machine washable" or "iPhone 15 compatible" finds nothing if that information isn't in the title. Indexing should cover every useful field in the catalog.
Mistake 2: tripping over accents and spelling variants
"Cafe" and "café" shouldn't give different results, and neither should "T-shirt" and "tshirt". Normalization (accents, hyphens, capitals) is a basic step that's often missing from the default settings of the engines bundled with CMSs.
Mistake 3: sorting results by popularity only
Sorting by number of sales automatically favors best-sellers and hides new arrivals or niche products, often the very ones a precise query was after. Relevance to the query should come first, with popularity as a secondary factor.
- Index title, description, attributes and categories
- Treat "café" and "cafe" as the same word
- Sort by relevance first, then popularity
- An engine that only reads the title
- Results that change with a hyphen or an accent
- Best-sellers on top whatever the query
Mistake 4: never reading the zero-result queries
Your list of zero-result queries is a free diagnosis of your catalog. Each line calls for one of three actions:
- a product to add, if the request keeps coming back;
- a synonym to set up, if the product exists under another name;
- a redirect, if the term is too ambiguous ("shipping", "returns", a brand you don't sell).
Block 30 minutes a month in your calendar to export this list and work through it from top to bottom. It's one of the most profitable optimizations an online store can make, and the only one that costs nothing but time.
Native, module or SaaS: how to integrate it
Integration depends on the kind of solution you choose. Three approaches coexist, with very different levels of effort.
Native CMS search
PrestaShop, WooCommerce and Shopify come with built-in search. It's free and available right away, but without semantic search, without advanced autocomplete and with limited typo tolerance. It's enough for a few dozen items and shows its limits from a few hundred.
A third-party module or plugin
Each CMS marketplace offers extensions that improve native search, with very uneven quality. The downside: a CMS update can create an incompatibility, and support depends on a third-party developer.
A dedicated SaaS solution
This is the model used by Doofinder, Algolia and Vectail. Integration means adding a JavaScript tag to your pages, a few lines that don't depend on your CMS. The solution indexes your catalog, resyncs it automatically and provides the search interface. It's the fastest approach to set up and the easiest to maintain.
A technically superior solution that needs three weeks of development often ends up abandoned or badly configured. Before comparing features, ask how long it takes to see the first results on your own catalog. Our integration guide shows what a script-based setup looks like.
3 criteria for choosing your engine
CMS-integrated engines cover the needs of small catalogs. Beyond a few hundred products, their limits quickly get in the way: no semantic search, basic typo tolerance, missing or weak autocomplete. Dedicated solutions are separated by three criteria.
- The quality of the semantic engine: does it understand the intent behind the query, or just the words typed? Test it with your ten most frequent zero-result queries.
- Configuration without a developer: synonyms, redirects and boosting rules should be set from an interface, by whoever manages the catalog.
- Ease of integration: a solution that requires a big project will get worked around. The best ones install with a few lines of code, whatever the CMS.
Vectail ticks the script-integration box: it imports your catalog from Google Merchant Center and runs search on Google Vertex AI Search for Retail. The honest limit: you need a Merchant Center account with your products in it. If that's not the case yet, our Google Merchant Center guide walks you through it step by step. To compare every approach on the market, see our e-commerce search engine selection guide.
Your checklist
- Bar visible in the header, without scrolling, on every page
- Field of at least 27 characters (300 to 400 px on desktop), full width on mobile
- A real field on mobile, not just a magnifying glass
- Placeholder that gives example queries
- Autocomplete, typo tolerance and synonyms tested with real queries
- Zero-result page with suggestions and categories
- Site search turned on in GA4, test search checked
- Zero-result queries handled every month
Frequently asked questions
Where should the search bar go on an e-commerce site?
In the header, visible without scrolling on every page, centered or slightly to the right. On mobile, show a real input field rather than a magnifying-glass icon on its own.
How wide should the search field be?
At least 27 visible characters, according to the Nielsen Norman Group, which is roughly 300 to 400 pixels on desktop. On mobile, the field takes the full width of the screen once activated.
How do you measure how well your search bar performs?
Turn on site search in GA4 enhanced measurement, then track five indicators: share of sessions with a search, zero-result rate, exits after a search, clicks on suggestions and conversion of sessions with a search.
Sources
- Baymard Institute, Ecommerce Search UX Best Practices, 2026 (share of users who prefer search, 56% of sites falling short, performance by device).
- Nielsen Norman Group, K. Sherwin, The Magnifying-Glass Icon in Search Design, 2014 (field of at least 27 visible characters).
- Contentsquare, Digital Experience Benchmark, 2025 (share of e-commerce traffic on mobile).
- The thresholds in the metrics table are common operational benchmarks, to compare with your own measurements.
Try real semantic search on your catalog
Vectail imports your catalog from Google Merchant Center and adds search powered by Google Vertex AI to your site: results shown as you type, typo tolerance, synonyms, natural language understanding. One line of code, no plugin.
Start for free - 14-day free trial, no credit card