GA4 (Google Analytics 4)

TrueMetriks sends all your events to GA4 so your analytics are complete. Here is how to set it up.

Add a GA4 property in TrueMetriks

Video guide

How to connect Google Analytics 4 to TrueMetriks

In the TrueMetriks dashboard, open Settings > Ad integrations, pick the GA4 tab, and click the highlighted Add property button.

Google Analytics 4 Not connected

Add unlimited GA4 properties. Each event is sent to every active property.

No properties yet. Click Add property above to send events to GA4.
Settings → Ad integrations → GA4 - click the highlighted Add property button to start setting up your first GA4 property.

A new property card expands underneath with three fields - Friendly name (optional, anything that helps you tell properties apart), Measurement ID, and API Secret.

New property

Active

Friendly name (optional)

Measurement ID

API Secret


Personalized Ads

When OFF, GA4 runs analytics-only (GDPR-friendly mode).

Debug mode 1h

Auto-disables 1h after toggle on. Verify events in GA4 DebugView.

The expanded New property card. You need two values from GA4 to fill in: the Measurement ID and an API Secret. Both come from the same GA4 stream - we cover where to find them next.

Both the Measurement ID and the API Secret live inside GA4. The next two sections walk you through copying them.

Copy the Measurement ID from GA4

Open Google Analytics 4 in another tab and pick the property you want to send events to.

Step 1 - Click Admin in the left rail

In the GA4 left navigation, scroll to the bottom and click the highlighted Admin link.

  • Home
  • Reports
  • Explore
  • Advertising
  • Tasks
  • Admin
Inside GA4, scroll to the bottom of the left rail and click the highlighted Admin link.

Step 2 - Click Data streams under "Data collection and modification"

On the Admin page, find the Data collection and modification card on the right side and click the highlighted Data streams row.

Property

These settings affect your property

  • Property details ?
  • Property access management ?
  • Property change history ?
  • Property data API quota history ?
  • Scheduled emails ?

Data collection and modification

These settings control how data is collected and modified

  • Data streams ?
  • Data collection ?
  • Data import ?
  • Data retention ?
  • Data filters ?
  • Data deletion requests ?
  • Consent settings ?
Inside GA4 Admin, find the Data collection and modification card and click the highlighted Data streams row.

