Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Address autocomplete (Google Places) not working: how to fix it

CNV-181Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Address autocomplete suggests full addresses as a customer types in a checkout or lead form. Many sites use the Google Places API (loaded through the Google Maps JavaScript library) for this. When it is broken, the dropdown never appears, or the field shows a greyed-out box with the message "This page can't load Google Maps correctly".

Why it costs you leads or sales

Typing a full address on a phone is slow and error-prone. Without suggestions, some people give up, and others enter incomplete or wrong addresses that cause failed deliveries, rejected postcodes and extra support work. The impact is medium: checkout still functions, but friction goes up at one of the last steps.

Checkout completion with and without autocompleteExample numbers
Checkout completion with and without autocomplete (example)Autocomplete working: 62 %; Autocomplete broken: 55 %024486255Autocomplete workingAutocomplete broken%

Example: illustrative numbers only. Real results depend on your audience and device mix.

Where the journey slips
  1. CartCustomer proceeds to checkout
  2. Address fieldGoogle script fails, no suggestions
  3. Shipping ratesTypos or partial address cause errors
  4. PaymentSome customers abandon first

The address step is where the failed script hurts. Later steps suffer from bad or missing data.

How to check if your site has it

Test the address field yourself
  1. Open checkout in a private window

    Add a product to the cart and go to the address step. Use a private window so extensions and cached scripts do not hide the fault.

  2. Type a real street address

    Enter a few characters. A dropdown of suggestions should appear within a second.

  3. Open the browser console

    Press F12 and open the Console tab. Look for messages such as RefererNotAllowedMapError, ApiNotActivatedMapError, BillingNotEnabledMapError, InvalidKeyMapError or ExpiredKeyMapError.

  4. Check the Network tab

    Filter by maps.googleapis.com. A red or blocked request means the script did not load, often because of an ad blocker, a consent tool or a Content Security Policy.

Common console errors and what they mean
ErrorLikely causeFix
RefererNotAllowedMapErrorKey restricted to other domainsAdd your domain to HTTP referrers
ApiNotActivatedMapErrorPlaces API not enabledEnable Places API in Google Cloud
BillingNotEnabledMapErrorNo active billing accountLink a billing account to the project
InvalidKeyMapErrorTypo or wrong keyPaste the correct key
Blocked by CSPContent Security PolicyAllow maps.googleapis.com

How to fix it

Fix the Google side first
  1. Open Google Cloud Console

    Select the project that owns your key. Go to APIs & Services and check the key is the same one used on your site.

  2. Enable the right APIs

    Under Library, enable Maps JavaScript API and Places API (or Places API (New) if your plugin uses it).

  3. Check billing

    Under Billing, confirm the project is linked to an active billing account. Google requires one for Maps Platform use.

  4. Fix key restrictions

    Under Credentials, open the key. For website keys, add every domain you use, including www and non-www, in the format https://example.com/*. Under API restrictions, make sure Places and Maps JavaScript are allowed.

Then check your site settings
  1. Find the plugin setting

    WooCommerce address autocomplete plugins have an API key field in their settings page. Paste the current key and save.

  2. Look for double loading

    If your theme or another plugin also loads Google Maps with a different key, the wrong one can win. Disable the duplicate.

Basic Places Autocomplete setuphtml
<input id="address" type="text" autocomplete="street-address">
<script>
  function initAutocomplete() {
    new google.maps.places.Autocomplete(
      document.getElementById('address'),
      { fields: ['address_components', 'formatted_address'] }
    );
  }
</script>
<script async
  src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places&callback=initAutocomplete"></script>

How to confirm it's fixed

After your changes
  • Suggestions appear in a private window on desktop
  • Suggestions appear on a real phone
  • The console shows no Google Maps errors
  • Picking a suggestion fills street, city, postcode and country
  • Shipping rates load after choosing a suggestion
  • Test on both www and non-www versions of your domain

How to prevent it happening again

Most breakages come from changes outside your site: a billing card expiring, a key being rotated, or a restriction edited. Put a calendar reminder on the billing card expiry, document which project owns the key, and use a separate key for each site. Set a budget alert in Google Cloud so you hear about usage problems early. Re-test the address step after theme, plugin or domain changes.

Address step before and after

Broken

  • No dropdown appears
  • Customers type full addresses by hand
  • More typos and failed postcode checks

Fixed

  • Suggestions appear after a few characters
  • Fields fill in one tap
  • Cleaner addresses reach shipping and your CRM

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your checkout or lead journey on a schedule and watches for third-party resource failures, such as the Google Maps script failing to load or returning an error. If that happens, it re-checks from a second region, then sends one alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause.

This is a check on whether the resource loads, not a judgement of how good the suggestions are. Test traffic is marked with utm_source=funnelguard and fg_test=1. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans include a 3-day free trial.

Questions people ask

Why is my Google Places address autocomplete not showing suggestions?

The most common reasons are an invalid or expired API key, the Places API not being enabled, billing not active on the Google Cloud project, or a referrer restriction that does not include your domain. Open the browser console on the page and read the Google Maps error. It usually names the exact cause.

What does RefererNotAllowedMapError mean?

It means your API key is restricted to specific websites and the site making the request is not on the list. In Google Cloud, open the key under Credentials and add your domain, such as https://example.com/*, including the www version if you use it.

Do I need billing enabled for Google Places autocomplete?

Yes. Google Maps Platform requires an active billing account linked to the project. Without it, the script returns BillingNotEnabledMapError and the autocomplete stops working, even if the key is otherwise correct.

Why does address autocomplete work for me but not for customers?

Your browser may have a cached script, or customers may use ad blockers, strict privacy settings or a consent tool that blocks the Google script. Test in a private window, on mobile, and from a different network to see what they see.

Can a Content Security Policy block Google Places?

Yes. If your site sends a CSP header, it must allow Google's domains, including maps.googleapis.com, in the script and connection rules. A blocked request shows as a CSP error in the console.

Will checkout still work if autocomplete fails?

Usually yes, because customers can type the address by hand. But the added friction and typos can lower completion and cause delivery problems, so it is still worth fixing quickly.

How do I know when address autocomplete breaks again?

You can test it manually after changes, or use synthetic monitoring. FunnelGuard runs your checkout journey on a schedule, detects third-party resource failures such as the Maps script not loading, and sends an alert with a screenshot.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: third-party resource failure.

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.