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.
- Visitor opens locatorPage loads normally
- Map script requests tilesGoogle rejects the API key
- Pick a locationNo pins to click
- Get directions or visitVisitor leaves
The page loads, but the map call fails and the steps that depend on it are lost.
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.
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.
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.
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.
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.
| Console error | Likely cause | Where to fix |
|---|---|---|
| BillingNotEnabledMapError | No active billing account on the project | Billing in Google Cloud Console |
| RefererNotAllowedMapError | Key restricted to other domains | Credentials > key > Website restrictions |
| ApiNotActivatedMapError | Maps JavaScript API (or Places API) not enabled | APIs & Services > Library |
| InvalidKeyMapError / MissingKeyMapError | Key typed wrong, deleted or missing | Credentials, then your site's map settings |
| OverQuotaMapError | Daily or per-minute quota used up | APIs & Services > Quotas |
How to fix it
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.
Enable the right APIs
Under APIs & Services > Library, enable each API your map uses, such as Maps JavaScript API, Places API or Geocoding API.
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.
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.
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.
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'.
Replace and save
Paste the working key, save, then clear your caching plugin and any CDN cache.
Check the theme or app
Open Online Store > Themes > Customize and look at the section's map settings, or open the store locator app's settings. Many themes have a 'Google Maps API key' field.
Paste the key
Save and test on the live store, not only the preview.
Update the Google Maps element
Webflow's built-in Map element needs a key in Site settings > Integrations (Google Maps). Paste the key there and publish.
Check the map app
The standard Wix Maps element is managed by Wix. If you use a third-party map app or custom embed code, update the key in that app's settings.
Check the Map block
Squarespace's Map block may ask for a key under Settings > Advanced > External API Keys (Google Maps). Replace it there and save.
Update the script URL
Search your templates for 'maps.googleapis.com' and replace the key parameter. Keep the key out of public repositories where you can, and restrict it by domain.
<script async
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
</script>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
- 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
- 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.