简体   繁体   English

是否可以重置 Google Analytics for Firebase?

[英]Is it possible to reset Google Analytics for Firebase?

I figured out how to let Firebase ignore my device from collecting Analytics data, because it distort it a lot.我想出了如何让 Firebase 在收集 Analytics 数据时忽略我的设备,因为它会严重扭曲数据。 But how is it possible to reset the analytics?但是如何重置分析呢?

While you cannot reset data for the entire project, as of more recent SDK versions, GDPR functionality has provided a way to delete data for a specific device.虽然您无法重置整个项目的数据,但从更新的 SDK 版本开始,GDPR 功能提供了一种删除特定设备数据的方法。 So while you should still use a staging project separate from your prod data, if you do end up needing to delete test device data, this can be done with this process .因此,虽然您仍应使用与生产数据分开的暂存项目,但如果您最终需要删除测试设备数据,则可以通过此过程来完成。

Call resetAnalyticsData to remove Analytics client data and reset the app id.调用resetAnalyticsData以删除 Analytics 客户端数据并重置应用程序 ID。 Use the User Deletion API to remove data from the Analytics servers for a specific device.使用用户删除 API从特定设备的分析服务器中删除数据。

You can request data deletion on specific event and parameters on Google Analytics.您可以在 Google Analytics 上请求删除特定事件和参数的数据。 https://support.google.com/analytics/answer/9940393?hl=en https://support.google.com/analytics/answer/9940393?hl=en

As of now, there is no such way where you can 'RESET' Firebase Analytics.到目前为止,还没有这样的方法可以“重置”Firebase Analytics。 I think that applies to Google Analytics as well.我认为这也适用于 Google Analytics。

Like you mentioned you can filter your device but then you can't set it to zero.就像你提到的,你可以过滤你的设备,但你不能将它设置为零。 A workaround would be to adding new events and filters, having custom comparison et al.一种解决方法是添加新事件和过滤器,进行自定义比较等。

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

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