Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Testing and verification

Confirm that app events reach the container and that each platform accepts them, without depending on someone else's device.

The order to test in

1

Publish first

Publish the container. A client testing against an unpublished workspace sees the same nothing as a client testing against a broken setup.

2

Fire the event on a real device

A registration, a purchase, whatever the agreed conversion is. A simulator often lacks an advertising id.

3

Check GA4 Realtime

The event arriving there confirms that the app reaches the container and that the GA4 tag fires.

4

Check the outgoing requests

This shows per platform whether the event left and what the platform answered. See below.

5

Check the platform's own test tool

Meta Test Events, the TikTok testing tool. Use a test_ prefixed event name while testing, and remove the prefix before going live.

6

Confirm both platforms

iOS and Android separately, before raising the traffic percentage.

Preview, and why it is often empty

An app event only reaches a preview session when the request carries the X-Gtm-Server-Preview header. The Firebase SDK adds it only after the device has been bound to the session by scanning the preview QR code, which opens the app through the tagmanager.sgtm.c.[bundle-id] URL scheme. Without that step, preview shows nothing while the events are in fact arriving.

The binding also needs support in the app: a preview activity on Android, and the URL scheme plus the SDK's open-URL handler on iOS. That iOS part is regularly left out, because it affects preview only.

So an empty preview is not evidence that nothing arrives. Two other mistakes produce exactly the same picture: previewing the web container instead of the server container, and testing against a workspace that was never published. Confirm in the outgoing requests before you conclude anything.

Once a session is bound, preview is the right place for one question: what does the client actually deliver. Select the App tracking client on the incoming event and read the Event Data tab. See Event data reference.

Find app events in the outgoing requests

The container's outgoing requests record what was sent to the platforms, including the payload and the answer. Search on app signals rather than on the event name.

  • event_name is empty on the server-to-server path, so a filter on the event name alone can come back empty while events were in fact sent.

  • A Meta app event is recognisable by "action_source":"app" in raw_body.

  • A GA4 app event is recognisable by firebase_app_id or app_instance_id in request_url.

  • status_code shows whether the platform accepted it, raw_response holds the error.

SELECT created_at, platform, status_code,
       substring(raw_body, 1, 500)     AS body,
       substring(raw_response, 1, 500) AS response
FROM outgoing_requests
WHERE container_id = '[container-id]'
  AND created_at >= now() - INTERVAL 14 DAY
  AND (raw_body ILIKE '%"action_source":"app"%'
       OR request_url ILIKE '%firebase_app_id%'
       OR request_url ILIKE '%app_instance_id%')
ORDER BY created_at DESC
LIMIT 50

Per platform, whether any app traffic goes out at all:

Reading the result

Result
Meaning

Rows with a 2xx status

The app reaches the container and the platform accepts the event

Rows with a 4xx status

The app reaches the container, the payload is wrong. Read raw_response

No rows at all

Nothing leaves. Check the GA4 data stream setting, the App client and the triggers

App rows present, nothing in GA4

The GA4 tag is not triggered on the App client

Going live

  • Remove the test_ prefix and switch to the final event names.

  • Raise the GA4 traffic percentage to 100, if it was lowered.

  • Hand over a short note: what was configured, which events run, and where to monitor them.

Was this helpful?