📄️ Setting up the webhook
The webhook is the URL that the Metric server will use to send the collected data to your server. To receive the data, you need to set up a webhook URL in the dashboard.
📄️ Data format
Request body format
📄️ Security
Data over webhook notify the application that new user data is available to retrieve. Without added security, attackers may post false notifications to your endpoints, causing fake data to be stored. Therefore, it's important to confirm the notifications are coming from Metric.
📄️ Webhook failures
When you set up your webhook to receive data from Metric, you expect it to be always up and running. However, sometimes things can go wrong and the webhook might not be available to receive the data that we send. In this case, we consider the webhook to have failed.
📄️ Firebase integration
If you are using Firebase as your backend, you can integrate Metric by using Firebase Cloud Functions. Firebase Cloud Functions allow you to run server-side code in response to events and HTTPS requests. Metric can send data to your Firebase Cloud Function through a webhook, which allows you to store the data in your Firebase database.