Google Analytics
Configuring Google Analytics with Polytomic On Premises
In order to enable the Google Ads integration on your Polytomic on-prem instance, you'll need to do the following:
- Create an OAuth client in your Google Console.
- Set (1) and the credentials from (2) as Polytomic environment variables (note: this will have to be done by the engineer on your team who deployed Polytomic).
See the following section for detailed steps.
Enabling Polytomic's Google Analytics integration
- Enable the Google Analytics API in your Google Console by going visiting the following pages:
- Analytics Data API: <https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com>.
- Analytics Admin API: <https://console.cloud.google.com/apis/library/analyticsadmin.googleapis.com>
Make sure you pick the right project in the top selector then click the 'Enable' button:
-
On the subsequent screen, use the left navigation bar to access the credentials menu.
-
On the Google Ads API page, click Create credentials, and select OAuth Client ID.
- You may need to set up your the Authorization Platform if you haven't done so already. If you need to do so, go through the steps, and then return to step 1. Otherwise, in the OAuth Client ID section, set the following options:
- Application type: Web application.
- Name: Enter any name you want (e.g. 'Polytomic Google Ads client').
- Authorized redirect URIs: Create one entry here to
<Polytomic URL>/connect/googleads
. For example, if you access Polytomic athttps://polytomic.acmecorp.com
then the entry here should behttps://polytomic.acmecorp.com/connect/googleads
.
- Click Create.
- Download your credentials and note the
client_id
andclient_secret
values:
- Ask the engineer on your team that deployed Polytomic to carry out this step. Set the following environment variables in the Polytomic deployment:.
GOOGLEANALYTICS_CLIENT_ID
: set this to the client ID from step 7.GOOGLEANALYTICS_CLIENT_ID
: set this to the client secret from step 7.
Restart your Polytomic environment so that it picks up these environment variables.
- You'll now see the Google Analytics integration as a connection option in Polytomic. Follow the steps here to connect to your Google Analytics instance.
Updated 6 days ago