Use Google Analytics data for audience segmentation
Google Analytics Integration requires CSV Push enabled in your account.
Google Analytics User ID feature lets you collect and apply comprehensive user data by connecting multiple data resources to the same users.
Connect Pushwoosh with Google Analytics and use GA data for audience segmentation and targeting your push notifications campaigns. Let's see how it works.
Create a Custom HTML Tag firing on All Pages trigger.
Use the following code to set up User ID that matches the user data between Pushwoosh and Google Analytics.
var registrationStatus = localStorage.deviceRegistrationStatus;
var registrationId = localStorage.deviceRegistrationId;
var gaRegistered = registrationStatus ==='registered'? registrationId :false;