If you use the Google Analytics SDK, you can add a tracker in your Accengage campaigns in order to measure its performances directly in the GA console.
In order to allow Accengage to transfer the trackers to GA, you need to make sure that the Custom Parameters are correctly tracked by our SDK:
- iOS documentation:
> Push notifications
> Inapp notifications
Android documentation
With Accengage, you can add the trackers using the 'Custom Param' parameter of the campaign. This is compatible with the following channels:
- Push notification reaction
- Inapp display and/or click
- Scheduled alarm reaction
In order to enable the transfer of the parameter to Google Analytics, you need to activate the following features in their console:
- iOS: Activate the iOS campaign tracking.
- Android: You need to add the following code in the broadcastReceiver in order to automatically track all the custom parameters. Related documentation.
Tracker t = ((AnalyticsSampleApp) context.getApplication()).getTracker(TrackerName.APP_TRACKER); HitBuilders.ScreenViewBuilder screenViewBuilder = new HitBuilders.ScreenViewBuilder(); Set<String> extras = intent.getExtras().keySet(); for (String extra : extras) { screenViewBuilder.set(extra, intent.getExtras().get(extra)); } t.send(screenViewBuilder.build());
Once activated, you can define UTM Custom parameters to track your campaigns in GA:
Key: UTM
Value: utm_source=accengage&utm_medium=push&utm_campaign=welcome&utm_content=install_1_d