Google Analytics 4 (iOS/Android)
Amplitude Activation's Google Analytics 4 (iOS/Android) streaming integration forwards your Amplitude events and users to Google Analytics 4 (iOS/Android) with a few clicks.
Choose the correct Google Analytics 4 destination
The Google Analytics 4 (Web) destination works with a web application instrumented with Google Tag (gtag.js). For an iOS or Android mobile application using Firebase, set up a Google Analytics 4 (iOS/Android) destination.
Set up the integration
Prerequisites
To configure streaming from Amplitude to Google Analytics 4 (Web), you need the following information from Google Analytics 4 (Web):
- Google Analytics 4 Firebase App ID: The identifier for your Google Analytics 4 Firebase app. Refer to the Google documentation for help locating your Firebase app ID.
- Google Analytics 4 Measurement Protocol API Secret: The measurement protocol API secret used for authentication. Refer to the Google documentation for help generating an API secret.
Create a new sync
- In Amplitude Data, click Catalog and select the Destinations tab.
- In the Event Streaming section, click Google Analytics 4 (iOS/Android).
- Enter a sync name, then click Create Sync.
Enter credentials
- Enter your Google Analytics 4 Firebase App ID.
- Enter your Google Analytics 4 Measurement Protocol API Secret.
Configure mappings
This applies to both event and user forwarding.
- Select an Amplitude user property that corresponds to your Google Analytics 4 App Instance ID, from the left dropdown.
- (optional) Map an Amplitude user property to Google Analytics 4 User ID.
- Select an Amplitude user property that corresponds to your Google Analytics 4 User ID, from the left dropdown.
- Select User ID, from the corresponding right dropdown.
Configure event forwarding
Under Send Events, enable the toggle ("Events are sent to Google Analytics 4") to stream events to Google Analytics 4. When enabled, Amplitude automatically forwards events to Google Analytics 4 when they're ingested. This integration doesn't send events on a schedule or on-demand.
- In Select and filter events choose which events you want to send. Choose only the events you need in Google Analytics 4. Amplitude sets
non_personalized_adstotruefor all events.
Events for non-Google Analytics 4 users cannot be streamed
Google Analytics 4 requires that all events have a Google Analytics 4 App Instance ID present. If you have selected any events to send to Google Analytics 4 that may not have an App Instance ID, add a filter to send only events where the App Instance ID is present. Otherwise, your delivery metrics may be affected.
- (optional) In Select additional properties, select any more event and user properties you want to send to Google Analytics 4. If you don't select any properties here, Amplitude doesn't send any. Amplitude sends these properties to Google Analytics 4 as Google Analytics 4 parameters.
Configure user forwarding
To stream user and property updates to Google Analytics 4, enable Send Users. This setting creates or updates users in Google Analytics 4 when you update them in Amplitude using the HTTP V2 API or Identify API. This integration doesn't support scheduled or on-demand updates.
You can optionally select user properties to send to Google Analytics 4 in the Select additional properties field. Amplitude sends only the properties you select, and only when one of them is updated. Amplitude sends these properties as Google Analytics 4 User Properties.
Enable sync
When satisfied with your configuration, toggle the Status to "Enabled" at the top of the page and click Save.
Was this helpful?