Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is google analytics data not being collected for my android Flutter app?

I have released the android app and the iOS app of my Flutter project. In my project, I have used firebase_messaging and firebase_remote_config libraries and both of these features are properly working in both android and iOS app. Google Analytics is enabled in the Firebase project. From the analytics dashboard, it is seen that the analytics data (e.g. daily active users, first_open event etc) are automatically being collected for the iOS app, but not for the android app.

I have properly followed Steps 1-3 mentioned here in the official documentation. However, in the dashboard I am getting the following for android.

enter image description here

What point am I missing in android project setup? Is this related to SHA certificate fingerprint? Currently, I have only SHA-1 added.

How do I resolve this?

like image 924
Sujal Avatar asked Oct 14 '25 08:10

Sujal


1 Answers

You don't need to include an SHA certificate in production. This is optional, just for testing.

Did you follow the documentation correctly? Please double check in case you missed a step.

Please make sure that you add a firebase analystics observer into page navigations. For just to test it, as per the documentation:

https://pub.dev/packages/firebase_analytics

MaterialApp(
  home: MyAppHome(),
  navigatorObservers: [
    FirebaseAnalyticsObserver(analytics: FirebaseAnalytics()),
  ],
);
like image 138
Dan Gerchcovich Avatar answered Oct 17 '25 02:10

Dan Gerchcovich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!