Skip to content

Get GA4 API Secret Key

Generate a Measurement Protocol API secret key to authorize server-to-server event transmission to your GA4 property.

  1. Navigate to your Google Analytics dashboard and click the Admin gear icon in the bottom-left corner.
  2. Click Data Streams under the Data collection and modification menu.
  3. Select your active website data stream from the list.

    Navigating to GA4 Data Streams

  4. Scroll down to the Additional settings section and click Measurement Protocol API secrets.

    Selecting Measurement Protocol API Secrets

  5. Click Create to launch the creation panel.

  6. Enter a descriptive name for the asset (e.g., GA4 API Secret).
  7. Click Create to finalize and generate the token.
  8. Copy the unique string token located under the Secret value column.

Naming and Creating the Key


Module Configuration

Map the copied API Secret Key to your PrestaShop module configuration.

  1. Navigate to your PrestaShop back office and open the module configuration page.
  2. Select the Google Analytics 4 tab.
  3. Paste the token into the API Secret input field.
  4. Click Save to apply the configuration.