Get GA4 API Secret Key
Generate a Measurement Protocol API secret key to authorize server-to-server event transmission to your GA4 property.
- Navigate to your Google Analytics dashboard and click the Admin gear icon in the bottom-left corner.
- Click Data Streams under the Data collection and modification menu.
-
Select your active website data stream from the list.

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

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

Module Configuration
Map the copied API Secret Key to your PrestaShop module configuration.
- Navigate to your PrestaShop back office and open the module configuration page.
- Select the Google Analytics 4 tab.
- Paste the token into the API Secret input field.
- Click Save to apply the configuration.