Documentation

How to Get Your Google Analytics API Secret

To connect your property to Google Analytics, you'll need a GA4 Property ID and a Measurement Protocol API Secret.
Follow these steps to generate your API Secret:

  1. Open Google Analytics
    Go to Google Analytics and sign in.
    Click the Admin icon in the lower left corner.

  2. Select Data Streams
    Under the Property column, click Data Streams (You can copy your GA4 Property ID from this screen too).

  3. Open Measurement Protocol API Secrets
    Click your data stream, then scroll down and click Measurement Protocol API secrets.

  4. Create a New API Secret
    Click Create to add a new API secret.
    Give it a nickname (for example, "Spyglasses").

  5. Copy Your API Secret
    After creating the secret, copy the Secret Value.
    You'll need to paste this value into the integration form in your application.


Next Steps:

On this page

No Headings