Adding the Correct Referrer for Google API

Problem #

Google Maps is not working properly in the store locator due to a wrong referrer being added.

Explanation  #

One possible reason why Google Maps does not work properly is due to a Google API error. Furthermore, the reason this happens is because the API key is not linked to the user’s domain.

Referrer Error Message
Referrer Error Message

Solution 1 #

Firstly, you can create a new API for this domain, which will quickly solve the problem.

Solution 2  #

Secondly, you can change the website for an existing key to solve the problem.

Furthermore, your website lines will be:

mywebsite.com
mywebsite.com/*
*.mywebsite.com
*.mywebsite.com/*

Note: Please replace mywebsite.com with your site address

Change Domain Referrer
Change Domain Referrer

Lastly, for more information, please refer to the below video or post.