简体   繁体   English

删除 firebase 分析事件

[英]Delete firebase analytics events

Is there any way or some kind of "hack" to immediately delete events logged in to my firebase or google analytics project?有什么方法或某种“黑客”可以立即删除登录到我的 firebase 或谷歌分析项目的事件? I heard that it is possible to create some kind of cloud function which is eligible to delete events, but I was unable to find any clue how to do it after several hours of googling.我听说可以创建某种可以删除事件的云 function,但是经过几个小时的谷歌搜索,我找不到任何线索。

The Google Analytics User Deletion API allows to process deletions of data associated with a given user identifier Requesting data deletions . Google Analytics 用户删除 API 允许处理与给定用户标识符相关的数据删除请求数据删除 There is a drop down menu on the top right corner of the events dashboard.事件仪表板的右上角有一个下拉菜单。 You have a ton of options and you can even set a custom time frame.您有很多选择,甚至可以设置自定义时间范围。

As far as doing this from Functions, it's a microservice;就从 Functions 执行此操作而言,它是一个微服务; if there is an API to call and you have credentials, you can do it from Functions.如果要调用 API 并且您有凭据,则可以从 Functions 执行此操作。

Cloud Functions supports Google Analytics AnalyticsEvent . Cloud Functions 支持 Google Analytics AnalyticsEvent With Cloud Functions, you can access conversion events you have logged and trigger functions based on those events.借助 Cloud Functions,您可以访问已记录的转化事件并根据这些事件触发函数。 This event is triggered whenever user activity generates a conversion event.只要用户活动产生转化事件,就会触发此事件。 you could write a function that triggers when the event is generated, indicating that event has occurred.您可以编写一个 function ,它在事件生成时触发,表明该事件已发生。

Google Analytics for Firebase triggers the log event. Google Analytics for Firebase 触发日志事件。 This is a powerful event type, since any action that a user takes in your app can be logged and in turn trigger a function.这是一种强大的事件类型,因为用户在您的应用程序中执行的任何操作都可以记录下来,进而触发 function。

For example, you could write a function that triggers when the in_app_purchase event is generated, indicating that an in-app purchase has occurred.例如,您可以编写一个 function,当in_app_purchase event时触发,表明发生了应用内购买。 You must specify the Analytics event that you want to trigger your function using the functions.analytics.event() method, and handle the event within the onLog() event handler:您必须使用functions.analytics.event()方法指定要触发 function 的 Analytics 事件,并在onLog()事件处理程序中处理该事件:

exports.sendCouponOnPurchase = functions.analytics.event('in_app_purchase').onLog((event) => {
  // Your code to handle delete
});

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

相关问题 在 firebase 分析调试视图中看不到事件 - Cannot see events in firebase analytics debug view 在 Firebase 分析控制台 (Swift) 中记录自定义事件 - Logging custom events in the Firebase Analytics console (Swift) 在 do.net core 中添加 Firebase Log Events (Analytics) - Add Firebase Log Events (Analytics) in dotnet core Firebase 分析受众编辑/删除已禁用 - Firebase analytics Audience edit/delete disabled 如何在 firebase 分析自定义事件中将对象数组作为参数传递 - How to pass array of objects as parameter in firebase analytics custom events 如果 Firebase Analytics 上的事件数超过 500,会发生什么情况? - What would happen if # of events exceeds 500 on Firebase Analytics? Firebase 分析不提供自定义事件详细信息(总计)0 项 - Firebase analytics not give Custom events details instead (total) 0 items Firebase iOS 的分析——带有预定义事件的自定义参数 (Swift) - Firebase Analytics for iOS — custom parameters with predefined events (Swift) Firebase 事件的 Google Analytics,因为 Google Ads 中的转化不适用于 Android - Google Analytics for Firebase events as conversions in Google Ads not working for Android FDL 记录失败。 将 Firebase Analytics 的依赖项添加到您的应用程序以启用动态链接事件的日志记录 - FDL logging failed. Add a dependency for Firebase Analytics to your app to enable logging of Dynamic Link events
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM