notification_send
AutomaticappAutomatically triggered when a notification is sent by Firebase Cloud Messaging (FCM) through Firebase Notifications / Messaging analytics integration.
- Platforms
- app
- When it fires
- Collected automatically; no code needed.
Parameters (7)
| 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 | - | - | - | - |
Example
gtag.js
gtag('event', 'notification_send', {
message_name: '...',
message_time: '...',
message_device_time: '...',
message_id: '...',
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'notification_send',
message_name: '...',
message_time: '...',
message_device_time: '...',
message_id: '...',
});