我可以从 Cloud Function 将自定义事件记录到 Firebase Analytics 吗? [英] Can I log a custom event to Firebase Analytics from a Cloud Function?

本文介绍了我可以从 Cloud Function 将自定义事件记录到 Firebase Analytics 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通过 Cloud Function 执行 Firebase 的 Google 助理操作.我还想将自定义事件记录到项目 Analytics 实例中.是否有可能做到这一点?我是否需要使用 Firebase 管理框架才能自动访问 Analytics 实例?

I have a Google Assistant action with Firebase fulfilment via Cloud Function. I would like to also log custom events to the projects Analytics instance. Is it possible to do this? Do I need to use the Firebase Admin framework so it has automatic access to the Analytics instance?

推荐答案

无法从后端代码记录分析事件.它们只能使用提供的客户端 SDK 直接从网络或移动应用程序本身进行记录.

It's not possible to log analytics events from backend code. They can only be logged directly from the web or mobile app itself using the provided client SDK.

这篇关于我可以从 Cloud Function 将自定义事件记录到 Firebase Analytics 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