How to Create a GA4 Secret

Learn how to create a GA4 Secret in order to launch your server side tracking

Overview

The Google Analytics 4 Measurement Protocol for Google Analytics 4 makes it easier to track what's happening on websites and apps. It lets you send events directly to Google Analytics servers, even if they happen offline or on servers. This feature is meant to add to the data you're already collecting, and you need to keep using those tagging methods to make the most of the Measurement Protocol.

Google Analytics 4 Measurement Protocol API Secrets are handy for connecting online and offline activities, keeping tabs on interactions from both users and servers and logging events that don't happen through regular clicks or taps, like offline sales.


How to Create GA4 Secret

Login to GA4 Property:

Google Analytics 4 Login

Locate GA4 Settings:

  • Begin on your GA4 homepage.
  • Click on the button labeled "Admin" or the gear icon in the lower left-hand of the page.
    • (See Figure 1)

Step 1 screenshot

Figure 1

Access Data Streams:

  • Once in the GA4 Settings, use the left-hand menu to click on the tab titled "Data collection and modification".
    • From the drop down menu under "Data collection and modification", click on the tab titled "Data streams".
    • Once on the Data Streams page in your GA4 Settings, click on the tab that includes your active website.
      • (See Figure 2)

Step 3 screenshot

Figure 2

Navigate to Measurement Protocol API Secrets:

  • Once in your specific Web Stream Details, locate the box titled "Events".
    • In the Events box, click on the tab titled "Measurement Protocol API Secrets".
      • (See Figure 3)

Step 4 screenshot

Figure 3

Generate GA4 Secret:

  • You will be brought to a pop-up window titled "Measurement Protocol API Secrets"
  • To generate a GA4 secret, click on the button labeled "Create" in the API secrets box.
    • (See Figure 4)

Step 5 screenshot

Figure 4

Save Changes:

  • You will be brought to an additional pop-up window titled "Create new API Secret".
    • In order to create your new API secret, type "Elevar" into the Nickname text box.
    • Finally, click on the button titled "Create" in the upper right-hand corner of this pop-up window to save all changes.
      • (See Figure 5)

Step 6 screenshotFigure 5