1

I need log some Firebase Analytic event by Node.js Cloud Function (for example user purchase). How I can do this with API?

Puf say it now possible: https://stackoverflow.com/a/46283769

But this only show how to generate report. How I can log specific event for user with API?

FlutterFirebase
  • 2,163
  • 6
  • 28
  • 60
  • Are you looking for [this](https://cloud.google.com/functions/docs/calling/google-analytics-firebase#:~:text=Google%20Analytics%20for%20Firebase%20provides,are%20supported%20by%20Cloud%20Functions.) ? – Dharmaraj Apr 20 '21 at 12:14
  • I might indeed have missed a link in my answer there. See https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events. I also updated the linked answer. – Frank van Puffelen Apr 20 '21 at 14:53
  • @FrankvanPuffelen Thanks for reply! But how we can call this `logEvent function` you mention? Is `wrapped in the Node.js Admin SDK`? I can not find doc showing how to do – FlutterFirebase Apr 20 '21 at 16:24

0 Answers0