Overview
When Store Locator loads, it applies a default bias for the United States.
This article outlines how to change this bias to suit your store's needs and geolocate your locations more accurately.
Example
Without the script to change the region. Searching Toledo automatically populates in the US.
With the script and using the GB region. Searching Toledo now loads within Spain.
Setup
- From the Shopify admin, select Apps.
- Select Store Locator.
- Select Settings, then Display Settings.
- Copy and paste the following code into the Page Footer HTML:
<script async src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY®ion=XX"> </script>
- Select Save.
- Select Need Help?, then Google Map API Key.
- Copy your API key, then navigate back to Settings > General Settings.
- Within the Page Footer HTML field, replace YOUR_API_KEY with your copied API key.
- Replace XXwith your region.
- Australia - AU
- Canada - CA
- France - FR
- United Kingdom - GB
- United States - US
- Select Save.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article