Skip to content

Upgrading firebase_analytics 3 to 4

Breaking3.0.3 → 4.0.2Breaking2New1Other2

BreakingUpgrade verdict

2 breaking changes.

  • Code that logs a share event must now also say how the share happened, otherwise it will not compile.
  • These eight event names are now reserved by the analytics service and can no longer be used for your own events.
2 items need code or config changes
Breaking2
Adds a new required parameter method to the logShare event tracking call.
logSharemethod
Reserves the event names ad_activeview, ad_click, ad_exposure, ad_impression, ad_query, adunit_exposure, first_visit and screen_view.
ad_activeviewad_clickad_exposuread_impressionad_queryadunit_exposurefirst_visitscreen_view

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: ctor FirebaseAnalytics()
  • removed: ctor FirebaseAnalytics.private(MethodChannel platformChannel)
  • removed: ctor FirebaseAnalyticsAndroid.private(this._channel)
  • changed: method FirebaseAnalytics.logShare({ @required String contentType, @required String itemId, }): Future<void> → method FirebaseAnalytics.logShare({ @required String contentType, @required String itemId, @required String method, }): Future<void>
  • added: method FirebaseAnalytics.logLevelEnd({ @required String levelName, int success, }): Future<void>
  • added: method FirebaseAnalytics.logLevelStart({ @required String levelName, }): Future<void>
  • added: method FirebaseAnalytics.logRemoveFromCart({ @required String itemId, @required String itemName, @required String itemCategory, @required int quantity, double price, double value, String currency, String origin, String itemLocationId, String destination, String startDate, String endDate, }): Future<void>
  • added: method FirebaseAnalytics.logSetCheckoutOption({ @required int checkoutStep, @required String checkoutOption, }): Future<void>
  • added: variable firebaseChannel: const MethodChannel