Firebase:报告分析和崩溃数据以分离项目 [英] Firebase: Reporting Analytics and Crash Data to Separate Projects

查看:65
本文介绍了Firebase:报告分析和崩溃数据以分离项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我从firebase中碰到了这篇文章,其中详细介绍了如何访问多个项目从单个应用程序.这很好,并且可能非常有用,但是我一直无法找到一种方法来使用Google Analytics(分析)和崩溃报告将其分离到单独的项目中.

Recently I came across this article from firebase, which details how to access multiple projects from a single application. 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.

之所以这样做,是因为我们的客户可以完全访问他们的分析数据,同时将崩溃日志保存在一个只有我们可以访问的项目中.

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:

注意:在Android和iOS上,仅记录默认应用的Analytics(分析).

Note: On Android and iOS, Analytics are only logged for the default app.

这很好,只要我们可以更改崩溃记录的位置,但是我没有看到有关Crashlytics的任何报道.

which would be fine, provided we can change where the crashes are logged, but I haven't seen any mention of Crashlytics in this.

我想问题归结为有可能做到这一点,还是尚不支持的事情?

I guess the question comes down to is it possible to do this, or is it something that is not (yet) supported?

推荐答案

Mike @ Google在这里.

Mike @ Google here.

Firebase现在支持更精细的权限,因此您应该只能向客户端授予Google Analytics(分析)访问权限,而不会向客户端公开其余的Firebase数据/功能.为此,您可以在将其添加到项目中时使用分配Firebase角色"功能-可能会为客户用户选择Analytics(分析)视图角色.有关更多详细信息,请参见 IAM概述.

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. 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. Please see IAM overview for more details.

用一个常见的Crashlytics项目支持多个客户是不可行的.您在多项目设置中引用的文章在其他Firebase功能方面具有较高的水平,但是Crashlytics从Analytics(分析)数据中受益,可以为受影响的用户提供用户级指标.如您所述,Analytics数据只会记录第一个应用程序的配置,因此,如果没有Analytics(分析)信息,Crashlytics不会提供最佳报告.

Supporting more than one client with a common Crashlytics project is not feasible. 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. 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.

在这种情况下,建议您将每个客户端的应用划分为各个项目,并通过

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.

这篇关于Firebase:报告分析和崩溃数据以分离项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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