Preparation and roles
What must exist before you start, who owns which part, and the two decisions to take with the app developer up front.
Prerequisites
Who does what
Firebase SDK and the sGTM upload flags
●
Advisory
Ownership of Firebase and GA4
●
Enabling the sGTM URL per data stream in GA4
●
Guidance
App client, tags, triggers and publishing
●
Event names and parameters
●
●
Advisory
Sending an identifier with the event
●
Specification
In-app consent
●
●
Advisory
Testing and verification
●
●
Two decisions to take up front
1. Which identifier does the app send with a conversion? App events have no cookies, so the ad platforms need something else to attribute them. Settle this before the app build, because adding it afterwards means a new app release. See Identifiers and consent in apps.
2. Which platforms does the client actually need app conversions in? GA4, Meta and TikTok can receive app events from the server container. Google Ads works differently and normally does not get a tag at all. Setting that expectation early saves a discussion later.
What the app needs
The Firebase Analytics SDK, on both platforms.
The server-side upload flag:
iOS:
GOOGLE_ANALYTICS_SGTM_UPLOAD_ENABLED = trueAndroid:
<meta-data android:name="google_analytics_sgtm_upload_enabled" android:value="true" />
Optionally a preview URL scheme,
tagmanager.sgtm.c.[bundle-id], which affects GTM preview only.The agreed identifier and any extra event parameters.
The tagging URL itself does not belong in app.json, Info.plist or the Android manifest.
Was this helpful?

