“This page can't load Google Maps correctly”: find the real cause
The dialog that says “This page can't load Google Maps correctly.” and asks “Do you own this website?” is Google's way of telling visitors the map failed. It is deliberately vague. The specific reason is logged in the browser console, and that is what decides the fix.
How to tell this is your problem
- A white box appears over the map area with the text This page can't load Google Maps correctly.
- Below it is a Do you own this website? link and an OK button.
- After you click OK, the map behind it is darkened and covered with “for development purposes only” text. That watermark has its own guide, and the cause is the same.
- It happens for every visitor, on every browser, every time the page loads.
The dialog gives no reason. Open the browser console and reload, and you will see the line that matters:
The code after the colon varies. That code, not the dialog, tells you what to change.
How it differs from “Oops! Something went wrong.”
Google Maps has two failure overlays, and people often treat them as different problems. They aren't, really.
| “This page can't load Google Maps correctly.” | “Oops! Something went wrong.” | |
|---|---|---|
| What it looks like | A dialog with an OK button, then a darkened map with a watermark | A grey map area with the message in the middle and no usable map |
| Full text | “Do you own this website?” link below the message | “This page didn't load Google Maps correctly. See the JavaScript console for technical details.” |
| What it means | Google rejected the page's request | Google rejected the page's request |
| Where the cause is | The browser console | The browser console |
Which overlay appears depends on which check failed and how the page loads the API, and it isn't a reliable guide to the cause. Both mean the Maps JavaScript API refused to serve a normal map. Both are fixed by reading the console error and acting on it.
Why it happens
When the Maps JavaScript API loads, Google validates the request against the API key and the Cloud project behind it. If anything fails, Google logs an error code and replaces the map. Google's documentation groups the causes under key problems and billing problems. In practice the most common ones are:
- No billing on the project. The billing account was never linked, or it was closed or suspended after a payment failed.
- The domain isn't allowed. The key has website restrictions that don't match the page's URL. This is common after adding www, moving to a new domain or launching from staging.
- The key is missing or wrong. A plugin update cleared the key field, or the key was deleted or mistyped.
- The API isn't enabled. The Maps JavaScript API isn't enabled on the key's project, or the key's own API restrictions leave it out.
The fix, step by step
- 01Open the page with the broken map. Close the dialog.
- 02Open developer tools: F12 on Windows and Linux, or Cmd + Option + J in Chrome on a Mac. Select the Console tab.
- 03Reload the page and find the red line starting Google Maps JavaScript API error:. Note the code.
- 04Look the code up in the table below and follow that guide.
- 05Clear your page and CDN cache, then reload in a private window to confirm.
New to the console? Our guide to reading Google Maps errors in the browser console explains what to look for and which lines to ignore.
Anything else, including client ID and App Check errors, is listed in the error library.
When you don't own the website
If you are a visitor, there is nothing you can change. Google's documentation says the same: for most of these errors the visitor has no steps to take, though you may want to tell the site owner. Sending them the console line, or a link to a scan of the page, saves them a lot of guessing.
When you own the site but didn't build it
If a developer or agency set up the map, the key probably lives in their Google Cloud account. You may not have access to its billing or restrictions. Send them the error code. If the error is BillingNotEnabledMapError, the fix is in their billing account, not your website.
If you use WordPress or a site builder, check every place a key can be entered: theme options, a maps plugin, and page builder widgets. Two components can each load Google Maps with different keys. See where page builders store the key and fixing duplicate loaders.
For developers: catch it in code
Google calls a global gm_authFailure function, if you define one, when authentication fails. You can use it to log the failure or swap the map for a static fallback, so the problem reaches you before a customer reports it:
window.gm_authFailure = () => {
// Called by the Maps JavaScript API when the key or project is rejected.
console.error("Google Maps failed to authenticate.");
document.getElementById("map").textContent =
"The map is unavailable right now. Our address is 1 Example Street.";
};
Define it before the Maps loader runs. It tells you that authentication failed, not why, so you still need the console code to fix it.
Confirm it is fixed
Reload in a private window with the console open. The dialog should not appear, the map should load in full colour, and there should be no Google Maps JavaScript API error lines. Restriction and billing changes can take a few minutes to take effect.
Then run a scan of the page. It loads the page in a fresh browser session, records the Maps console errors and takes a screenshot, so you can see what a first-time visitor sees without your cache or login.
Common questions
What does “Do you own this website?” mean on Google Maps?
It is a link in Google's error dialog aimed at site owners. It appears when the Maps JavaScript API rejects the page's request. The browser console shows the specific error code that explains why.
Is “This page can't load Google Maps correctly” a billing problem?
Sometimes. BillingNotEnabledMapError is one common cause, but a domain restriction, a missing key or a disabled API produce the same dialog. Check the console before changing billing.
Why does the map work on my computer but not for customers?
Usually a cache serving you a different version, or a key restriction that matches one domain variant and not another, such as with and without www. See our guide to maps that work for you but not for customers.
How long after fixing does the dialog go away?
Changes to key restrictions and billing usually apply within a few minutes. If it persists, clear page and CDN caches and check the console again, since the error code may have changed.
A scan tells you in about twelve seconds, from a clean session.