Install Our Apps

How to Create a Measurement Protocol API Secret Key in Google Analytics

This documentation provides step-by-step instructions on how to create a Measurement Protocol API Secret Key in Google Analytics. This key allows you to securely authenticate and authorize API requests to send data to your Google Analytics account.

Prerequisites #

Before you begin, ensure that you have a Google Analytics account and the necessary permissions to create API keys. If you don’t have a Google Analytics account you can follow this guide to create a Google Analytics account.

Access your Google Analytics Account #

Go to your Google Analytics account dashboard.

Google Analytics Dashboard

In the left-hand menu, click on the “Admin” tab. This will take you to the Admin section of your Google Analytics account.

Click on the Admin

Select Data Stream #

Under the “Property” column, click on “Data Streams.

Click on the Data Stream

Choose an Existing Stream #

Choose the data stream for which you wish to generate the Measurement Protocol API Secret Key. To do so, click on the name of an existing stream.

Select Data Stream

Access Measurement Protocol API Secrets #

Within the selected data stream, click on “Measurement Protocol API Secrets.” This will open a new tab.

Measurement Protocol API Secrets

Review Terms #

In the newly opened tab, you will be required to acknowledge the terms and conditions before creating an API secret key. Click on the “Review Terms” button.

Click on the I Acknowledge

User Data Collection Acknowledgement #

After reviewing the terms, you will be presented with a user data collection acknowledgment pop-up window. Click on the “I acknowledge” button to confirm your acknowledgment.

Click on the I Acknowledge

Create API Secret Key #

Now, click on the “Create” button to generate your Measurement Protocol API Secret Key.

Click on the Create Button

Name your API Secret Key #

In the pop-up window that appears, enter a name for your Measurement Protocol API Secret Key. This name should help you identify its purpose or usage.

Name your API Secret Key

Confirm and Create #

After naming your API secret key, click on the “Create” button to finalize the creation process.

API Key Created #

Protocol API Secret Key successfully created

Your Measurement Protocol API Secret Key has now been successfully created and is ready for use.

You have successfully created a Measurement Protocol API Secret Key in Google Analytics, allowing you to securely send data to your Google Analytics account through the Measurement Protocol API Secret Key. Make sure to keep this key secure and use it in your API requests as needed.

What are your feelings
Updated on November 4, 2023