Add Google Map API Key to Buying Buddy

To add to Buying Buddy, you will first get a copy of the key, then follow the instructions for your type of website that are shown below.

Do you need to get a Google Map Key?
If you are starting out, review this article first Get a Google Map Key

NOTE: If you have multiple domains (including a staging domain), then in your Google API Account, each domains must be added to the authorized referrers list. See instructions.

Get a Copy of Your API Key

  1. Go to your Google Map Platform Credentials page and then select Credentials from the menu.
  2. Your API Key is shown in the API Keys table and you can use the icon on the right to copy your API Key.
  3. Once you have copied the key, see the instructions below for your type of website.

Once added, you should now be able to use Google Maps on your website.
**Sometimes Google Maps API can take 5-20 minutes to be recognized and authorized by Google**

If you are having problems getting Maps to display then see the Google Maps Troubleshooter.

Instructions For WordPress

If you are using the WordPress plugin, you should add the Google Map API Key to the Settings for the Buying Buddy plugin in your WordPress admin dashboard.

NOTE: There is no need to add the Key to Plugin Installation and Settings in your Buying Buddy dashboard as this will be updated automatically.

If your WordPress site or another plugin already loads Google maps with an API key then you will need to take action to avoid the Google Maps API JavaScript library loading twice as this will cause errors.

For example, the DIVI Theme will also load Google Maps API. In the specific case of DIVI, the prescribed solution is to actually to allow Buying Buddy plugin to load the Google Maps API and stop DIVI from loading it a second time. See our support article to read how to remove the conflict with DIVI.)

  1. Login to your WordPress Admin Dashboard
  2. Go to Plugins and and click "Settings" for the Buying Buddy plugin
  3. Go to the Plugin Dashboard and then the Settings tab.
  4. Add the Google Maps API Key to the Buying Buddy Plugin Options.

Instructions If Using The PHP Class

If you are using the PHP Class it is always advisable to also add the API Key to the Buying Buddy plugin in your website too.

These instructions for the PHP class only apply if you are using the Buying Buddy PHP Class for your Buying Buddy plugin (e.g. for PHP frameworks and CMS such as Bootstrap, Joomla etc).

  1. Once you have added the API Key to your Buying Buddy Account, add the Google Map API Key to the "googleapis.com" script which is part of the PHP API Buying Buddy JavaScript in the <head> of your site.

Instructions For All Other Websites

These instructions apply if you have a website created with any other system such as Squarespace, Weebly, Duda, Webflow, Webstarts, general HTML etc.

  1. Log in to your Buying Buddy account and go to Plugin Installation and Settings for your domain:
    Menu Widgets > Plugin Installation and Settings
  2. Go to the tab "Google Map Key".
  3. For each of your websites, paste in the API key for that domain in the "Google Map Key" section.
  4. Click SAVE to save this key for this website / domain.
Updated on April 8, 2024

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support
Buying Buddy Support