Bespoke lead generation is available to our Enterprise partners. Please contact your Customer Success Manager to find out more. If you're on the Pay-As-You-Go plan, check out our self-serve lead generation widget.
In order to use the business autocomplete feature on our lead generation reports, you must create a Google developer account and create an API key.
Note that when using this feature, you will be responsible for costs associated with using the Google lookup. Google provides up to $200 credit each month for free, which should be good for around 11,000 lookups every month (prices correct at the time of writing in September 2020).
If you already use any Google APIs, we strongly recommend creating a separate API key for your Insites landing page. This will mean you can control security and usage individually across your various projects / integrations.
Go to the Google Cloud Platform Console
If you don’t already have an account, you’ll need to sign up for one. It is necessary to activate your account and provide billing details in order for the key to work correctly.
Once you’re in the Google Cloud console, use the left hand menu to navigate to APIs & Services > Library
Search for the “Maps JavaScript API“, click on it and click “Activate“. If it already says “Manage”, you’re good to go.
Repeat step 4 and activate “Places API”
Now use the left hand menu to browse to APIs & Services > Credentials
At the top, click on “+ Create credentials” then “API key“
Copy your key.
Log in to your Insites account. From the account settings dashboard, go to Lead generation > General settings and scroll down to find Google Places autocomplete API key. Paste in your API key and hit “Save changes“.
Back in the Google Cloud console, hit “Restrict Key”. You need to make sure a third party cannot use your API key to generate usage against your account. We recommend restricting “HTTP referrers” – in simple terms this means the key will only work on your landing page. To finish setting this up, you’ll need to add your landing page URL under “Website restrictions”.
If your Google console account deals with other APIs, you may wish to restrict which services this API key can access. Under API restrictions, activate “Restrict key” and then select the two required APIs (Maps JavaScript API and Places API).
Once you’re done, hit Save. Note that changes to your API key may take up to 5 minutes to save.
We hope you found this guide useful – please let us know if you have any feedback.