AnalyticsExtensions extension

Utility methods for logging analytics events

on

Methods

logBreadcrumb(String breadcrumbName) Future<void>
Log a breadcrumb navigation event
logButtonPress(String buttonName, {Map<String, Object>? parameters}) Future<void>
Log a button press using a common button press event format.
logEvent(String name, {Map<String, Object>? parameters}) Future<void>
Logs an event using the analytics provider from the surrounding provider scope.
logInputTap(String inputName) Future<void>
Log when the user taps an input text field
logListSelectCancelled(String listName, {String? currentItem}) Future<void>
Log that the user cancelled selecting an item from a list
logListSelectItem(String itemName, {required String listName}) Future<void>
Log that an item from a list was selected
logPostError(String postName, Object error) Future<void>
Log that a post action to the server has completed with an error
logPostSuccess(String postName) Future<void>
Log that a post action to the server has completed successfully
logRefresh(String refreshName, {bool pullToRefresh = true}) Future<void>
Log when the user refreshes the page
logScreenView({required String screenName, String? screenClass}) Future<void>
Log a button press using a common Scree View.
logSearch(String searchName, {required String searchTerm, DateTime? startDate, DateTime? endDate}) Future<void>
Log a search event using a firebase-compliant search event format
logSheetDrag(String sheetName, {required bool isCollapsed, Map<String, Object>? parameters}) Future<void>
Log a collapsible sheet drag using a common event format
logTabSelect(String tabName) Future<void>
Log a tab selection event