On this page
What this issue is
Many sites use Google Maps for store locators, contact pages, delivery-area checks and address fields. Each map load calls Google with an API key, a code that identifies your project and billing account. If the key is rejected, the map does not draw.
The rest of the page usually loads normally. The only sign is a grey box, a darkened map with a watermark, or an empty space where the map should be. That makes the problem easy to miss.
| Console error | Meaning | Usual fix |
|---|---|---|
| BillingNotEnabledMapError | No active billing account linked to the project | Link or reactivate billing in Google Cloud |
| OverQuotaMapError / OVER_QUERY_LIMIT | Daily or per-minute quota used up | Raise the quota or cut redundant loads |
| RefererNotAllowedMapError | Key restricted to other domains | Add your domain to HTTP referrer restrictions |
| ApiNotActivatedMapError | Maps JavaScript API not enabled | Enable the API in the Library |
| InvalidKeyMapError / MissingKeyMapError | Key wrong, deleted or absent | Paste a valid key into your site or plugin |
Why it costs you leads or sales
A broken map hides the information people use to decide: where you are, whether you deliver to them, how to reach a branch. A store locator that does not load can end the visit. An address field that depends on Maps may stop visitors completing a form or checkout.
A watermarked or grey map also looks unprofessional and can reduce trust. Billing errors often appear without warning, for example when a card expires.
- Visitor opens locator pagePage loads normally
- Map script calls GoogleKey rejected: billing, quota or referrer
- Visitor finds a branchNo map or pins to use
- Call, visit or orderVisitor leaves
The page loads, but the map call is refused, so later steps that need it are lost.
The page looks fine until the map area stays grey.
How to check if your site has it
Open the page with the map
Look for a grey box, a dark map with 'For development purposes only', or blank space.
Open the browser console
In Chrome, press F12 (or Cmd+Option+J on Mac) and choose the Console tab. Reload the page.
Read the error
Look for lines starting 'Google Maps JavaScript API error' followed by a name such as BillingNotEnabledMapError. Match it to the table above.
Check Google Cloud Console
Go to APIs & Services > Metrics and Quotas for the project, and Billing to see if the account is active.
Test other pages and devices
Maps may be on checkout, contact and landing pages. Check each one, and test on mobile.
How to fix it
First fix the cause in Google Cloud, then update the key on your site if needed.
Select the right project
Use the project picker at the top and find the project that owns your key. Check the key value matches the one on your site.
Restore billing
Open Billing, link an active billing account to the project and update any expired card or unpaid balance.
Enable the right APIs
Under APIs & Services > Library, enable each API your site uses, such as Maps JavaScript API, Places API or Geocoding API.
Review quotas
Under APIs & Services > Quotas, check limits per day and per minute. Raise them or set sensible caps, and cut repeated map loads on high-traffic pages.
Fix key restrictions
Under Credentials, open the key. Set Application restrictions to HTTP referrers and add your domains, such as https://example.com/* and https://www.example.com/*. Under API restrictions, allow only the APIs you use.
Find where the key is stored
It is often in a plugin or theme setting, such as a store locator, contact form or page builder map settings. Search the plugin's settings for 'API key'.
Paste the working key and save
Clear any caching plugin and CDN cache, then reload the page.
Check theme or app settings
Open Online Store > Themes > Customize and look at the map section, or open the store locator app's settings for the key field.
Replace the key
Paste the working key, save and reload the storefront.
Find the Google Maps element or embed
Select the Map element and check its settings, or look in Project Settings > Integrations. Custom embeds hold the key in the script URL.
Update and publish
Add the key, then publish the site.
Search your code for the key
Look for maps.googleapis.com in templates and scripts.
Replace the key value
Use the corrected key in the script URL, then deploy.
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
</script>Example: share of visitors who see a working map before and after fixing billing.
How to confirm it's fixed
- Reload the page in a private window; the map draws with no watermark
- The console shows no 'Google Maps JavaScript API error' lines
- Pins, search and address autocomplete work
- The map loads on mobile and on every page that uses it
- Google Cloud Metrics show successful requests, not errors
- A budget alert is set in Billing
How to prevent it happening again
- Keep a current payment method on the billing account and add a second billing contact
- Set budget alerts and quota alerts in Google Cloud
- Use one key per site, restricted to its domains and APIs
- Add new domains and staging URLs to referrer restrictions before launch
- Load maps only where needed, and lazy-load them below the fold
- Check map pages after any theme, plugin or domain change
How FunnelGuard handles this
FunnelGuard detects this issue only partly. When its robot visitor runs your journeys, it sees console errors on the pages it visits, so a Google Maps error written to the console can show up in a check. That is all it covers: a console error.
FunnelGuard does not check your Google Cloud billing status, your remaining quota, or your key restrictions, and it does not judge whether a map looks right. A map that fails without a console error, or on a page your journeys do not visit, can be missed.
The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans include a 3-day free trial.
Questions people ask
Why does my Google Map say 'For development purposes only'?
Google shows this watermark when the API key has no active billing account, or billing is not linked to the project. Link or reactivate billing in Google Cloud Console and the watermark goes away after a reload.
Why is my Google Map grey or blank?
A grey map usually means Google rejected the API key. Open the browser console and read the error name, such as BillingNotEnabledMapError, RefererNotAllowedMapError or ApiNotActivatedMapError, to see which setting to fix.
How do I fix BillingNotEnabledMapError?
Open Google Cloud Console, select the project that owns your key and link an active billing account under Billing. Update any expired card or unpaid balance, then reload your page.
How do I fix RefererNotAllowedMapError?
Your key is restricted to HTTP referrers that do not include your domain. Under APIs & Services > Credentials, open the key and add your domain patterns, such as https://example.com/* and https://www.example.com/*.
What happens when the Google Maps API quota is exceeded?
Google refuses further requests until the quota resets or you raise it, and the map or autocomplete stops working. Check Quotas in Google Cloud, raise limits if needed and reduce repeated map loads.
Can I see Google Maps key errors without checking manually?
Only in part. A scheduled check that visits the page can pick up a console error, but it will not read your Google Cloud billing or quota. Budget and quota alerts in Google Cloud cover that side.
Is the Google Maps API free?
Google requires a billing account to use the Maps Platform, and pricing and any free usage depend on its current terms. Check the Google Maps Platform pricing page for the products you use.
Related issues
- OPS-227Address autocomplete API failingFix guide
- OPS-222reCAPTCHA/hCaptcha service outageFix guide
- OPS-220jQuery/CDN library outageFix guide
- OPS-231Analytics/GTM endpoint blocked or downFix guide
- OPS-233Third-party status changes not correlated with incidentsFix guide
- OPS-226Tax/shipping rate API failing at checkoutFix guide