I have a very specific question for web push notification via the FCM: how do I add analytics labels to my notifications?
According to the documentation:
Labeling messages is very useful for custom analysis, allowing you to filter delivery statistics by labels or sets of labels. You can add a label to any message sent via the HTTP v1 API by setting the fcmOptions.analyticsLabel field in the message object
I am sending my push notification via a Node.js Firebase Cloud Function using the messaging.send(Message) method. When I read the documentation of the Message object I understand that the only place to set this label in my case is here:
{
...
fcmOptions: {analyticsLabel: [string}
...
}
Is this correct? This answer on SO also seems to indicate so
I have done this and I still dont see the label appearing in my Firebase Console, by this I mean when I go to https://console.firebase.google.com/u/0/project/{myprojectname}/notification/reporting and I try to filter by data I get no data:
