Google Analytics provides behavioral analytics and content performance for websites and mobile apps. Airship Real-Time Data Streaming provides a stream of events from your app.
Complement your Google Analytics data with real-time, user-level mobile engagement data from Airship. This integration enables a complete view of the user experience by combining Google Analytics data with user-specific interactions such as push sends, direct app opens, and uninstalls.
This integration uses our ID Matching feature. Once you've implemented the ID Match between a user's Google Analytics CID and the user's Airship Channel ID, Real-Time Data Streaming can report events directly to Google Analytics about that user. From there, you can create segments within Google Analytics to track mobile engagement behavior.
Fetch the Google CID for your user, then associate it with the Airship channel ID. See ID Matching for details on this feature.
UAAssociatedIdentifiers *identifiers = [[UAirship shared].analytics currentAssociatedDeviceIdentifiers]; // Add the client ID from your Google Anlaytics tracker: [identifiers setIdentifier:[tracker get:kGAIClientId] forKey:@"GA_CID"]; // Associate the identifiers [[UAirship shared].analytics associateDeviceIdentifiers:identifiers];
let identifiers = UAirship.shared().analytics.currentAssociatedDeviceIdentifiers() // Add the client ID from your Google Anlaytics tracker: identifiers.setIdentifier(tracker.get(kGAIClientId), forKey:"GA_CID") // Update the identifiers UAirship.shared().analytics.associateDeviceIdentifiers(identifiers)
// Get the Google Analytic tracker ID String clientId = GoogleAnalytics.getInstance(getContext()).getClientId(); // Associate the identifiers UAirship.shared().getAnalytics() .editAssociatedIdentifiers() .addIdentifier("GA_CID", clientId) .apply();
- Open your messaging project and go to Settings » Real-Time Data Streaming.
- Under Real-Time Data Streaming, click Google Analytics.
Previously configured integrations are listed under Enabled Integrations.
- Configure a new Google Analytics integration:
- Enter a user-friendly name and description.
- Enter the Google Analytics Tracking ID for your app. If you do not have this, contact your iOS or Android developer.
- Select the event types you want to pass to Google Analytics.
- Click Save.
Now that you have configured your app and your Airship integration, you can create event-based Segments in Google Analytics. See Airship-Google Analytics Event Mapping below for details on mapping Airship events to Google Analytics events.
Google Analytics Dashboard
Airship-Google Analytics Event Mapping
|Airship Event||GA Event Category||GA Event Action||GA Event Label|
|Airship||Send||The group ID, if present, or the push ID, if there is no Group ID|
|Airship||Direct Open from Push||The triggering group ID, if present, or the push ID, if there is no Group ID See Push ID and Group ID|