- 03 Apr 2024
- 3 Minutes to read
Sending InApp and App Push Events to Google Analytics 4
- Updated on 03 Apr 2024
- 3 Minutes to read
After launching your App Templates and App Push campaigns successfully, you can send InApp seen events for app templates and click events for app push campaigns to your Google Analytics 4 (GA4) account.
To start sending your Insider events to GA4, you should complete the following steps:
GA4 Configuration
You will need your GA4 Measurement ID and API Secret Value from your GA4 account to complete this integration. To get these values:
1. Navigate to Admin > Property > Data Streams.
2. Click the stream you want to send events to.
3. Copy the Measurement ID, and save it to add it to your Inone panel later.
4. Scroll down on the same window to go to Measurement Protocol API Secrets to create a secret key.
5. Click the Create button.
6. Add any nickname to your API secret, and click the Create button.
7. Copy the secret value, and save it to add it to your Inone panel.
Inone Settings
You need to add the GA4 Measurement ID and API Secret Value you saved in the previous step to your Mobile App Settings. To add these values:
1. Go to your Inone > Settings > Mobile App Settings.
2. Go to the General tab to scroll down to Google Analytics Measurement ID and Google Analytics API Secret fields. Paste the measurement ID and secret value you copied from your Google Analytics 4 account.
After completing this configuration, you can test your events on your GA4 account.
Testing Events
Once you complete your integration, you can test your integration following these steps:
1. Go to your app to view your live app templates or receive an app push to trigger some events on your campaigns such as clicks, closes, etc.
2. On your GA4 account, you can view your events in Realtime or Reports.
On both pages, you can see your inApp seen and click events from your app template and app push campaigns.
The event name can include the campaign type, push type, variant ID, variant name, template element, and the event itself. For example, if you click the close button in Variant A with 4372 ID of your InApp campaign, the event name would be Inapp_4372_VariantA_Inapp_close_button_click.
To get a better understanding on all events you can send from app templates to your GA4 account, you can see the list below.
App Template Events
Event | Description |
---|---|
Wp_button_click | Click on the WhatsApp Trigger button |
WoF_spin_button_click | Click on the Spin button on Wheel of Fortune |
WoF_copy_button_click | Click on the Copy button on Wheel of Fortune |
WoF_page1_close_button_click | Click on the Close button on the Page 1 on Wheel of Fortune |
WoF_page2_close_button_click | Click on the Close button on the Page 2 on Wheel of Fortune |
WoF_secondary_button_click | Click on the secondary button on Wheel of Fortune |
Scratch_copy_button_click | Click on the Copy button on Scratch Coupon |
Scratch_page1_close_button_click | Click on the Close button on the Page 1 on Scratch Coupon |
Scratch_page2_close_button_click | Click on the Close button on the Page 2 on Scratch Coupon |
Scratch_page1_overlay_click | Click on the Overlay on the Page 1 on Scratch Coupon |
Scratch_page2_overlay_click | Click on the Overlay on the Page 2 on Scratch Coupon |
Scratch_secondary_button_click | Click on the secondary button on Scratch Coupon |
Scratch_page1_image_button_click | Click on the Image on the Page 1 on Scratch Coupon |
Scratch_page2_image_button_click | Click on the Image on the Page 2 on Scratch Coupon |
Sp_close_button_click | Click on the Close button on Social Proof |
Inapp_button_1_click | Click on the Button 1 on InApp |
Inapp_button_2_click | Click on the Button 2 on InApp |
Inapp_image_click | Click on the Image on InApp |
Inapp_copy_button_click | Click on the Copy button on InApp |
Inapp_close_button_click | Click on the Close button on InApp |
Inapp_overlay_click | Click on the Overlay on InApp |
LeadGen_submit_button_click | Click on the Submit button on Lead Generation |
LeadGen_copy_button_click | Click on the Copy button on Lead Generation |
LeadGen_page1_close_button_click | Click on the Close button on the Page 1 of Lead Generation |
LeadGen_page2_close_button_click | Click on the Close button on the Page 2 of Lead Generation |
LeadGen_page1_overlay_click | Click on the Overlay on the Page 1 of Lead Generation |
LeadGen_page2_overlay_click | Click on the Overlay on the Page 2 of Lead Generation |
LeadGen_button_2_click | Click on the Button 2 on Lead Generation |
LeadGen_image_click | Click on the Image on Lead Generation |