Google Analytics 4 Setup
Connect Google Analytics 4 to TrueSignal to send server-side purchase events via the GA4 Measurement Protocol. Server-side events fill the gaps left by ad blockers and browser limitations, giving you complete, accurate conversion data in your GA4 reports.
Prerequisites:
- A GA4 property with a Web data stream
- Your Measurement ID (e.g.
G-XXXXXXXXXX) - A Measurement Protocol API secret
- TrueTracked pixel installed on your site
Step 1: Get Your Measurement ID and API Secret
- In GA4, click Admin (the gear icon, bottom-left)
- Go to Data collection and modification > Data streams and select your Web stream
- Copy the Measurement ID shown at the top right (format
G-XXXXXXXXXX) - Scroll to Measurement Protocol API secrets and click Create
- Give the secret a nickname (e.g. "TrueTracked") and copy the generated Secret value
Note: The API secret is required — GA4 won't accept server-side events without it. Treat it like a password and don't expose it publicly.
Step 2: Connect in TrueTracked
- Go to Settings > TrueSignal in your TrueTracked dashboard
- Click Connect on the Google Analytics 4 card
- Enter your Measurement ID
- Enter your API Secret
- Optionally give the connection a Name
- Click Connect
Step 3: Register Custom Dimensions
TrueTracked sends a few extra parameters on the server-side purchase event. GA4 collects them automatically, but they only appear in your reports once you register them as event-scoped custom dimensions.
- In GA4, go to Admin > Data display > Custom definitions
- On the Custom dimensions tab, click Create custom dimension
- Fill in the fields below, set Scope to Event, and click Save
| Dimension name | Event parameter | Description |
|---|---|---|
| Customer Type | customer_type | New vs returning customer at purchase |
Important: The Event parameter must match exactly (lowercase, underscores) — customer_type. If it isn't in the dropdown yet (no events collected), just type it in. Custom dimensions are not retroactive — they only populate from the moment you create them, and can take 24–48 hours to appear in standard reports.
Step 4: Verify
- Trigger a test purchase on your site
- In GA4, open Reports > Realtime and look for the
purchaseevent - To inspect the full payload, enable Debug mode on the TrueSignal connection, then watch Admin > DebugView in GA4
- Allow 24–48 hours for the custom dimensions to populate in standard reports and explorations
Troubleshooting
- No events appearing: Double-check your Measurement ID starts with
G-and that the API Secret was copied in full. A wrong or missing secret silently drops events. customer_typenot in reports: Confirm you created it as an event-scoped custom dimension with the exact parameter name, then allow 24–48 hours. Custom dimensions are not retroactive.- Want to confirm delivery now: Enable Debug mode on the TrueSignal connection and check Admin > DebugView — events show within seconds there even before they reach standard reports.