“Can I put a map to my store location on the home page?”

Using the map home page section, you can lead customers to your brick-and-mortar store using a map and address.

Map section on desktop

This feature requires that you set up Google Cloud Platform account. You need this in order to get the Google Maps API key you need to make the embedded map work.

While customizing your home page, this feature is available by using the Add section button.

Get a Google Maps API key

Here’s what you need to do to get a Google Maps API key:

  1. Sign up for Google Maps Platform. (Link.)
  2. Select the Maps product. Google Maps Platform setup step
  3. Create a project for your Shopify store.
  4. Enter your billing information.
    Unless you get more than 500,000 views per month, you will not be charged for map API requests. They will all be paid for with the recurring $200 credit Google gives its Cloud Platform users each month.

After this process, you are granted a Google Maps API key, which you can copy into Context’s map section Google Maps API Key field:

Google Maps API Key popup

The API key should be a large jumbled string of characters, like this: AIzaSyCuv0hqbs8Itd_UvRQ0gAkwe5OxkYw_q08.

We recommend that you restrict your API key so it can only be used on requests to your store’s URL (like https://your-store.com). You can restrict to multiple URLs if you also want to add your https://your-store.myshopify.com address for testing purposes.

The following video shows you how to do this from the Google Cloud Platform Google Maps dashboard:

If you lost your API key, you can find it again (or regenerate it) from the Google Cloud Platform API Credentials page.

Map section settings

Now that you have a Google Maps API key, you can configure Context’s map section.

If the embedded Google map can’t be loaded for some reason, you can specify a fallback image to be used in its place.
The heading text for the map section.
Add your store address. This text is shown to customers.
Your store hours. This text is shown to customers.
Map address
Add your complete store address. This text is read by Google Maps and used to locate your store on the world map.
Google Maps API key
Add your Google Maps API key. You should have generated one using the directions above.
Custom map JSON
You can paste JSON configuration in this field to change the look and feel of your map. Learn more

You can find some map presets using Google’s Google Maps Platform Styling Wizard website.

Custom map JSON

Using JavaScript Object Notation (JSON), a form of JavaScript code used to send structured information and configuration, you can change the look and feel of your map.

Using the Google Maps Platform Styling Wizard website, you can choose different map themes or tweak map settings.

Check out the following video for more information:

Once you have copied the JSON to your clipboard, you can paste it into Context’s Custom map JSON setting.