Securing Google Maps API key

A number of restrictions can be assigned to an API key to limit how it can be used. Restricting API keys is optional but highly recommended since they help keep your account secure and prevent unintended or malicious usage of your project.

Follow the steps below to limit which websites are allowed to use your Google Maps API key.

Step 1: Open Google Credentials

  1. Open the Google Cloud Console → APIs & Services → Credentials
  2. Make sure you’re signed in to the same Google account used to create your API key
  3. Check the project selector at the top of the page and confirm it shows the project you created for Store Locator

In most cases, there will only be one project listed.

Step 2: Select the Correct API Key

  1. In the list of API keys, click the name of the key you’re using with Store Locator
  2. On the key details page, confirm this is the same key added in Store Locator app settings

If you edit a different key, the changes will not affect your Store Locator.


Step 3: Set Website Restrictions

  1. Under Application restrictions, select Websites
  2. Under Website restrictions, add your website’s domain(s)

For a site hosted at example.com  , add both of the following: example.com/*, *.example.com/*

Replace example.com   with your actual domain.

⚠️ If your site uses www.example.com  , do not include www  — the entries above already cover it.

The placement of dots (.  ), slashes (/  ), and asterisks (*  ) is important.

Only replace example.com   and leave the rest exactly as shown.

⚠️  As your site is on Shopify, also add the following domains: example.myshopify.com/*, .shopifypreview.com/

Step 4: API Restrictions

Scroll down to API restrictions and leave this option set to:

Don’t restrict key

Step 5: Save Your Changes

  1. Click Save at the bottom of the page
  2. Wait a few minutes for the changes to take effect

    (It can take up to 5 minutes for Google to apply updates.)

After that, refresh your website and confirm the map loads correctly.


Do you need help?

If you have any questions or run into issues, please contact us — we’re happy to help. Contact support.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us