Skip to main content

Google Analytics for Firebase


This is a beta FlutterFire plugin and therefore is not yet production quality.

What does it do?#

Google Analytics is a free app measurement solution that provides insight on app usage and user engagement. Analytics reports help you understand clearly how your users behave, which enables you to make informed decisions regarding app marketing and performance optimizations.


1. Add dependency#

sdk: flutter
firebase_core: "^0.7.0"
firebase_analytics: "^7.0.1"

2. Download dependency#

$ flutter pub get

3. (Web Only) Add the SDK#

If using FlutterFire on the web, add the firebase-analytics JavaScript SDK to your index.html file:

<script src=""></script>
<script src=""></script>

4. Rebuild your app#

Once complete, rebuild your Flutter application:

$ flutter run

Next Steps#

Once installed, you're ready to start using Firebase Analytics in your Flutter Project.

Additional documentation will be available once the Firebase Analytics plugin update lands as part of the FlutterFire roadmap.