Step 3 - Add a Web stream (only if you don't already have one)

If a web data stream already exists for this property, skip to Step 4. Otherwise, click Add stream and pick Web.

Data streams

All iOS Android Web
No data streams yet. Add a stream to start collecting data.
iOS app
Android app
Web
On the Data streams page, click Add stream and pick Web. GA4 walks you through the new web stream form - give it your site URL and a stream name, then click Create stream.

GA4 walks you through a quick form - enter your site URL and a stream name, then click Create stream. The new stream appears in the list once it's created.

Step 4 - Click into the web stream

Back on the Data streams page, click the row for the web stream you just created (or your existing one).

Data streams

All iOS Android Web

Demo Brand - WEB

https://demo-brand.example/

4659844823

Receiving traffic in past 48 hours.

Once the stream is created, you land back here with it listed. Click the highlighted row to open the stream details.

Step 5 - Copy the Measurement ID

The Stream details panel opens. The Measurement ID is in the top-right corner of the Stream details card - it starts with G- (e.g. G-Q7ZQSRH9G7). Click the copy icon next to it.

Data collection is active in the past 48 hours.

Stream details

STREAM NAME

Demo Brand - WEB

STREAM URL

https://demo-brand.example/

STREAM ID

4659844823

MEASUREMENT ID

G-Q7ZQSRH9G7

In the Stream details card, click the copy icon next to the Measurement ID (starts with G-). Paste it into the Measurement ID field of your TrueMetriks property card.

Paste it into the Measurement ID field of your TrueMetriks property card.

Create an API Secret in GA4

Stay on the same Stream details page - the API Secret lives a little further down on the same page.

Step 1 - Scroll to Measurement Protocol API secrets

Scroll down to the Events block and click the highlighted Measurement Protocol API secrets row.

Events

Enhanced measurement

Automatically measure interactions and content on your sites in addition to standard page view measurement.

Modify events

Modify incoming events and parameters.

Create custom events

Create new events from existing events.

Measurement Protocol API secrets

Create an API secret to enable additional events to be sent into this stream through the Measurement Protocol.

Scroll down to the Events block on the same Stream details page, and click the highlighted Measurement Protocol API secrets row.

Step 2 - Click Create

The API secrets list opens. Click the highlighted blue Create button on the right.

Measurement Protocol API secrets

Create a secret to enable additional events to be sent into this stream through the Measurement Protocol.

API secrets

Nickname Secret value Date created
No API secrets yet. Click Create to add one.
Inside Measurement Protocol API secrets, click the highlighted Create button to start a new API secret.

Step 3 - Give it a nickname and click Create

GA4 opens a small form. Enter any nickname (something like truemetriks is fine - it is just for your reference inside GA4) and click the highlighted Create button in the top-right.

Create new API secret

Nickname

Give the API secret a nickname (anything that identifies it - e.g. "TrueMetriks") and click the highlighted Create button.

Step 4 - Copy the secret value

The secret is created and appears in the list. Click the highlighted copy icon next to the Secret value column.

Create a secret to enable additional events to be sent into this stream through the Measurement Protocol.

API secrets

Nickname Secret value Date created
truemetriks_api zoV_jXNVT06S-GDVaO7Mog May 17, 2026, 3:41:17 PM
The secret is created. Click the highlighted copy icon next to the Secret value to copy it - this is the API Secret you paste into your TrueMetriks property card.

Paste it into the API Secret field of your TrueMetriks property card.

Save the property in TrueMetriks

Back in TrueMetriks, both fields are now filled in. Click the highlighted Save GA4 settings button at the bottom of the card.

Main store

Active

Friendly name (optional)

Measurement ID

API Secret


Paste the Measurement ID and API Secret into the matching fields, then click the highlighted Save GA4 settings. From now on, TrueMetriks streams every event server-side to GA4 through the Measurement Protocol.

You can add as many GA4 properties as you want by clicking Add property again - each event is sent to every active property automatically.

Event mapping

TrueMetriks standard events map to GA4 recommended events automatically:

TrueMetriks event GA4 event
PageView page_view
ViewContent view_item
AddToCart add_to_cart
InitiateCheckout begin_checkout
Lead generate_lead
Schedule schedule
Purchase purchase

Custom events without a mapping fire as snake_case of the event name (e.g. WatchDemo becomes watch_demo). You can configure per-property custom event mappings by expanding the property card.

How to verify events are flowing

There are two ways to confirm GA4 is receiving your TrueMetriks events. Either works on its own - pick whichever is more convenient.

Before either method works, the TrueMetriks tracker has to be installed on your platform (WordPress, Shopify, GoHighLevel, ClickFunnels, or a custom install) and connected to TrueMetriks. Follow the Test your integration guide if you have not done that yet.

Video guide

How to test that GA4 events are flowing end-to-end with TrueMetriks

Method 1 - Realtime overview in GA4

The fastest check is GA4's built-in Realtime overview.

Step 1 - Open Reports > Realtime overview in GA4

In the GA4 left rail, click Reports, then click the highlighted Realtime overview.

Home
Reports snapshot
Realtime overview
Realtime pages
Life cycle
Acquisition
Engagement
Click Reports in the GA4 left rail. The flyout opens - click the highlighted Realtime overview to see events landing in real time.

Step 2 - Watch events arrive in real time

The Realtime overview page shows active users in the last 30 minutes, a per-minute bar chart, and Event count by Event name in the bottom-right card. Browse your live site in an incognito window and within ~30 seconds you should see page_view, begin_checkout, purchase, and any other events you triggered tick up.

ACTIVE USERS IN LAST 30 MINUTES

6

ACTIVE USERS IN LAST 5 MINUTES

3

ACTIVE USERS PER MINUTE

Active users by First user source

#1 -

No data available

Active users by Audience

#1 All Users

6

All Users 6

Views by Page title and screen name

#1 -

No data available

Event count by Event name

#1 page_view

24

page_view 24
begin_checkout 6
The Realtime overview page. As you browse your site, the bar chart climbs and Event count by Event name (highlighted) updates in real time. Seeing your events here is proof TrueMetriks is uploading server-side to GA4.

Method 2 - GA4 DebugView

DebugView shows every event arriving for a debug device, with timestamps and parameters. It only shows events from properties with Debug mode turned on, so you toggle that in TrueMetriks first.

Step 1 - Turn on Debug mode in TrueMetriks

Back in your TrueMetriks property card, toggle Debug mode on. The sub-label flips to Active - expires in 60 min (Debug mode auto-disables after 1 hour so it never stays on accidentally). Click Save GA4 settings.

G-Q7ZQSRH9G7

GIVE A NAME - GDPR-friendly mode off Active

Friendly name (optional)

Measurement ID

API Secret


Personalized Ads

When OFF, GA4 runs analytics-only (GDPR-friendly mode).

Debug mode 1h

Active - expires in 60 min

Toggle Debug mode on inside the property card - the sub-label flips to "Active - expires in 60 min". Save your GA4 settings, then open GA4 DebugView to watch events arrive in real time.

Step 2 - Open Admin > DebugView in GA4

In GA4, click Admin in the left rail, scroll down to the Data display card at the bottom of the right column, and click the highlighted DebugView row.

Data display

These settings control how data is shown in your reports

  • Events ?
  • Network settings ?
  • Audiences ?
  • Annotations ?
  • Comparisons ?
  • Segments ?
  • Custom definitions ?
  • Channel groups ?
  • Reporting identity ?
  • DebugView ?
Scroll down to the Data display card at the bottom of the GA4 Admin page and click the highlighted DebugView row.

Step 3 - Pick your debug device and watch events stream in

DebugView shows a Debug Device list on the left, a per-minute summary in the middle, and a live event stream on the right. Pick your debug device, then browse your site - within ~3 seconds every event TrueMetriks fires lands on the timeline.

Debug Device 4

Apple
Apple
Apple
Apple
3
  • 10:57 AM
  • 10:56 AM
  • 10:55 AM
  • 10:54 AM
  • 10:53 AM
  • 10:52 AM
0 new
10:57:00 AM 60s
10:56:58 AM 2s
begin_checkout
page_view
10:56:57 AM 15s
10:56:42 AM
page_view
10:56:41 AM
DebugView pairs each debug device with a live event timeline. As you browse your site, page_view, begin_checkout, purchase and every other event lands here within ~3 seconds - proof TrueMetriks is streaming through the Measurement Protocol.

page_view, begin_checkout, purchase, add_to_cart, and every other event you mapped will appear here as you trigger them. If you see them, the integration is fully wired up.

Frequently asked questions

What do I need to copy from GA4 to connect a property?

Two values, both inside GA4: the Measurement ID (starts with G-) from your web stream's details, and an API Secret you create under Measurement Protocol API secrets on the same stream.

Can I send events to more than one GA4 property?

Yes. Click Add property again for each one. Every event TrueMetriks tracks is sent to every active property automatically.

How do standard TrueMetriks events map to GA4?

Standard events map to GA4 recommended events automatically (for example Purchase becomes purchase, AddToCart becomes add_to_cart). Custom events without a mapping fire as snake_case of the event name.

Need help with this?

Reach us instantly on WhatsApp, or send us a message and we will get back to you. On workdays we usually respond in less than 24 hours.

or send us a message