0

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

Jerrich
  • 21
  • 2
  • can you check this stackoverflow [link1](https://stackoverflow.com/questions/62013264/cant-log-an-analytics-event-on-firebase-cloud-function) & [link2](https://stackoverflow.com/questions/53688942/firebase-analytics-log-events-with-cloud-functions) – Sathi Aiswarya Mar 19 '23 at 09:51

0 Answers0