How to enable locations in the Events Manager plugin
Enable location-based features in the Events Manager plugin by connecting a Google Maps API key. This allows address search, map views, and location-based events to work correctly in your app.
Locations in the Events Manager plugin are powered by Google Maps. To add event locations, display events on a map, and enable address search, you must generate a Google Maps API key and add it to both the Control Panel and the Events Manager plugin settings.
Requirements
-
Access to a Google Cloud account
-
The Events Manager plugin installed in your app
How to enable locations in the Events Manager plugin
-
Generate a Google Maps API key in Google Cloud Console
-
Go to console.cloud.google.com
-
Open the left navigation and click APIs & Services, then Library
-
Search for Maps JavaScript API, then click Enable
-
Click Manage
-
Confirm these APIs are enabled:
-
Maps JavaScript API
-
Places API
-
Geocoding AP
-
-
Return to APIs & Services and click Credentials
-
Click Create credentials, then click API key
-
Give the key a recognizable name
-
Under Application restrictions, select None
-
Under API restrictions, select Restrict key
-
Click Select APIs, then select:
-
Maps JavaScript API
-
Places API
-
Geocoding API
-
-
Click OK, then click Create
-
Copy the API key
-
-
Log in, go to Settings in the left navigation
-
Click Integrations, then click APIs and services
-
Paste the API key into:
-
Google key
-
Google Maps key
-
-
Click Save
-
-
Click into the Builder in the left navigation
-
Search for your Events Manager plugin using the search bar
-
Click the Settings tab
-
Paste the same API key into the Google API key field
-
Click Save
-
-
Test the setup in the App Preview
-
In the Events Manager plugin, stay in the Content tab
-
Click Add Event
-
Enter a location address
-
Confirm the address auto-populates and displays correctly on the map
-
Pro tips
-
If addresses don’t resolve, re-check that Maps JavaScript API, Places API, and Geocoding API are all enabled
-
If your key is restricted and the map won’t load, temporarily set restrictions to None to confirm the setup, then re-restrict to the required APIs
-
Google may require billing to be enabled on your Google Cloud project depending on usage