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.

👉 The short answer
  • 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.

1 in 2
Users prefer internal search over menu navigation
Baymard Institute, 2026
56%
Of e-commerce sites don't properly meet users' search needs
Baymard Institute, 2026
27
Minimum visible characters for a comfortable search field
Nielsen Norman Group, 2014

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.

Placeholders to adaptBrand, product, SKU... e.g. linen dress, Atelier Lune, ref. AL-2041 A product, a part, a model number...
⚠️ Pitfall to avoid

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.

Share of sites whose search is rated mediocre or worse
Desktop
46%
Mobile
58%
Apps
64%
Source: Baymard Institute, Ecommerce Search UX Best Practices, 2026.

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.

Diagram of a search journey: typing, autocomplete, query understanding, results or zero results, then click on a product
Each feature comes into play at one step of the journey, from the first letter typed to the click on a product.

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.

📌 Real-world example

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.

MetricTargetWarning sign
Search usage rateOver 20% of sessionsUnder 10%: bar hard to spot or poor reputation
Zero-result rateUnder 5% of queriesOver 10%: poorly indexed catalog or overly literal engine
Exits after a searchUnder 30%Over 50%: irrelevant results
Clicks on suggestionsOver 40%Under 20%: weak or badly placed suggestions
Conversion of sessions with searchClearly higher than sessions without searchEqual to or lower than sessions without search
📌 Real-world example

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

Google Analytics 4Editor access to the property
  1. In Admin > Data collection and modification > Data streams, open your site's web stream.
  2. 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).
  3. GA4 then records a view_search_results event, with the typed term in the search_term parameter.
  4. To read the terms in reports, register search_term as a custom dimension, or use an exploration.
⚠️ Pitfall to avoid

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.

✅ Do
  • Index title, description, attributes and categories
  • Treat "café" and "cafe" as the same word
  • Sort by relevance first, then popularity
❌ Don't
  • 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).
💡 Tip

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.

Decision tree: native CMS search for a few dozen products, module or SaaS solution beyond a few hundred
Catalog size decides first, then your team's ability to maintain a module.

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.

💡 The deciding factor

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

  1. Baymard Institute, Ecommerce Search UX Best Practices, 2026 (share of users who prefer search, 56% of sites falling short, performance by device).
  2. Nielsen Norman Group, K. Sherwin, The Magnifying-Glass Icon in Search Design, 2014 (field of at least 27 visible characters).
  3. Contentsquare, Digital Experience Benchmark, 2025 (share of e-commerce traffic on mobile).
  4. 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