简体   繁体   English

Flutter 应用计数 Google Analytics 事件两次

[英]Flutter App Counting Google Analytics Events TWICE

I am logging some predefined event and custom events on my flutter app using Google Analytics through the below way:我通过以下方式使用 Google Analytics 在我的 flutter 应用程序上记录一些预定义事件和自定义事件:

 FirebaseAnalytics.instance.logEvent(
          name: "select_content",
          parameters: {
            "content_type": "BusinessProfile",
            "item_id": selectedbusinessprofileid,
            "user_id": globaluserid,
            "Access_Method": "Ad",
            "Ad_Method": "CategoriesBoard",
            "Gender": globalusergender,
            "City": globaluserdefaultcity,
          },
        );

         FirebaseAnalytics.instance.logEvent(
    name: "New_Business_Profile",
    parameters: {
      "category": bpaddselectedcategory,
      "Gender": globalusergender,
      "City": globaluserdefaultcity,
    },
  );

the problem is that each event is logged TWICE in google analytics dashboard, in both debug view and production view.问题是每个事件在调试视图和生产视图中都在谷歌分析仪表板中记录了两次。 the behavior is for both predefined events like "select_content" and any other customer event I create like "New_Business_Profile".该行为适用于预定义事件(如“select_content”)和我创建的任何其他客户事件(如“New_Business_Profile”)。

I did some search, some mentioned I need to remove the events I've created from Google Analytics Admin.我进行了一些搜索,其中一些提到我需要从 Google Analytics Admin 中删除我创建的事件。 I did and delete it, the events are still counting twice like this.我删除了它,事件仍然像这样计数两次。

像这样

any idea what is the reason of this problem or how can I solve it?知道这个问题的原因是什么或者我该如何解决?

Edit: Solved in Debug mode, Removing the events from Google Analytics Admin solved the issue in Debug mode but it took around two hours to be corrected.编辑:在调试模式下解决,从 Google Analytics Admin 中删除事件解决了调试模式下的问题,但需要大约两个小时才能更正。 will check the production mode in 24 hours and report if solved too.将在 24 小时内检查生产模式,并在解决后报告。

Edit: Worked fine on live too.编辑:在现场也工作得很好。

I suggest you to use Dart Debugger and breakpoints.我建议你使用 Dart 调试器和断点。 Most likely your code is invoked more than once.您的代码很可能被多次调用。

暂无
暂无

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

相关问题 在 Google Analytics(React 应用程序)中跟踪自定义事件 - Keeping track of custom events in Google Analytics (React app) flutter 应用程序 - 使用谷歌分析数据的趋势帖子 api - flutter app - trending posts by using google analytics data api Flutter:缺少 google_app_id。 Firebase 禁用分析 - Flutter: Missing google_app_id. Firebase Analytics disabled 无论如何,是否可以在 Google Analytics 中查看我从 Firebase 应用程序记录的(自定义)事件? - Is there anyway to see the (custom) events that I logged from my Firebase app in Google Analytics? 如何在 flutter 小部件中跟踪谷歌分析事件? - How to track google analytics event in a flutter widget? Firebase 事件的 Google Analytics,因为 Google Ads 中的转化不适用于 Android - Google Analytics for Firebase events as conversions in Google Ads not working for Android 使用 firebase SDK 在我的 React 应用程序上进行 Google 分析 - Google analytics on my React app with firebase SDK 归档 ios 时找不到模块“firebase_analytics”(Flutter 应用程序) - Module 'firebase_analytics' not found when archiving ios(Flutter app) Sending Google Analytics Events via API: How to get app_instance_id or client_id from Firebase SDK from web client? - Sending Google Analytics Events via API: How to get app_instance_id or client_id from Firebase SDK from web client? 无法从 Google Measurement Protocol (Google Analytics v4) 接收事件 - Cannot receive events from Google Measurement Protocol (Google Analytics v4)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM