Google Analytics

Configuring Google Analytics with Polytomic On Premises

To connect Google Analytics to Polytomic On Premises, you must create a Google OAuth client.

  1. In the Google Cloud console, select your project and enable these APIs:

  2. Open Google Auth Platform. If you haven't set it up for this project, complete Branding and Audience.

    🚧

    Testing mode

    Google expires refresh tokens after 7 days for external apps in testing. Use an internal app, or publish the app, so Connections keep working.

  3. Under Clients, create a client with these options:

    • Application type: Web application.
    • Name: Any name, for example Polytomic Google Analytics client.
    • Authorized redirect URIs: {POLYTOMIC_URL}/connect/googleanalytics. For example, if you access Polytomic at https://polytomic.acmecorp.com, use https://polytomic.acmecorp.com/connect/googleanalytics.
  4. Copy the client ID and client secret.

  5. Set these credentials in your Polytomic deployment:

    • GOOGLEANALYTICS_CLIENT_ID: the client ID.
    • GOOGLEANALYTICS_CLIENT_SECRET: the client secret.
  6. Follow the Google Analytics instructions to create a Connection.