简体   繁体   English

Firebase:将分析和崩溃数据报告给单独的项目

[英]Firebase: Reporting Analytics and Crash Data to Separate Projects

Recently I came across this article from firebase, which details how to access multiple projects from a single application. 最近我从firebase中看到了这篇文章 ,其中详细介绍了如何从单个应用程序访问多个项目。 This is great, and potentially very useful, however I have been unable to find a way to separate out using Analytics and Crash reporting into separate projects. 这很好,而且可能非常有用,但是我无法找到将Analytics和Crash报告分离到单独项目中的方法。

The reason we would like to do this is so that our clients have full access to their analytics, whilst keeping the crash logs in a different project that only we can access. 我们之所以这样做是因为我们的客户可以完全访问他们的分析,同时将崩溃日志保存在我们只能访问的不同项目中。

I did see that on the article it states: 我确实在文章中看到了这一点:

Note: On Android and iOS, Analytics are only logged for the default app. 注意:在Android和iOS上,只会针对默认应用记录Google Analytics。

which would be fine, provided we can change where the crashes are logged, but I haven't seen any mention of Crashlytics in this. 如果我们可以更改崩溃记录的位置,那会没事的,但我还没有看到任何关于Crashlytics的内容。

I guess the question comes down to is it possible to do this, or is it something that is not (yet) supported? 我想这个问题归结为是否有可能做到这一点,还是它还没有得到支持?

Mike @ Google here. 迈克@谷歌在这里。

Firebase now supports more granular permissions, so you should be able to grant only Google Analytics access to a client without exposing the rest of Firebase data/functionality to them. Firebase现在支持更细化的权限,因此您应该只能向客户端授予Google Analytics访问权限,而不会向其公开其余的Firebase数据/功能。 To do so, you can use the "Assign Firebase Roles" feature when you are adding them to the project - likely you would select the Analytics View role for your client users. 为此,您可以在将项目添加到项目时使用“分配Firebase角色”功能 - 您可能会为客户端用户选择“分析视图”角色。 Please see IAM overview for more details. 有关详细信息,请参阅IAM概述

Supporting more than one client with a common Crashlytics project is not feasible. 使用常见的Crashlytics项目支持多个客户端是不可行的。 The article you referenced on multi-project setup works at a high level for other Firebase features, but Crashlytics benefits from Analytics data to provide user-level metrics for impacted users. 您在多项目设置中引用的文章在其他Firebase功能的高级别工作,但Crashlytics从Google Analytics数据中受益,为受影响的用户提供用户级指标。 As you note, Analytics data will only be logged for the first app configuration, so Crashlytics would not deliver the best reporting without Analytics info. 如您所知,只会针对第一个应用配置记录Google Analytics数据,因此如果没有Google Analytics信息,Crashlytics将无法提供最佳报告。

In this scenario, I'd recommend you split each client's app into individual projects, and grant each client user only Analytics View access to their corresponding app's project via the IAM overview method described above. 在这种情况下,我建议您将每个客户的应用程序拆分为单个项目,并通过上述IAM概述方法向每个客户端用户授予仅对其相应应用程序项目的Analytics View访问权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM