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.
To enable User ID feature in your Google Analytics account, follow the Google guide: https://support.google.com/analytics/answer/3123666
To integrate Pushwoosh SDK in your Google Tag Manager, follow the Web Push SDK guide.
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.
Modify your Page View tag to include User ID if it is known for the user:
To test the integration, use "User ID coverage report": https://support.google.com/analytics/answer/3123670
Select your User ID reporting view in Google Analytics. Add any segments there to slice and dice your audience.
You can see your User IDs displayed in "User ID" column.
Press the Export button and select the “CSV” option.
Navigate to CSV Push tab in your Pushwoosh Control Panel and upload the CSV file exported in the previous step.
Select the first column and choose “User ID” for the Data Type. Select a preset in the corresponding dropdown field, set the date (if necessary), and click Woosh!
You've just sent a push notification to your users from Google Analytics!