Skip to content

🐛 [firebase_analytics] first_open event is being fired many times by same app instance #4045

@alectogeek

Description

@alectogeek

Bug report

I'm comparing data from different analytics services and see that first_open in firebase_analytics is duplicated (or even worse).
For example, in Android:

First_open: 1 Nov (comparison with appsFlyer):
AppsFlyer 267
Firebase 475

First_open: 1 Nov (comparison with google ads considering compaign)
Google Ads report: 122
Firebase (Audience: adsCompaign): 231 

So the difference is up to 47 percent!

Then I went to BigQuery and tried to understand what is going on.

My query was:

SELECT user_pseudo_id FROM `analytics_210753586.*`, UNNEST(user_properties) AS user_properties, UNNEST(event_params) AS event_params  
WHERE 
  event_name = 'first_open' AND
  user_properties.key = "first_open_time" 
  AND CAST(user_properties.value.int_value AS int64) BETWEEN 1604098800000 AND 1604185200000
  AND device.operating_system = 'ANDROID'

and I could see that the first_open event is duplicated 7 times each! For iOS the duplication is 6 times for each. But here I'm not sure if my query is correct.

My custom events sending using FirebaseAnalytics().logEvent() seems to be ok.

Firebase analytics package version is firebase_analytics 6.0.1 for android and 6.1.0 for iOS.

Flutter doctor

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, 1.20.4, on Mac OS X 10.15.7 19H2, locale en-RU)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.50.1)
[✓] Connected device (1 available)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions