Adding a Google Maps API Key
Because of recent changes made to the way Google Maps are served, installations of Events Manager activated in June 2016 or after need a Google Maps API key to be able to use Google Maps.
If you’re unable to load maps or are seeing Location Not Found errors when trying to use maps in Events Manager, check you’ve completed the steps below.
Step 1. Make sure you’re running version 22.214.171.124 or above of Events Manager.
Because API keys for Google Maps weren’t needed before the release of Events Manager 126.96.36.199, earlier versions of the plugin don’t include the option to add a Google Maps API key.
Step 2. Get your Google Maps API key
Google’s official instructions for creating API keys are here:
Setting up an API key can be confusing, especially if you’re not a web developer, so we’ve included a step-by-step guide below.
First go to the Google API Console here:
You’ll need to sign in with a Google account if you’re not already logged in.
Then click the Use Google APIs panel.
You’ll be prompted to choose a name for a new project and to accept the API agreement.
Then click Enable on the following screen. Then click the back button right next to it, or alternatively click the Overview menu item. Make sure you enable the three APIs mentioned above.
After the all the APIs are activated, click Go to Credentials (alternatively you can click the Credentials menu item as in the image above).
On the next screen enter a name for the API key.
You’ll also need to add the domain name of the site where you’re using Events Manager under Accept requests from these HTTP referrers (web sites). To make sure that map requests work from anywhere on your domain, we recommend adding more than one entry using the following patterns:
Note: To avoid problems with www and non-www versions of your domain, don’t include the www part of your website URL.
After clicking the Create API Key button, you’ll be shown your new API key.
Step 3. Add the API key to Events Manager
Go to Events > Settings > Formatting > Maps and paste your key into Google Maps API Browser Key.
Click Save Changes and create an event with a map to check that both admin and front-end functions are working correctly,
If you’re having problems getting Google Maps to work on your site, try testing with Accept requests from these HTTP referrers (web sites) left blank.
If maps are loading with that setting, it indicates there’s a problem with either the domain name or the pattern used with it.
If maps still don’t load, you may have a problem with the way Events Manager is configured.
Aside from testing, we recommend using a domain pattern in Accept requests from these HTTP referrers (web sites) to prevent unauthorized use of your API key.
Note: This credentials page in the Google API Console also shows the usage and quotas for your account, if you need to check this later.