Your safety is important to us. If you notice any suspicious emails that appear to come from Shopify, please forward them to safety@shopify.com. Visit the Help Center page on phishing for more information.

Register a Google Maps API key

You can add a map section to many of the free Shopify themes. Adding a map section lets you add a map to your homepage to show the location of your business.

For the map to display, you will need to register a Google Maps API key and include it in the map section settings on the Customize theme page.

Register a Google Maps API key

  1. Visit the Google Maps Get API Key page and click the Get a key button. If you are not signed in to a Google account, you will be directed to the Google Accounts Sign In page where you can sign in or create a new Google account.
Click the 'Get a Key' button on the Google Maps Get API Key page
  1. A small window will open on the page. Inside the window, click the Select or create project list and select the + Create a new project option.
Click the 'Select or create project' dropdown and select the '+ Create a new project' option
  1. Provide a name for your new project and click Create and enable API.
Provide a name for your new project and select “Create and enable API”.
  1. In the map section settings on the Customize theme page, paste your new API key in the Google Maps API key field.

Restrict API access to only your store

Your API key is a unique identifier to your map section. To prevent others from using it, we recommend securing it by restricting access to only your domain.

To restrict your API key:

  1. Go to the Credentials page of the Google API Console.
Go to the Credentials page of the Google API Console
  1. Select your project from the menu.
Select your project from the menu
  1. Click the Edit button on the API key you generated.
Select your project from the menu
  1. Click HTTP referrers (web sites) and add any domain your store will be using, including your .myshopify.com domain. For example, you should include both myCustomDomain.com/* and shop1.myshopify.com/* as valid domains.
Select “HTTP referrers (web sites)” and add any domain your store will be using
  1. Click Save. Your API key should now be restricted to your domain.

Want to discuss this page?

Visit the Shopify Community

Ready to start selling online with Shopify?

Try it free