我可以从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 Assistant动作.我还想将自定义事件记录到项目Analytics实例中.是否有可能做到这一点?我是否需要使用Firebase Admin框架,以便它可以自动访问Google 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从Web或移动应用程序本身直接记录它们.

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天全站免登陆