How to add Google Maps to your Shopify store?
To display your business on maps, you first need to register a Google Maps API key and enable it in the map settings of your store.
To use the API, you need to set up a billing account in Google Maps.
How to register an API key?
- Visit the Google Maps Platform page and click Get Started.
- Select the products "Maps," "Routes," and "Places" to get the APIs required to work with the "Map" section of free themes.
- Create a billing account on the Google Maps platform. A billing account is a mandatory requirement for the new Google Maps platform.
To use Google Maps, you need to enable the API:
- Go to the Maps API library page in the Cloud Console
- Click on the API you want to enable.
Note. If the button says ENABLE, click it to enable the API. If the button says MANAGE, the API is already enabled, and you don’t need to do anything further.
After enabling the Google Maps platform, copy the new Google Maps API key.
Add the Google Maps API key to your theme.