Viewing version 13.0.0. Open the latest package page.

firebase_analytics

13.0.0

Flutter plugin for Google Analytics for Firebase, an app measurement solution that provides insight on app usage and user engagement on Android and iOS.

Download archive

Readme

Firebase Analytics Plugin for Flutter

A Flutter plugin to use the Firebase Analytics API.

To learn more about Firebase Analytics, please visit the Firebase website

pub package

Getting Started

To get started with Firebase Analytics for Flutter, please see the documentation.

Usage

To use this plugin, please visit the Analytics Usage documentation

Issues and feedback

Please file FlutterFire specific issues, bugs, or feature requests in our issue tracker.

Plugin issues that are not specific to FlutterFire can be filed in the Flutter issue tracker.

To contribute a change to this plugin, please review our contribution guide and open a pull request.

Changelog

13.0.0

Note: This release has breaking changes.

  • FIX(apple): build on Firebase Apple SDK 13 and require macOS 11 for Swift packages (#18783). (aca14eab)
  • FIX(android): build on Firebase BoM 35 and require minSdk 24 (#18782). (7555707d)
  • BREAKING FEAT: bump Firebase iOS SDK to 13.0.0 (#18771). (dbf7f754)

12.6.0

  • FEAT(core): bump Firebase iOS SDK to 12.19.0 (#18683). (35e39637)
  • FEAT(analytics,ios): add UIScene support for campaign attribution (#18573). (5cb35640)

12.5.0

  • REFACTOR(core,apple): migrate iOS/macOS plugin implementation to Swift (#18569). (3b9a655b)
  • FIX(ci): bump Kotlin Gradle plugin to 2.3.0 (#18600). (4c3865e2)
  • FIX(ci): align Android toolchain and analyzer with Flutter 3.47 (#18566). (87ace849)
  • FIX(android): remove plugin-local AGP and Kotlin Gradle Plugin pins from buildscript blocks (#18139). (4f6960c4)
  • FEAT: bump Firebase iOS SDK to 12.18.0 (#18596). (07febc37)

12.4.6

  • FIX(app_check): sync SPM pins to 12.17.0 and fix Windows Activate override after #18505 (#18515). (ce1f6e05)

12.4.5

  • Update a dependency to the latest release.

12.4.4

  • Update a dependency to the latest release.

12.4.3

  • FIX(analytics,iOS): update iOS dependency instructions for IDFA-free usage (#18337). (c21fc77b)

12.4.2

  • Update a dependency to the latest release.

12.4.1

  • Update a dependency to the latest release.

12.4.0

12.3.0

  • FEAT: use local firebase_core instead of remote SPM dependency (#18141). (995caf40)

12.2.0

  • FIX(analytics,iOS): Update hashedEmailAddress handling to use hex string conversion (#18060). (80c6cff2)
  • FIX(android): remove kotlin-android since AGP 9 supports it (#18059). (1e39ad1f)
  • FEAT(analytics): add support for items in logEvent (#18097). (2b8517c8)
  • FEAT(analytics,iOS): add support for logTransaction (#17995). (103d7ffa)
  • FEAT(analytics,ios): add support for FirebaseAnalyticsWithoutAdIdSupport with SPM (#18061). (65dbd4bd)
  • FEAT(ios): migrate iOS to UIScene lifecycle (#18054). (3ffa4110)
  • DOCS(analytics): clarify logInAppPurchase API documentation for iOS usage (#18087). (8a2ed9f7)

12.1.3

  • FIX(analytics,iOS): Update hashedPhoneNumber handling to use hex string conversion (#17807). (407c2490)

12.1.2

  • FIX(firebase_analytics): update logInAppPurchase documentation to specify iOS support only (#17968). (b3caa545)

12.1.1

  • Update a dependency to the latest release.

12.1.0

  • FEAT(firebase_analytics): add logInAppPurchase support for iOS (#17851). (e54252c0)

12.0.4

  • Update a dependency to the latest release.

12.0.3

  • Update a dependency to the latest release.

12.0.2

  • Update a dependency to the latest release.

12.0.1

  • Update a dependency to the latest release.

12.0.0

Note: This release has breaking changes.

  • BREAKING FEAT: bump iOS SDK to version 12.0.0 (#17549). (b2619e68)
  • BREAKING FEAT(analytics): remove deprecated methods for breaking change release (#17560). (ea3034d8)
  • BREAKING FEAT: bump Android SDK to version 34.0.0 (#17554). (a5bdc051)

11.6.0

  • FEAT(auth,macos): add support for publish and addApplicationDelegate on macOS FlutterPluginRegistrar (#17518). (376bb6ea)

11.5.2

  • Update a dependency to the latest release.

11.5.1

  • Update a dependency to the latest release.

11.5.0

  • FEAT(analytics): add Pigeon support for firebase_analytics (#17403). (57c09139)

11.4.6

  • Update a dependency to the latest release.

11.4.5

  • Update a dependency to the latest release.

11.4.4

  • Update a dependency to the latest release.

11.4.3

  • FIX(analytics,apple): use correct tag for library name (#17098). (ca28c304)

11.4.2

  • Update a dependency to the latest release.

11.4.1

  • Update a dependency to the latest release.

11.4.0

11.3.6

  • Update a dependency to the latest release.

11.3.5

  • Update a dependency to the latest release.

11.3.4

  • Update a dependency to the latest release.

11.3.3

11.3.2

  • Update a dependency to the latest release.

11.3.1

  • Update a dependency to the latest release.

11.3.0

  • FEAT: bump iOS SDK to version 11.0.0 (#13158). (c0e0c997)
  • DOCS: remove reference to flutter.io and firebase.flutter.dev (#13152). (5f0874b9)

11.2.1

  • Update a dependency to the latest release.

11.2.0

  • FEAT(analytics,web): add support for options on Web (#12914). (dd7ce8c2)

11.1.0

  • FEAT(analytics,ios): add support for initiateOnDeviceConversionMeasurementWithPhoneNumber and initiateOnDeviceConversionMeasurementWithHashedEmailAddress (#12976). (1e25ec1e)

11.0.1

  • Update a dependency to the latest release.

11.0.0

Note: This release has breaking changes.

  • BREAKING REFACTOR: android plugins require minSdk 21, auth requires minSdk 23 ahead of android BOM >=33.0.0 (#12873). (52accfc6)
  • BREAKING REFACTOR: bump all iOS deployment targets to iOS 13 ahead of Firebase iOS SDK v11 breaking change (#12872). (de0cea2c)
  • BREAKING REFACTOR(analytics): remove deprecated API ahead of breaking change release (#12858). (f22f46a1)
  • BREAKING FIX(analytics): fix typing of event parameters to Map<String, Object>? (#12427). (3705ee1b)

10.10.7

  • Update a dependency to the latest release.

10.10.6

  • Update a dependency to the latest release.

10.10.5

  • Update a dependency to the latest release.

10.10.4

  • Update a dependency to the latest release.

10.10.3

  • Update a dependency to the latest release.

10.10.2

  • Update a dependency to the latest release.

10.10.1

  • Update a dependency to the latest release.

10.10.0

  • FEAT(android): Bump compileSdk version of Android plugins to latest stable (34) (#12566). (e891fab2)

10.9.0

10.8.10

  • Update a dependency to the latest release.

10.8.9

  • Update a dependency to the latest release.

10.8.8

  • Update a dependency to the latest release.

10.8.7

  • Update a dependency to the latest release.

10.8.6

  • Update a dependency to the latest release.

10.8.5

  • Update a dependency to the latest release.

10.8.4

  • Update a dependency to the latest release.

10.8.3

  • Update a dependency to the latest release.

10.8.2

  • Update a dependency to the latest release.

10.8.1

  • FIX(analytics): setCurrentScreen() was deprecated, using logScreenView() instead (#12085). (c6341b92)
  • DOCS: change old documentation links of packages in README files (#12136). (24b9ac7e)

10.8.0

  • FEAT(analytics,ios): add support for initiateOnDeviceConversionMeasurement using email address or phone number (#11926). (9bc83f1e)

10.7.4

  • Update a dependency to the latest release.

10.7.3

  • FIX(analytics): fix the toString method on AnalyticsEventItem to print out its content (#11977). (5fe96ece)

10.7.2

  • Update a dependency to the latest release.

10.7.1

  • Update a dependency to the latest release.

10.7.0

  • FEAT(firebase_analytics): allow custom parameters (strings and numbers) for events and event items (#11030). (81dfec93)

10.6.4

  • Update a dependency to the latest release.

10.6.3

  • Update a dependency to the latest release.

10.6.2

  • Update a dependency to the latest release.

10.6.1

  • Update a dependency to the latest release.

10.6.0

10.5.1

  • Update a dependency to the latest release.

10.5.0

  • FEAT(firebase_analytics): support getSessionId for android and apple platforms (#11478). (13aaf03d)

10.4.5

  • Update a dependency to the latest release.

10.4.4

  • Update a dependency to the latest release.

10.4.3

  • Update a dependency to the latest release.

10.4.2

  • Update a dependency to the latest release.

10.4.1

  • Update a dependency to the latest release.

10.4.0

  • FEAT: update dependency constraints to sdk: '>=2.18.0 <4.0.0' flutter: '>=3.3.0' (#10946). (2772d10f)
  • FEAT: update libraries to be compatible with Flutter 3.10.0 (#10944). (e1f5a5ea)

10.3.0

10.2.1

  • Update a dependency to the latest release.

10.2.0

10.1.6

  • Update a dependency to the latest release.

10.1.5

  • Update a dependency to the latest release.

10.1.4

  • Update a dependency to the latest release.

10.1.3

  • Update a dependency to the latest release.

10.1.2

  • Update a dependency to the latest release.

10.1.1

  • REFACTOR: upgrade project to remove warnings from Flutter 3.7 (#10344). (e0087c84)
  • DOCS: add more documentation for logEvent (#10389). (8755d776)

10.1.0

  • FEAT: update logEvent() & setDefaultParameters() to assert input types. (#9520). (bac87e96)

10.0.8

  • Update a dependency to the latest release.

10.0.7

  • Update a dependency to the latest release.

10.0.6

  • Update a dependency to the latest release.

10.0.5

  • Update a dependency to the latest release.

10.0.4

  • Update a dependency to the latest release.

10.0.3

  • Update a dependency to the latest release.

10.0.2

  • Update a dependency to the latest release.

10.0.1

  • Update a dependency to the latest release.

10.0.0

Note: This release has breaking changes.

  • BREAKING FEAT: Firebase iOS SDK version: 10.0.0 (#9708). (9627c56a)

9.3.8

  • Update a dependency to the latest release.

9.3.7

  • Update a dependency to the latest release.

9.3.6

  • FIX: suppress unchecked warnings that aren't necessary (#9532). (3ebd4593)

9.3.5

  • REFACTOR: deprecate signInWithAuthProvider in favor of signInWithProvider (#9542). (ca340ea1)

9.3.4

  • Update a dependency to the latest release.

9.3.3

  • Update a dependency to the latest release.

9.3.2

  • Update a dependency to the latest release.

9.3.1

  • Update a dependency to the latest release.

9.3.0

  • FEAT: retrieves appInstanceId property on native platforms if available (#8689). (7132d771)

9.2.1

  • FIX: allow null values for setDefaultEventParameters() which removes defaults. Permissible on android and iOS. (#9135). (dff46a3f)

9.2.0

  • FEAT: upgrade to support v9.8.1 Firebase JS SDK (#8235). (4b417af5)

9.1.12

  • FIX: bump firebase_core_platform_interface version to fix previous release. (bea70ea5)

9.1.11

  • Update a dependency to the latest release.

9.1.10

  • REFACTOR: remove deprecated Tasks.call for android and replace with TaskCompletionSource. (#8583). (94310ab3)
  • REFACTOR: use firebase.google.com link for homepage in pubspec.yaml (#8726). (ab2cdfcd)
  • REFACTOR: use "firebase" instead of "FirebaseExtended" as organisation in all links for this repository (#8791). (d90b8357)
  • DOCS: point to "firebase.google" domain for hyperlinks in the usage section of README.md files (for the missing packages) (#8818). (5bda8c92)

9.1.9

  • Update a dependency to the latest release.

9.1.8

  • Update a dependency to the latest release.

9.1.7

  • Update a dependency to the latest release.

9.1.6

  • REFACTOR: Update deployment target to 10.0 for Firebase Analytics podspec. (#8371). (fe709da9)

9.1.5

  • Update a dependency to the latest release.

9.1.4

  • FIX: Send default parameters for iOS when using setDefaultEventParameters() API. (#8402). (7d3e5ba6)

9.1.3

  • Update a dependency to the latest release.

9.1.2

  • FIX: update all Dart SDK version constraints to Dart >= 2.16.0 (#8184). (df4a5bab)

9.1.1

  • DOCS: code comment typo - logAdImpression mentions wrong event (#8180). (960a75a7)

9.1.0

  • FEAT: Improve FirebaseAnalyticsObserver so that it also fires events when the modal route changes. (#7711). (f3bb2055)

9.0.5

  • FIX: bump Android compileSdkVersion to 31 (#7726). (a9562bac)
  • FIX: user id and user properties can be null so NSNull should be converted to nil on iOS/macOS (#7810). (f588cf38)
  • FIX: setUserProperty should now accept null as a valid value on Android (#7735). (c2237acb)
  • DOCS: example app initialization and docs support status (#7745). (ac21f485)

9.0.4

  • REFACTOR: fix all unnecessary_import analyzer issues introduced with Flutter 2.8. (7f0e82c9)

9.0.3

  • FIX: ensure setDefaultEventParameters() API throws stating not supported on web. (#7522). (9a83f121)
  • FIX: reinstate Analytics screen navigation observer. (#7529). (caf2986e)
  • FIX: userId can be null (#7545). (0d3b523c)

9.0.2

  • Update a dependency to the latest release.

9.0.1

  • FIX: use jsify() with event parameters for logEvent() so they are sent (#7509).

9.0.0

Note: This release has breaking changes.

As part of our on-going work for #6769 this is our Firebase Analytics rework changes.

Overall, Firebase Analytics has been heavily reworked to bring it inline with the federated plugin setup along with adding new features, documentation and updating unit and end-to-end tests.

  • DEPRECATED: FirebaseAnalytics.android namespace has been deprecated in favour of calling setSessionTimeoutDuration() directly: FirebaseAnalytics.instance.setSessionTimeoutDuration(const Duration(milliseconds: 2000)).

  • DEPRECATED: logEcommercePurchase() has been deprecated in favour of using logPurchase().

  • DEPRECATED: logPresentOffer() has been deprecated in favour of using logViewPromotion().

  • DEPRECATED: logPurchaseRefund() has been deprecated in favour of using logRefund().

  • DEPRECATED: logSetCheckoutOption() has been deprecated.

  • BREAKING FEAT: update Android minSdk version to 19 as this is required by Firebase Android SDK 29.0.0 (#7298).

  • BREAKING: FirebaseAnalyticsObserver() class has been removed.

  • BREAKING: Constructing a FirebaseAnalytics instance is now deprecated, use FirebaseAnalytics.instanceFor (web only) or FirebaseAnalytics.instance instead.

  • BREAKING: logAddPaymentInfo() updated parameters to be logged in Analytics console.

  • BREAKING: logAddToCart() updated parameters to be logged in Analytics console.

  • BREAKING: logAddToWishlist() updated parameters to be logged in Analytics console.

  • BREAKING: logBeginCheckout() updated parameters to be logged in Analytics console.

  • BREAKING: logRemoveFromCart() updated parameters to be logged in Analytics console.

  • BREAKING: logViewItem() updated parameters to be logged in Analytics console.

  • BREAKING: logViewItemList() updated parameters to be logged in Analytics console.

  • NEW: logAddShippingInfo() added support for logging shipping information.

  • NEW: logAdImpression() added support for logging ad impression.

  • NEW: logPurchase() added support for logging a purchase.

  • NEW: logRefund() added support for logging a refund.

  • NEW: logScreenView() added support for logging a screen view.

  • NEW: logSelectItem() added support for logging a item that has been selected.

  • NEW: logSelectPromotion() added support for logging a promotion that has been selected.

  • NEW: logViewCart() added support for logging a view of the current cart.

  • NEW: logViewPromotion() added support for logging a view of the current promotion.

  • NEW: setConsent() added support for setting the applicable end user consent state (e.g., for device identifiers) for the app on this device.

  • NEW: setDefaultEventParameters() added support for setting default parameters that will be set on every event logged from the SDK, including automatic ones.

8.3.4

  • REFACTOR: remove deprecated Flutter Android v1 Embedding usages, including in example app (#7158).

8.3.3

  • DOCS: boolean parameters are not supported for GA custom definitions. (#7037).
  • CHORE: update gradle for analytics example app (#7053).

8.3.2

  • FIX: Fix incorrect type name in error message (#6917).

8.3.1

  • Update a dependency to the latest release.

8.3.0

  • STYLE: enable additional lint rules (#6832).
  • FIX: Use angle bracket import consistently when importing Firebase.h for iOS (#5891).
  • FEAT: lower iOS & macOS deployment targets for relevant plugins (#6757).

8.2.0

  • FEAT: firebase_analytics plugin with AnalyticsWithoutAdIdSupport pod (#6046).
  • CHORE: update v2 embedding support (#6506).
  • CHORE: rm deprecated jcenter repository (#6431).

8.1.2

  • Update a dependency to the latest release.

8.1.1

  • Update a dependency to the latest release.

8.1.0

  • FEAT: upgrade Firebase JS SDK version to 8.6.1.
  • REFACTOR: replace deprecated setCurrentScreen internal method usage with new logEvent name.
  • DOCS: migrate firebase_analytics/example to null safety (#6111).

8.0.4

  • Update a dependency to the latest release.

8.0.3

  • DOCS: remove invalid codelabs link.

8.0.2

  • Update a dependency to the latest release.

8.0.1

  • FIX: null values for events (#5563).
  • CHORE: update Web plugins to use Firebase JS SDK version 8.4.1 (#4464).

8.0.0

  • Graduate package to a stable release. See pre-releases prior to this version for changelog entries.

8.0.0-dev.2

  • FIX: support complex data structures like list and map on Android (#4394).

8.0.0-dev.1

  • FIX: remove screen_view from reservedEventNames (#4251).
  • CHORE: add repository urls to pubspecs (#5542).

8.0.0-dev.0

Note: This release has breaking changes.

  • DOCS: remove incorrect ARCHS in ios examples (#5450).
  • CHORE: bump min Dart SDK constraint to 2.12.0 (#5430).
  • CHORE: publish packages (#5429).
  • CHORE: publish packages.
  • BREAKING FEAT: Migrate firebase_analytics to sound null safety (#5341).

7.1.1

  • Update a dependency to the latest release.

7.1.0

  • This version is not null-safe but has been created to allow compatibility with other null-safe FlutterFire packages such as firebase_core.

7.0.0

  • BREAKING FEAT: forward port to firebase-ios-sdk v7.3.0.
    • Due to this SDK upgrade, iOS 10 is now the minimum supported version by FlutterFire. Please update your build target version.
  • FIX: Add missing sdk version constraints inside pubspec.yaml (#4604).

6.3.0

  • TEST: Explicitly opt-out from null safety.
  • FEAT: bump android com.android.tools.build & 'com.google.gms:google-services versions (#4269).
  • CHORE: publish packages.
  • CHORE: bump gradle wrapper to 5.6.4 (#4158).

6.2.0

  • FEAT: bump compileSdkVersion to 29 (#3975).
  • FEAT: bump compileSdkVersion to 29 in preparation for upcoming Play Store requirement.
  • CHORE: publish packages.
  • CHORE: publish packages.

6.1.0

  • FEAT: bump compileSdkVersion to 29 (#3975).
  • FEAT: update Firebase iOS SDK version to 6.33.0 (from 6.26.0).

6.0.2

  • FIX: remove unused dart:async import (#3611).

6.0.1

  • FIX: local dependencies in example apps (#3319).
  • CHORE: intellij cleanup (#3326).

6.0.0

  • Firebase iOS SDK versions are now locked to use the same version defined in firebase_core.
  • Firebase Android SDK versions are now using the Firebase Bill of Materials (BoM) to specify individual SDK versions. BoM version is also sourced from firebase_core.
  • Allow iOS plugin to be imported as a module.

5.0.16

  • Endorse firebase_analytics_web.
  • Add web support to the example app.

5.0.15

  • Use the platform interface.

5.0.14

  • Update lower bound of dart dependency to 2.0.0.

5.0.13

  • Fix for missing UserAgent.h compilation failures.

5.0.12

  • Make the pedantic dev_dependency explicit.

5.0.11

  • Fix overrides a deprecated API.
  • Raise minimum required Flutter SDK version to 1.12.13+hotfix.4

5.0.10

  • Keep a local registrar to get activity for foreground actions for v1 embedder.

5.0.9

  • Remove the deprecated author: field from pubspec.yaml
  • Migrate the plugin to the pubspec platforms manifest.
  • Bump the minimum Flutter version to 1.10.0.

5.0.8

  • Update homepage since the package moved for the platform interface migration.

5.0.7

  • Formatted setCurrentScreen documentation.

5.0.6

  • Updated README instructions for contributing for consistency with other Flutterfire plugins.

5.0.5

  • Remove AndroidX warning.

5.0.4

  • Include lifecycle dependency as a compileOnly one on Android to resolve potential version conflicts with other transitive libraries.

5.0.3

  • Support the v2 Android embedding.

5.0.2

  • Fixed setAnalyticsCollectionEnabled on iOS.

5.0.1

  • Update documentation to reflect new repository location.
  • Update unit tests to call TestWidgetsFlutterBinding.ensureInitialized.
  • Remove executable bit on LICENSE file.

5.0.0

  • Breaking change. Remove deprecated method setMinimumSessionDuration.
  • Breaking change. Removed FirebaseAnalyticsAndroid.setAnalyticsCollectionEnabled. Use FirebaseAnalytics.setAnalyticsCollectionEnabled instead.
  • Update Android gradle plugin and gradle version.
  • Remove redundant casts on Android.

4.0.2

  • Update google-services Android gradle plugin to 4.3.0 in documentation and examples.

4.0.1

  • Refactor unit tests to use setMockMethodCallHandler.

4.0.0

  • Added new tracking events:
    • logLevelStart
    • logLevelEnd
    • logRemoveFromCart
    • logSetCheckoutOption
  • Breaking change. Add new required parameter method to logShare event tracking.
  • Breaking change. The following event names are reserved and cannot be used:
    • ad_activeview
    • ad_click
    • ad_exposure
    • ad_impression
    • ad_query
    • adunit_exposure
    • first_visit
    • screen_view

3.0.3

  • Automatically use version from pubspec.yaml when reporting usage to Firebase.

3.0.2

  • Bump minimum Flutter version to 1.5.0.
  • Add missing template type parameter to invokeMethod calls.

3.0.1

  • Switch to using the FIRAnalytics version of setAnalyticsCollectionEnabled for compatibility with Firebase Analytics iOS CocoaPod version 6.0.
  • Update podspec to ensure availability of setAnalyticsCollectionEnabled.

3.0.0

  • Update Android dependencies to latest.

2.1.1+3

  • Added an initial integration test.

2.1.1+2

  • Fixed errors in code sample for FirebaseAnalyticsObserver.

2.1.1+1

  • Added hyperlinks to example app reference in README.md.

2.1.1

  • Added screen_view tracking of Navigator.pushReplacement

2.1.0

  • Add Login event support

2.0.3

  • Add resetAnalyticsData method

2.0.2+1

  • Log messages about automatic configuration of the default app are now less confusing.

2.0.2

  • Enable setAnalyticsCollectionEnabled support for iOS

2.0.1

  • Log a more detailed warning at build time about the previous AndroidX migration.

2.0.0

  • Breaking change. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to also migrate if they're using the original support library.

    This was originally incorrectly pushed in the 1.2.0 update.

1.2.0+1

  • Revert the breaking 1.2.0 update. 1.2.0 was known to be breaking and should have incremented the major version number instead of the minor. This revert is in and of itself breaking for anyone that has already migrated however. Anyone who has already migrated their app to AndroidX should immediately update to 2.0.0 instead. That's the correctly versioned new push of 1.2.0.

1.2.0

  • BAD. This was a breaking change that was incorrectly published on a minor version upgrade, should never have happened. Reverted by 1.2.0+1.

    "Breaking change. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to also migrate if they're using the original support library."

1.1.0

  • Allow user to handle PlatformExceptions caught by FirebaseAnalyticsObserver._sendScreenView().

1.0.6

  • Allow user ID to be set to null.

1.0.5

  • Update the METHOD Android constant used for logSignUp method.

1.0.4

  • Bump Android dependencies to latest.

1.0.3

  • Updated test and mockito dependencies to pick up Dart 2 support

1.0.2

  • Bump Android and Firebase dependency versions.

1.0.1

  • Updated Gradle tooling to match Android Studio 3.1.2.

1.0.0

  • Bump to released version.

0.3.3

  • Updated Google Play Services dependencies to version 15.0.0.

0.3.2

  • Updated package channel name

0.3.1

  • Simplified podspec for Cocoapods 1.5.0, avoiding link issues in app archives.

0.3.0

  • Breaking change. Set SDK constraints to match the Flutter beta release.

0.2.3

  • Enabled use in Swift projects.

0.2.2+1

  • Updated description to clarify this is 'Google Analytics for Firebase'

0.2.2

  • Moved to the io.flutter.plugins organization.

0.2.1

  • Simplified and upgraded Android project template to Android SDK 27.
  • Updated package description.

0.2.0

  • Breaking change. Upgraded to Gradle 4.1 and Android Studio Gradle plugin 3.0.1. Older Flutter projects need to upgrade their Gradle setup as well in order to use this version of the plugin. Instructions can be found here.
  • Relaxed GMS dependency to [11.4.0,12.0[

0.1.2

  • Added FLT prefix to iOS types
  • Change GMS dependency to 11.4.+

0.1.1

  • Change GMS dependency to 11.+

0.1.0+1

  • Aligned author name with rest of repo.

0.1.0

  • Added FirebaseAnalyticsObserver (a NavigatorObserver) to automatically log PageRoute transitions

0.0.5

  • Support for long parameter values on Android

0.0.4

  • Updated to Firebase SDK to always use latest patch version for 11.0.x builds

0.0.3

  • Updated to Firebase SDK Version 11.0.1

0.0.2

  • Bumped buildToolsVersion to 25.0.3
  • Updated README.md

0.0.1

  • Initial Release

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'firebase_analytics:13.0.0'
pubspec.yaml
name: firebase_analytics
description:
  Flutter plugin for Google Analytics for Firebase, an app measurement
  solution that provides insight on app usage and user engagement on Android and iOS.
homepage: https://firebase.google.com/docs/analytics
repository: https://github.com/firebase/flutterfire/tree/main/packages/firebase_analytics/firebase_analytics
version: 13.0.0
resolution: workspace
topics:
  - firebase
  - analytics
  - measure
  - insights

false_secrets:
  - example/**

environment:
  sdk: '^3.6.0'
  flutter: '>=3.27.0'

dependencies:
  firebase_analytics_platform_interface: ^6.0.7
  firebase_analytics_web: ^0.6.1+13
  firebase_core: ^5.0.0
  firebase_core_platform_interface: ^8.1.1
  flutter:
    sdk: flutter

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:
  plugin:
    platforms:
      android:
        package: io.flutter.plugins.firebase.analytics
        pluginClass: FlutterFirebaseAnalyticsPlugin
      ios:
        pluginClass: FirebaseAnalyticsPlugin
      macos:
        pluginClass: FirebaseAnalyticsPlugin
      web:
        default_package: firebase_analytics_web

Version history

VersionPublishedArchiveSHA-256
0.0.1On demandDownloadf2adbe2f…da5c29
0.0.2On demandDownload2b7b2a3d…97eabf
0.0.3On demandDownloade4f4f32b…4524a4
0.0.4On demandDownload5625919f…facca5
0.0.5On demandDownloadc3e388ce…050fee
0.1.0On demandDownloadd20a44b0…2b0657
0.1.1On demandDownload37ce5b64…02d1b3
0.1.2On demandDownload75edbcb5…8012aa
0.2.0On demandDownload28b5fc17…da8751
0.2.1On demandDownload4d4c4d56…b5d2fe
0.2.2On demandDownload15e0e37a…a64e61
0.2.2+1On demandDownloaddde588ad…60f104
0.2.3On demandDownload382f111c…910f9f
0.3.0On demandDownloadf4b80cc9…42de1e
0.3.1On demandDownload505cfb4c…f1b200
0.3.3On demandDownloadd92b2113…4ba433
1.0.0On demandDownloada2df73d4…72e884
1.0.1On demandDownload635082b5…3e1de5
1.0.2On demandDownload2431d267…1c7bc5
1.0.3On demandDownloadee3b700b…d40aa7
1.0.4On demandDownload2c8b044a…2c4206
1.0.5On demandDownloade70d61ff…1bad20
1.0.6On demandDownload6dfbe13f…3dc1e2
1.1.0On demandDownload8d54bf95…536e87
1.2.0On demandDownload62e04229…b6601a
1.2.0+1On demandDownload53f12f84…eab166
2.0.0On demandDownload015fbf85…c9da69
2.0.1On demandDownload29ac93da…d81ab9
2.0.2On demandDownloadc2f3916e…03845d
2.0.2+1On demandDownload77372cb8…4ac06b
2.0.3On demandDownload80fdde14…e6a187
2.1.0On demandDownload20b41cf8…a9bd72
2.1.1On demandDownload8d125c98…20b7a1
2.1.1+1On demandDownload0c356f30…99074d
2.1.1+2On demandDownload138eb0ff…432815
2.1.1+3On demandDownloadc9dc060b…f5de11
3.0.0On demandDownload63804858…0d547d
3.0.1On demandDownload1f186a9c…78346c
3.0.2On demandDownloada8cf01f2…ce0fa4
3.0.3On demandDownload0ff44f1a…3328f0
4.0.0On demandDownloade82a1c5d…684359
4.0.1On demandDownload0cf27c2c…18fbc2
4.0.2On demandDownload1a95c4e2…5c276c
5.0.0On demandDownload0f3a1dc9…e3c3ec
5.0.1On demandDownloadb7ebf245…eea7af
5.0.2On demandDownload55cb44d6…a6e262
5.0.6On demandDownload545888fc…afe122
5.0.9On demandDownload4dbc263d…233789
5.0.10On demandDownloadd6c25a84…5f73c3
5.0.11On demandDownload20165036…6c0b9a
5.0.14On demandDownload0dd948dc…0990e5
5.0.15On demandDownloadcd8dfab2…00034e
5.0.16On demandDownloade4da7f41…a8b481
6.0.0-dev.1On demandDownload9913bd1c…aa607e
6.0.0On demandDownload363552eb…2b2a23
6.0.1On demandDownload1fc1609d…c0872b
6.0.2On demandDownload2aa1202e…0476a6
6.1.0On demandDownload7ad80726…4c92e5
6.2.0On demandDownload5432b5f2…597c2b
6.3.0On demandDownload8f53e8f7…61afb9
7.0.0On demandDownloaddf4d8d6c…e301f7
7.0.1On demandDownload34c71f96…f00e68
7.1.0On demandDownload44704557…1ba49c
7.1.1On demandDownloadad978fc8…f07c43
8.0.0-dev.0On demandDownload9ea04c28…58f53a
8.0.0-dev.1On demandDownloade1baaab4…f6d427
8.0.0-dev.2On demandDownload09fa9cdd…803827
8.0.0On demandDownloadc16f7b84…cfffd6
8.0.1On demandDownloadbf45b2af…ce3b60
8.0.2On demandDownload3ec78ab7…9d0946
8.0.3On demandDownload6915abb1…a14425
8.0.4On demandDownloaddb96481b…051bb5
8.1.0On demandDownload6583ce09…ea0ccd
8.1.1On demandDownload62a03590…1f873f
8.1.2On demandDownloada054cc38…ecf86c
8.2.0On demandDownload2b2aacc2…7d71a0
8.3.0On demandDownload9c1da8a3…4445e1
8.3.1On demandDownload53f0d6d8…476670
8.3.2On demandDownload855508cb…19d746
8.3.3On demandDownload806e2bec…636311
8.3.4On demandDownloadef5d7859…5cbe74
9.0.0-dev.0On demandDownloadbdc0ebba…b2a7f7
9.0.0-dev.1On demandDownload4a11429a…439ea0
9.0.0-dev.2On demandDownloadebc1e8e9…c3cb33
9.0.0-dev.3On demandDownload15700914…1ddd84
9.0.0-dev.4On demandDownload40626fcb…844dde
9.0.0-dev.5On demandDownload72ec9f6c…57f259
9.0.0On demandDownloadb4868297…4ecbab
9.0.1On demandDownload9ded0050…4adaaf
9.0.2On demandDownload19e75fdb…c761e4
9.0.3On demandDownload4a3af210…307ade
9.0.4On demandDownload91944f33…61c040
9.0.5On demandDownload65269601…142c68
9.1.0On demandDownloadb5138a70…21e53f
9.1.1On demandDownload3f174f58…7a9d8a
9.1.2On demandDownload56d0d479…f65615
9.1.3On demandDownload9679ca83…b5ef22
9.1.4On demandDownload3d42a530…e6b66b
9.1.5On demandDownloada5887914…31ee04
9.1.6On demandDownload2ad59c87…03465a
9.1.7On demandDownload24097609…dcf536
9.1.8On demandDownload9649b876…66a4d0
9.1.9On demandDownload4788f567…3ec781
9.1.10On demandDownload74822c67…b255f6
9.1.11On demandDownload25aae8e1…8e225a
9.1.12On demandDownload5b45c725…cb7493
9.2.0On demandDownload329eb98b…de3829
9.2.1On demandDownloade2baf38d…7d197d
9.3.0On demandDownload264ef161…babe95
9.3.1On demandDownload95b9171d…d0d81b
9.3.2On demandDownload3a5c5ed2…18dea9
9.3.3On demandDownload431b6866…fc747f
9.3.4On demandDownload77f6d691…bde01a
9.3.5On demandDownload1588ed76…c888c4
9.3.6On demandDownloadde72f82b…0ecbc0
9.3.7On demandDownload29cb852d…17c34b
9.3.8On demandDownload5e277bfb…fc00ae
10.0.0On demandDownload21b964b1…e6ff0a
10.0.1On demandDownloadf8f3bf27…c94d38
10.0.2On demandDownload86abca5e…0ea5fa
10.0.3On demandDownload182b1c6f…a7c09c
10.0.4On demandDownload07cc2f5c…06a73b
10.0.5On demandDownloadeb926eb3…219f25
10.0.6On demandDownload32e40908…6563cb
10.0.7On demandDownload8e83227f…adf89e
10.0.8On demandDownloaddb98a397…5156a3
10.1.0On demandDownload2daceef6…c9cb5e
10.1.1On demandDownloade9adb135…bfb0d8
10.1.2On demandDownload2cb36f69…6b0646
10.1.3On demandDownload8b04353f…43f4b7
10.1.4On demandDownload4d7829b2…ec1ae6
10.1.5On demandDownload9972d5b5…72e7ec
10.1.6On demandDownload48202f08…841826
10.2.0On demandDownloadacba5361…55b968
10.2.1On demandDownload2d8f475f…20d3e8
10.3.0On demandDownload7bafe864…2f8e7b
10.4.0On demandDownload0dfe8a3d…5ce9ad
10.4.1On demandDownloadd283d747…21c939
10.4.2On demandDownloadf9d130eb…e5c21e
10.4.3On demandDownloadb4f0da1b…5ab0d9
10.4.4On demandDownloadd7494294…c4b634
10.4.5On demandDownload82992b2e…d72bde
10.5.0On demandDownloadc35213b7…22cdb4
10.5.1On demandDownload6a8b509b…e31857
10.6.0On demandDownloaddb4b89ce…ddad98
10.6.1On demandDownloadbe3edadb…643c30
10.6.2On demandDownloadfd94117b…ecbd3f
10.6.3On demandDownloadfb8c29d9…7f5d9d
10.6.4On demandDownload828401ca…b35dc7
10.7.0On demandDownload624f234b…7a0a2b
10.7.1On demandDownloadde3d73b5…1081ec
10.7.2On demandDownload63259910…9c5196
10.7.3On demandDownload0712a597…5e1896
10.7.4On demandDownload5e92d510…770508
10.8.0On demandDownload02400760…40a184
10.8.1On demandDownload95ebf6fb…849b9f
10.8.2On demandDownload5b09b222…f03066
10.8.3On demandDownload1f902fe6…910def
10.8.4On demandDownloadbb6c067f…28691b
10.8.5On demandDownloadedb9f9ea…e8b535
10.8.6On demandDownload54681f6a…1b36ca
10.8.7On demandDownloadc6220b23…c10339
10.8.8On demandDownloadc7f243b3…134c3e
10.8.9On demandDownloadb13cbf1e…a2ccb9
10.8.10On demandDownloadddfcb2aa…e049fa
10.9.0On demandDownload56856f45…8d79e5
10.10.0On demandDownload4305265c…655bee
10.10.1On demandDownload638ca927…7c4f71
10.10.2On demandDownload88a26e28…061fc5
10.10.3On demandDownloadf3d82590…992439
10.10.4On demandDownloadc56bcc7a…b21d4c
10.10.5On demandDownload51afa475…d55928
10.10.6On demandDownload08f98034…23a2bc
10.10.7On demandDownloaddbf1e7ab…92e035
11.0.0On demandDownload62d9e83c…9b0a9c
11.0.1On demandDownload3363045e…dbcdd8
11.1.0On demandDownload726596f4…7a2715
11.2.0On demandDownload2017da2c…13da11
11.2.1On demandDownload064e5b57…7df48f
11.3.0On demandDownload7e032ade…e3bc73
11.3.1On demandDownload7b5ae39d…dd172b
11.3.2On demandDownload9c52c099…f9882d
11.3.3On demandDownload2c4e7b54…e42458
11.3.4On demandDownload3215f9d3…655af0
11.3.5On demandDownload8be7c450…45bb09
11.3.6On demandDownload366140ab…65c5fd
11.4.0On demandDownload498c6cb8…f201ea
11.4.1On demandDownloadeac382bb…4d1060
11.4.2On demandDownload47428047…6245b2
11.4.3On demandDownload6abce50b…2325f4
11.4.4On demandDownload81a582e9…d4aaac
11.4.5On demandDownload2416b9d8…9bea2b
11.4.6On demandDownloadb5b31727…37105c
11.5.0On demandDownload2a212f57…3dd17b
11.5.1On demandDownloadb2f312c3…3a5da1
11.5.2On demandDownload178b0275…4f903b
11.6.0On demandDownload4f85b161…a5c8a3
12.0.0On demandDownload07146e89…8e5b4c
12.0.1On demandDownloaddde9d6a7…3f2a0e
12.0.2On demandDownloadfce78440…55d509
12.0.3On demandDownload3cfc4089…311015
12.0.4On demandDownloadbfb80d92…1bfe85
12.1.0On demandDownload8ca4832c…b1b40d
12.1.1On demandDownload91e2739b…797a81
12.1.2On demandDownload07e0a82e…bb766a
12.1.3On demandDownload81702733…786d70
12.2.0On demandDownloade5679ed4…e7b4ae
12.3.0On demandDownload6993e544…fded73
12.4.0On demandDownloadc0bd7c2c…cace07
12.4.1On demandDownload56641bc6…cf3183
12.4.2On demandDownload1f68d8a3…5858a9
12.4.3On demandDownload1c46136d…f4a397
12.4.4On demandDownload86acc776…e328ac
12.4.5On demandDownload47b68927…c10ad6
12.4.6On demandDownloada139dd0a…db771f
12.5.0On demandDownload0bf812fe…2d9a06
12.6.0On demandDownloadb82d2cab…9960bb
12.6.1On demandDownloada7550150…02d455
13.0.0Cached · Upstream SHA-256 matchedDownload68380fd5…42c45b
13.0.1On demandDownload4184afc1…b34357

Dependencies

firebase_analytics_platform_interface "^6.0.7"

firebase_analytics_web "^0.6.1+13"

firebase_core "^5.0.0"

firebase_core_platform_interface "^8.1.1"

flutter { "sdk": "flutter" }