Skip to main content

Google Analytics for Firebase

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.

Installation#

1. Make sure to initialize Firebase#

Follow this guide to install firebase_core and initialize Firebase if you haven't already.

2. Add dependency#

On the root of your Flutter project, run the following command to install the plugin:

flutter pub add firebase_analytics

3. Rebuild your app#

Once complete, rebuild your Flutter application:

flutter run

4. (optional) Apple App Tracking Transparency#

If you wish to use Firebase Analytics without IDFA collection capability, open your /{ios|macos}/Podfile and add the following global variable to the top of the file:

$FirebaseAnalyticsWithoutAdIdSupport = true

Next Steps#

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

View the Usage documentation to get started.