i want call analytics event on firebase functions
index.js
const admin = require('firebase-admin');
const functions = require("firebase-functions");
var express = require('express');
const app = express.Router();
admin.initializeApp(functions.config().firebase);
app.get('/Test', async (req, res) =>
{
functions.analytics.event("add_payment_info", {
name: "Test",
amount: 10000
});
return res.send("Test");
});
No errors, but the number of events doesn't go up