Skip to main content

Register a Google Maps API key

Updated over 5 months ago

In order to use any Google Maps service, you must enable the relevant Google API Libraries, and obtain a Google Maps API key which you'll add to our App settings page.

1. Sign into your Google Cloud account (or create one)

If you already have a Google Cloud Platform account:

  1. Visit the Google Cloud Platform, sign into your Google Account if asked.

  2. Select the desired project from the top right of the screen, if you haven't created one already, you'll be asked to do so at this stage.

If you don't have a Google Account or have not previously used Google Cloud Platform:

  1. Visit the Google Maps Platform website, and click the 'Get Started' box.

  2. Choose the 'Maps' and 'Places' checkboxes and click continue.

    • You don't have to choose both, you can just choose Maps and enable/disable libraries in the next steps.

  3. Log in or create a new account in the next screen.

  4. Follow the next instructions to set up your project name and billing details.

  5. At the last step, Google will create new API key for you and enable some API libraries, we'll cover these in following steps.

2. How to Set Up Billing for Google Maps API

The first thing you need to do before you can use any Google API is to set up a billing account to pay for your usage. If you already have the billing account, you can skip this step.

Google offers a $200 monthly credit for using the Google Maps Platform and most users won't exceed this (It will cover more than 25 000 map views per month). For more information about billing, check out Google's Maps Platform Pricing page here.

3. Enable Google Maps JavaScript API

  1. Select your project from the menu.

  2. Go to Library

  3. Select Maps JavaScript API and enable it

  4. Enable Maps JavaScript Api

  5. Copy the API key that you generated and click on Google Maps Platform

  6. Go to Credentials and Edit API key

  7. Under Application restrictions, click Websites and enter domain associated with your store, including your .myshopify.com domain. For example:

    • *.[mydomain] (Replace [mydomain] with your domain (e.g: example.com)

    • [your-domain] (Replace [mydomain] with your domain (e.g: example.com)

    • *.myshopify.com

    • https://shop.app

    • https://shopify.com

  8. Click Save

  9. Add the copied API key to the settings Our app -> Settings -> Shipping settings -> Google Map

  10. A map button will be enabled automatically.

Did this answer your question?