Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Search autocomplete not working: how to find and fix it

CNV-329Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Autocomplete (also called predictive search or search suggestions) is the dropdown that appears under a search box while someone types. It usually lists matching products, categories or popular queries. Behind it, your page sends a small request to a search service as the visitor types and draws the reply as a list.

It is broken when the dropdown never opens, opens empty, shows results that do not match, lags badly, hides behind other page elements or cannot be selected with a click, tap or keyboard. Plain search often still works, which is why this goes unnoticed.

Why it costs you leads or sales

Suggestions help visitors reach a product or page in one or two taps, especially on mobile. Without them, people must type the full term, spell it right and press enter. Some will give up or leave, and typos that suggestions would have fixed now lead to a no-results page.

The impact is usually low compared with a broken checkout, because the main search still works. It matters most on large catalogues and on sites where search users buy more often than browsers.

Where a broken autocomplete loses visitors
  1. Click search boxVisitor starts typing
  2. Suggestions requestScript errors or request fails
  3. Pick a suggestionNo dropdown to choose from
  4. Product pageSome visitors never arrive

The visitor can still submit a full search, but the shortcut step is gone.

Search users reaching a product pageExample numbers
Search users reaching a product page (example)With autocomplete: 60 %; Autocomplete broken: 48 %023466048With autocompleteAutocomplete broken%

Example: illustrative numbers only, showing how losing suggestions could reduce the share of searchers who reach a product page.

How to check if your site has it

Test autocomplete in your browser
  1. Test on desktop and mobile

    Click into the search box and type three or more letters of a real product name. Repeat on a phone, since mobile themes often use a different search component.

  2. Open the Console

    Press F12 (or Cmd+Option+I on Mac), choose Console and type again. Red errors that appear as you type point to a script problem.

  3. Open the Network tab

    Filter by Fetch/XHR and type in the box. You should see a request per keystroke or pause. Note its status: 200 is fine, 403, 404, 429 or 500 is not.

  4. Check the response

    Click the request and open Preview. An empty list for a term you know exists suggests an index problem, not a display problem.

  5. Try keyboard and click

    Use the arrow keys and Enter, then click a suggestion. A dropdown that shows but ignores clicks is often covered by another element.

What you see and the likely cause
SymptomLikely cause
No dropdown, red error in ConsoleJavaScript error from theme, app or another script
Request returns 403/404/500Endpoint blocked, renamed or failing
Request is 200 but list is emptyStale or incomplete search index
Dropdown flashes then disappearsScript conflict or blur handler closing it
Dropdown visible but not clickableAnother element overlaps it (z-index)
Works on desktop, not on mobileDifferent mobile search component

How to fix it

Start with the cause you found above. Make changes on a staging copy or duplicate theme when you can, and note what you change.

Fix by platform
  1. Check predictive search is on

    Many themes have a predictive search setting under Online Store > Themes > Customize > Theme settings > Search (the name varies by theme). Make sure it is enabled.

  2. Disable search apps one by one

    If you use a search app, turn off its app embed under Customize > App embeds to see whether the theme's own suggestions return.

  3. Check for theme errors

    Compare against a fresh copy of your theme. If the copy works, a custom edit or leftover app code in theme files is the cause.

Debounced suggestions request with error handlingjavascript
const input = document.querySelector('#search');
const list = document.querySelector('#suggestions');
let timer;

input.addEventListener('input', () => {
  clearTimeout(timer);
  const q = input.value.trim();
  if (q.length < 2) { list.hidden = true; return; }
  timer = setTimeout(async () => {
    try {
      const res = await fetch('/search/suggest?q=' + encodeURIComponent(q));
      if (!res.ok) throw new Error(res.status);
      const items = await res.json();
      list.innerHTML = items.map(i => '<li><a href="' + i.url + '">' + i.title + '</a></li>').join('');
      list.hidden = items.length === 0;
    } catch (e) {
      list.hidden = true; // plain search still works on Enter
      console.error('Suggestions failed', e);
    }
  }, 200);
});

How to confirm it's fixed

Confirmation checklist
  • Suggestions appear within about a second of typing three letters
  • The Console shows no red errors while typing
  • The suggestions request returns 200 with a non-empty list
  • Clicking and keyboard selection both open the right page
  • It works on desktop, iPhone and Android browsers
  • Pressing Enter without choosing a suggestion still shows results

How to prevent it happening again

Habits that keep search healthy
  • Test the search box after every theme, plugin or app update
  • Re-test after changes to firewall, caching or CDN rules
  • Rebuild the search index after bulk product imports
  • Keep a short list of five known search terms to test each time
  • Review your search app's error log or dashboard monthly

How FunnelGuard handles this

FunnelGuard does not check search autocomplete today. It is a possible future check, not a current feature.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking or chat buttons, and check each step, the tracking hits sent to ad and analytics platforms and whether test leads reach your inbox and CRM. If a search-related change also breaks one of those journeys, that failure can show up there, but the autocomplete dropdown itself is not tested.

To watch for autocomplete problems now, put the five-term test above on a monthly calendar reminder, check your site search analytics for rising no-result queries, and review browser Console errors after each release. A free read-only website audit from FunnelGuard is also available for a wider look at your site.

Questions people ask

Why is my search autocomplete not showing suggestions?

Most often a JavaScript error, a blocked or failing suggestions request or an out-of-date search index. Open developer tools, type in the box and look at the Console for errors and the Network tab for the request status. That tells you which of the three it is.

Why does my site search work but the dropdown doesn't?

The full search and the dropdown use different code paths. The results page loads normally, while the dropdown depends on JavaScript and a separate request as you type. A script conflict or blocked request can break one and leave the other working.

How do I fix Shopify predictive search not working?

Check that predictive search is enabled in your theme settings, then turn off search app embeds one at a time to find a conflict. If a fresh copy of the theme works, a custom edit or leftover app code in your live theme is the cause.

Why does search autocomplete work on desktop but not mobile?

Many themes load a separate search component for mobile. Test on a real phone, check the Console using remote debugging or a device emulator and look for layering issues, since the dropdown may sit behind the sticky header or keyboard.

Can a plugin or firewall break search suggestions?

Yes. Caching, security plugins and firewall rules can block the request that fetches suggestions, often returning a 403 or serving a cached empty reply. Allow the search endpoint and exclude it from caching.

Does broken autocomplete hurt SEO?

Not directly. Autocomplete is a user-experience feature, so the main cost is visitors who fail to find products quickly. It matters for conversions rather than rankings.

Does FunnelGuard monitor search autocomplete?

No. FunnelGuard does not check search autocomplete yet, though it is a possible future check. It does monitor lead forms, checkouts, tracking hits and test lead delivery on a schedule.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.