Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Google Map embed not loading: fix API key quota and billing

CNV-331High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Many store locators, contact pages and booking pages load a map from Google Maps using an API key. An API key is a code that tells Google which project to bill and which site is allowed to use the map. If Google rejects the key, the map does not draw. You see a gray box, a darkened map with the text 'For development purposes only', or an error message in place of the map.

Why it costs you leads or sales

On a store locator, the map is the product. If it is blank, visitors cannot find a branch, get directions or choose a pickup point. On a contact page, a missing map removes the address cue that makes people trust you and visit. Often the location list below the map also depends on the same script, so it can break too.

Where a broken map stops the visit
  1. Visitor opens locatorPage loads normally
  2. Map script requests tilesGoogle rejects the API key
  3. Pick a locationNo pins to click
  4. Get directions or visitVisitor leaves

The page loads, but the map call fails and the steps that depend on it are lost.

Location page actions before and after the map brokeExample numbers
Location page actions before and after the map broke (example)Map working: 120 direction clicks per week; Map broken: 15 direction clicks per week0469212015Map workingMap brokendirection clicks per week

Example: illustrative numbers showing how direction clicks can drop when the map stops loading.

How to check if your site has it

Do not rely on your own browser alone. Open the page in a private window, on mobile, and from a different network if you can. Then read the error.

Find the error behind the blank map
  1. Look at the map itself

    A dark map with 'For development purposes only' and a watermark usually means billing is not enabled or the account is in a bad state. A gray box usually means the script was refused.

  2. Open the browser console

    Press F12 (or Cmd+Option+I on Mac), choose the Console tab and reload. Google prints named errors such as BillingNotEnabledMapError, RefererNotAllowedMapError, ApiNotActivatedMapError, InvalidKeyMapError or OverQuotaMapError.

  3. Check the Network tab

    Filter for 'maps.googleapis.com'. A 403 or an error response on the script or tile requests confirms Google is refusing the key.

  4. Check the Google Cloud Console

    Open console.cloud.google.com, pick the project that owns the key, then look at Billing, APIs & Services > Enabled APIs, and APIs & Services > Credentials.

Common Google Maps errors and what they mean
Console errorLikely causeWhere to fix
BillingNotEnabledMapErrorNo active billing account on the projectBilling in Google Cloud Console
RefererNotAllowedMapErrorKey restricted to other domainsCredentials > key > Website restrictions
ApiNotActivatedMapErrorMaps JavaScript API (or Places API) not enabledAPIs & Services > Library
InvalidKeyMapError / MissingKeyMapErrorKey typed wrong, deleted or missingCredentials, then your site's map settings
OverQuotaMapErrorDaily or per-minute quota used upAPIs & Services > Quotas

How to fix it

Fix the key, billing or quota
  1. Make sure billing is active

    In Google Cloud Console open Billing and confirm the project is linked to an open billing account with a valid payment method. Expired cards are a common cause.

  2. Enable the right APIs

    Under APIs & Services > Library, enable each API your map uses, such as Maps JavaScript API, Places API or Geocoding API.

  3. Check the quota

    Under APIs & Services > Quotas, look for APIs near or at their limit. Raise the limit or reduce calls, for example by caching geocoding results instead of repeating them on every page view.

  4. Fix the key restrictions

    Under Credentials, open the key. For Application restrictions choose 'Websites' and add every domain that shows the map, including www and non-www, with a wildcard path such as https://example.com/*. Under API restrictions allow only the APIs you use.

  5. Put the working key on the site

    Paste the key into your map plugin, theme or code (see the tabs below), save, and clear any cache.

Where to update the key on your platform
  1. Find the key field

    It depends on your plugin or theme. Look in the map or store locator plugin settings, or in the theme options, for a field named 'Google Maps API key'.

  2. Replace and save

    Paste the working key, save, then clear your caching plugin and any CDN cache.

Loading the Maps JavaScript API with a keyhtml
<script async
  src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
</script>
Store locator page

Broken

  • Gray or dark map with a watermark
  • Console shows a Google Maps error
  • No pins, no directions

Fixed

  • Map and pins load on every domain version
  • No Maps errors in the console
  • Visitors can search and get directions

How to confirm it's fixed

Fix verification
  • The map draws with no watermark or 'for development purposes only' text
  • The browser console shows no Google Maps errors after a hard reload
  • It works on both www and non-www, and on mobile
  • Pins, search and the directions link work
  • Google Cloud Console shows billing active and quotas below their limits
  • Cached copies of the page have been cleared

How to prevent it happening again

Prevention
  • Keep a current payment method on the billing account and use more than one billing admin
  • Create budget alerts and quota alerts in Google Cloud
  • Use one restricted key per site, and list every domain and subdomain you use
  • Add new domains to the key restrictions before launching a new site or staging-to-live move
  • Cache geocoding results so you do not pay for the same lookup repeatedly
  • Open your map pages by hand after any domain, theme or plugin change

How FunnelGuard handles this

FunnelGuard detects this issue only partly. The map is a third-party resource, and FunnelGuard's dedicated check for it (F15) is not built. What FunnelGuard does is run your real customer journeys on a schedule and check each step, so if a broken map stops a step from completing, for example a button the journey needs is missing, the step fails, you get one alert after a second-region re-check, and it includes a screenshot and a likely cause.

Frequently asked questions

Questions people ask

Why is my Google Map not loading on my website?

Usually Google is rejecting your API key. Common causes are billing not enabled, the daily quota used up, the key restricted to a different domain, or a required API not turned on. Open the browser console and look for an error such as BillingNotEnabledMapError or RefererNotAllowedMapError.

Why does my map say 'For development purposes only'?

This watermark means Google treats the map as unbilled or improperly set up. Link an active billing account to the project in Google Cloud Console, confirm the Maps JavaScript API is enabled and check that the card is valid.

How do I fix RefererNotAllowedMapError?

Your API key's website restrictions don't include the domain showing the map. In Google Cloud Console go to APIs & Services > Credentials, open the key and add the exact domain, including www and non-www versions, using a pattern such as https://example.com/*.

How do I check if I have exceeded my Google Maps API quota?

In Google Cloud Console open APIs & Services, choose the API, and look at the Quotas and Metrics tabs. If usage is at the limit, you will see OverQuotaMapError in the browser console. Raise the quota or cut repeated calls.

Can an expired credit card break my Google Map?

Yes. If Google cannot charge the billing account, the billing can be suspended and the Maps APIs stop working for that project. Update the payment method in Billing and the map should return once the account is active.

Will a broken map hurt my conversions?

On store locators, contact and booking pages it can. Visitors cannot find locations or directions, so they leave. The impact is higher when the map is the main way to reach a branch.

Does FunnelGuard detect a Google Map that doesn't load?

Only partly. FunnelGuard checks the journey steps and alerts you if the broken map causes a step to fail, but it has no dedicated check of your Google API key, billing or quota. Check those in Google Cloud and test the map pages by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: third-party resource; F15 not built.

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.