Set it up
1
Create a project and enable the API
In the Google Cloud console, select or create a project. Open APIs & Services → Library, find Maps JavaScript API and enable it.
2
Create an API key
Open APIs & Services → Credentials, select Create credentials → API key, and copy the key.
3
Restrict the key
Edit the key and restrict it to Maps JavaScript API and to your site address as an HTTP referrer. MagicPost writes the key into the page source of the Accounts Dashboard, so a restriction keeps it from being used elsewhere.
4
Add the key in MagicPost
Go to Admin → Backend Settings → Global Settings and find the Google Maps block. Switch on Enable Google Maps, paste the key into Google Maps API Key, and select Save. The key is required while the switch is on.
5
Check the dashboard
Open Admin → Accounts → Dashboard and scroll to Registered User Countries.
The map is drawn with Google Charts, which takes the key as its
mapsApiKey setting. Google states that this key may be required for geocoding or non-standard region codes. See Google’s GeoChart documentation.What the map counts
The map is built from the country saved on each user account. Each country is shaded by how many accounts list it.Fix problems
See Global settings for the other fields on the page, and Users for the accounts dashboard.

