Google Maps are not working

You may see the following error on your page.

Oops! Something went wrong.
This page didn’t load Google Maps correctly. See the JavaScript console for technical details.

This error may occur when the required service is disabled, returns an error, or the API key is restricted. In this article, we’ll explain how you can check if you entered an API key; how to regenerate an API key, how to enable an API key, and the pricing for APIs.

How to check your API key

  1. In your WordPress Dashboard, go to Yoast SEO


  2. Go to Local SEO


  3. Go to API key

    If you have not entered keys, follow the steps described in this article to generate and set a Google Maps API key. If you have entered keys, please remove API restrictions.

How to regenerate an API key

You may need to regenerate a key for a variety of reasons, especially if you notice another site is using your key. Please note that Google refers to this as rotate instead of regenerate.

  1. Go to Google API Console
    If prompted, log in.
  2. Select your site project
  3. Click on your key
  4. Click Rotate key

  5. Enter the new name, check the restrictions and click Create

  6. Copy the key and click Continue

  7. In Yoast Local SEO, enter your new API key
  8. Return to the Google API console
  9. Under Previous key, click Delete the previous key

How to enable an API key

In order to enable your API key, you also need to enable Google Maps JavaScript API (browser key) and Geocoding API (server key) in the Google Maps API Manager.

  1. Go to the Google Maps API Manager
  2. Go to Enable APIs and services

  3. Search for and enable Maps JavaScript API

  4. Search for and enable Geocoding API

Pricing for APIs

Pricing for the Google Maps, Routes, and Places and the APIs connected with them (Maps JavaScript API, Directions API, Timezone API, Geocoding API ) is pay as you go, and you only pay for what you use. You get a recurring $200 credit on your billing account each month to offset your usage costs, and you can also set usage limits to protect against unexpected cost increases.

For a table of Google’s pricing, see Pricing for Maps, Routes, and Places. If you need to enable billing, please go to APIs and billing.

I still have a problem with Google Maps

If you continue to have problems displaying the maps, please check your JavaScript console for the exact error message. Google lists errors and their explanations here.

Did this article answer your question?

Thanks for your feedback!

Related articles

Get free SEO tips!