How to generate and set a Google Maps Javascript API (browser) key

Last update: 11 April, 2017

Warning: You must have a Google account to generate a key for Google Maps Javascript API.

Since June 2016, Google Maps requires a special Google Maps browser key. Without this key, you cannot display Google Maps on your website.

Before you can set this browser key in your Yoast SEO: Local installation, you’ll need to generate it. This tutorial will show you how to do that.

  1. Generate a Google Maps browser key
  2. Set your Google Maps browser key

Get access to our kick-ass support team with Yoast SEO Premium

Generate a Google Maps browser key

Go to the Google API Console.
Click ‘Get A Key’.

If you want to use an existing project, please select it from the list.
Otherwise, select ‘Create a new project’ and enter a project name.
Click ‘Enable the API’ (existing projects) or ‘Create and Enable API’ for new projects
Copy the generated browser key from the popup, you’ll need this to set your browser key later.
To prevent quota theft, secure your API key following these best practices.
(Optional) Enable billing. See Usage Limits for more information.

Set your Google Maps browser key

Copy the browser key you generated from the Google Maps API Manager.
Log in on your WordPress Admin and navigate to SEO > Local > API Keys.
Navigate to the API key page in Yoast SEO: Local
Paste the browser key you copied earlier into the ‘Google Maps API browser key (required)’ field.
Set your browser key
Click Save Changes to store your browser key.
You should now be able to use Google Maps on your website.

If you have trouble displaying Google maps on your site, please verify that the Google Maps Javascript API is enabled in the Google Maps API Manager.

Was this article helpful? ·