notification_receive
AutomaticappAutomatically triggered when a notification sent by FCM is received by a device when the app is in the background Android only
- Platforms
- app
- When it fires
- Collected automatically; no code needed.
Parameters (8)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| message_name | - | - | FCM Notification Message Name | - |
| message_time | - | - | FCM Notification Message Time (Sent Timestamp) | - |
| message_device_time | - | - | FCM Notification Delivery relative to Device Time | - |
| message_id | - | - | FCM Notification Message ID | - |
| topic | - | - | FCM Notification Topic | - |
| label | - | - | The analytics label can be set when sending the message, in order to mark the message for analytics purposes | - |
| message_channel | - | - | - | - |
| message_type | - | - | The type of the message | - |
Example
gtag.js
gtag('event', 'notification_receive', {
message_name: '...',
message_time: '...',
message_device_time: '...',
message_id: '...',
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'notification_receive',
message_name: '...',
message_time: '...',
message_device_time: '...',
message_id: '...',
});