This article outlines how to generate an API key for you to use with Store Locator.
API keys are unique identifiers that allow you to connect to a specific service that an application program provides. Because these keys are unique to a specific user, it's important to always keep your API key safe and secured.
To secure your Google API key to Store Locator, please follow the steps below.
Setup
- Log in to the Google Maps Platform Console.
- Select Console.
- Select APIs & Services, then select Credentials.
- Under Application restrictions, select HTTP referrers (web sites).
- Enter your store URL in the following formats:
https://yourstore.myshopify.com/apps/store-locator
http://yourstore.myshopify.com/apps/store-locator
https://yourdomain.com/apps/store-locator
http://yourdomain.com/apps/store-locatorNote: If you modified the app proxy URL in Shopify, please make sure it matches. For more information, please visit our article that explains Changing the store URL for Store Locator.
- Select Save.
Note: These changes can take up to five minutes to take effect.