Home > Shopify Tutorials > Add Google Maps API Key to Theme

Add your Google Maps API Key to your Theme on Shopify

Last updated: August 01, 2024
Written and researched by experts at AvadaLearn more about our methodology

By Sam Nguyen

CEO Avada Commerce

In the themes provided by Shopify, there are a lot of them have a map section. Adding a map section to your homepage enables you to show the location of your business. However, in order to add a Google map API to the themes on Shopify, you have to register it first. This is the writing on how to add your Google Maps API key to your theme on Shopify. Please read carefully and follow my instruction step by step.

Related Posts:

How to add your Google Maps API key to your theme

Step 1: Go to the Online Store.

After logging in your Shopify account, from the homepage page, take a look at the left side of the screen, you can see a section called Online Store in the Sales Channels category. Click on Online Store.

add your Google Maps API key to your theme on desktop 1

Step 2: Choose a theme to customize.

The Shopify system will automatically take you to the Themes page. From the Themes screen, scroll down to see more themes, decide which one would you like and hit Customize.

add your Google Maps API key to your theme on desktop 2

Step 3: Go to the Sections tab.

The themes editor toolbar is divided into two tabs, which are Sections and Themes setting. As for our purpose, go to the Sections tab.

add your Google Maps API key to your theme on desktop 3

Step 4: Add Section.

From the Sections tab, scroll down until you see the Add Section button, click on it.

add your Google Maps API key to your theme on desktop 4

Step 5: Add the Map section.

In the Add Section dialog, you can see the Map section in the Store information area. Click on the Map button to add it.

add your Google Maps API key to your theme on desktop 5

Step 6: Paste the API link.

After clicking on the button, you can see the map dialog, scroll down to the Background area, you can see a box called Google Map API key, move your cursor in the box and paste the Google Map API you registered before in it.

add your Google Maps API key to your theme on desktop 6

Step 7: Save theme.

The final step is quite simple, all you have to do is hit Save.

To add your Google Maps API key to your theme on iPhone (Click here)

  • Step 1: Go to Store. After getting into your Shopify app, at the bottom of your phone screen, there is a Store button, tap on it.

     add your Google Maps API key to your theme on iPhone 1
  • Step 2: Go to the Online Store. In the middle of the screen, you can see the Sales channels category, under it is the Online Store section, hit that button to continue.

     add your Google Maps API key to your theme on iPhone 2
  • Step 3: Tap Manage Themes. After finishing the above step, continue by tapping the Manage Themes button.

     add your Google Maps API key to your theme on iPhone 3
  • Step 4: Choose a theme to customize. From the Themes screen, scroll down to see more themes, decide the themes you want to make changes to and click Customize.

     add your Google Maps API key to your theme on iPhone 4
  • Step 5: Go to the Sections tab. The themes editor toolbar is divided into two different tabs, however, for our purpose, go to the Sections tab.

     add your Google Maps API key to your theme on iPhone 5
  • Step 6: Add section. From the Sections tab, scroll down until you see the Add Section button, click on it.

     add your Google Maps API key to your theme on iPhone 6
  • Step 7: Add the Map section. In the Add Section dialog, you can see the Map section in the Store information area. Click on the Map button to add it.

     add your Google Maps API key to your theme on iPhone 7
  • Step 8: Paste the API link. After clicking on the button, you can see the map dialog, scroll down to the Background area, you can see a box called Google Map API key, move your cursor in the box and paste the Google Map API you registered before in it.

     add your Google Maps API key to your theme on iPhone 8
  • Step 9: Saving. The final step is quite simple, all you have to do is tap the Save button.

To add your Google Maps API key to your theme on Android (Click here)

  • Step 1: Go to Store. After getting into your Shopify app, at the bottom of your phone screen, there is a Store button, tap on it.

  • Step 2: Go to the Online Store. In the middle of the screen, you can see the Sales channels category, under it is the Online Store section, hit that button to continue.

  • Step 3: Tap Manage Themes. After finishing the above step, continue by tapping the Manage Themes button.

  • Step 4: Choose a theme to customize. From the Themes screen, scroll down to see more themes, decide the themes you want to make changes to and click Customize.

  • Step 5: Go to the Sections tab. The themes editor toolbar is divided into two different tabs, however, for our purpose, go to the Sections tab.

  • Step 6: Add section. From the Sections tab, scroll down until you see the Add Section button, click on it.

  • Step 7: Add the Map section. In the Add Section dialog, you can see the Map section in the Store information area. Click on the Map button to add it.

  • Step 8: Paste the API link. After clicking on the button, you can see the map dialog, scroll down to the Background area, you can see a box called Google Map API key, move your cursor in the box and paste the Google Map API you registered before in it.

  • Step 9: Saving. The final step is quite simple, all you have to do is tap the Save button.

Conclusion

Above is my writing on how to add your Google Maps API key to your theme on Shopify. I hope you have a great time reading and applying it while running your store.


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.

People also searched for