Basically, whenever an event (specified by the user) is logged in Firebase Analytics (Google Analytics for Firebase) the extension will be triggered to send a message (notification) to the slack channel (specified by the user).
The trigger function:
functions.analytics.event('in_app_purchase').onLog((event) => {
// Send the notification message to the user-specified channel in Slack.
});
Basically, whenever an event (specified by the user) is logged in Firebase Analytics (Google Analytics for Firebase) the extension will be triggered to send a message (notification) to the slack channel (specified by the user).
The trigger function:
Here's an example of using slack API in cloud functions, which might be helpful 👉 https://github.com/firebase/functions-samples/tree/main/github-to-slack
What next?