Contact Support

What is a GA4 Measurement Protocol API Secret? #

The GA4 Measurement Protocol API Secret is a secure authentication key that allows server-side applications (like Transmute Engine) to send events directly to your Google Analytics 4 property.

This enables you to:

  • Send events from your server or backend systems
  • Track events outside of a web browser
  • Ensure tracking continues even with ad blockers
  • Maintain data accuracy for critical business events

How to Create an API Secret #

Step 1: Access Data Stream Settings #

  1. Log in to Google Analytics
  2. Click Admin (gear symbol) bottom left
  3. In Property column, click Data Streams
  4. Click your web data stream name

Step 2: Locate API Secrets Section #

  1. Scroll to Measurement Protocol API secrets section
  2. View any existing API secrets

Step 3: Review Terms #

  1. Review Google Measurement Protocol terms
  2. Understand data privacy requirements
  3. Note rate limits and quotas

Step 4: Create the Secret #

  1. Click Create button
  2. Enter a memorable nickname (e.g., “Transmute Engine Production”)
  3. Click Create

Step 5: Copy and Secure #

  1. API secret displays one time only
  2. Click copy icon immediately
  3. Store securely in password manager

Warning: You cannot view the secret again. If lost, create a new one.

Using in Transmute Engine #

  1. Go to Configuration Settings
  2. Find GA4 Measurement Protocol API Secret field
  3. Paste your secret
  4. Save

Security Best Practices #

Do: #

  • Store in secure environment variables
  • Restrict access to authorized personnel
  • Use different secrets for different environments
  • Create descriptive nicknames
  • Rotate secrets periodically

Do Not: #

  • Commit to version control
  • Expose in client-side code
  • Share publicly
  • Reuse across unrelated applications

Common Questions #

What if I lose my API Secret? #

Create a new one and update your configuration.

Can I use same secret for multiple properties? #

No. Each data stream requires its own API secret.

How is this different from Measurement ID? #

The Measurement ID identifies which property receives data. The API Secret authenticates the request. Both are required.

Related Documentation #


What are your feelings

Updated on November 21, 2025