FirebaseAnalytics class

Firebase Analytics API.

Constructors

FirebaseAnalytics()
Provides an instance of this class.
factory
FirebaseAnalytics.private(MethodChannel platformChannel)
We don't want people to extend this class, but implementing its interface, e.g. in tests, is OK.

Properties

android FirebaseAnalyticsAndroid
Namespace for analytics API available on Android only. [...]
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

logAddPaymentInfo() → Future<Null>
Logs the standard add_payment_info event. [...]
logAddToCart({String itemId, String itemName, String itemCategory, int quantity, double price, double value, String currency, String origin, String itemLocationId, String destination, String startDate, String endDate }) → Future<Null>
Logs the standard add_to_cart event. [...]
logAddToWishlist({String itemId, String itemName, String itemCategory, int quantity, double price, double value, String currency, String itemLocationId }) → Future<Null>
Logs the standard add_to_wishlist event. [...]
logAppOpen() → Future<Null>
Logs the standard app_open event. [...]
logBeginCheckout({double value, String currency, String transactionId, int numberOfNights, int numberOfRooms, int numberOfPassengers, String origin, String destination, String startDate, String endDate, String travelClass }) → Future<Null>
Logs the standard begin_checkout event. [...]
logCampaignDetails({String source, String medium, String campaign, String term, String content, String aclid, String cp1 }) → Future<Null>
Logs the standard campaign_details event. [...]
logEarnVirtualCurrency({String virtualCurrencyName, num value }) → Future<Null>
Logs the standard earn_virtual_currency event. [...]
logEcommercePurchase({String currency, double value, String transactionId, double tax, double shipping, String coupon, String location, int numberOfNights, int numberOfRooms, int numberOfPassengers, String origin, String destination, String startDate, String endDate, String travelClass }) → Future<Null>
Logs the standard ecommerce_purchase event. [...]
logEvent({String name, Map<String, dynamic> parameters }) → Future<Null>
Logs a custom Flutter Analytics event with the given name and event parameters.
logGenerateLead({String currency, double value }) → Future<Null>
Logs the standard generate_lead event. [...]
logJoinGroup({String groupId }) → Future<Null>
Logs the standard join_group event. [...]
logLevelUp({int level, String character }) → Future<Null>
Logs the standard level_up event. [...]
logLogin() → Future<Null>
Logs the standard login event. [...]
logPostScore({int score, int level, String character }) → Future<Null>
Logs the standard post_score event. [...]
logPresentOffer({String itemId, String itemName, String itemCategory, int quantity, double price, double value, String currency, String itemLocationId }) → Future<Null>
Logs the standard present_offer event. [...]
logPurchaseRefund({String currency, double value, String transactionId }) → Future<Null>
Logs the standard purchase_refund event. [...]
logSearch({String searchTerm, int numberOfNights, int numberOfRooms, int numberOfPassengers, String origin, String destination, String startDate, String endDate, String travelClass }) → Future<Null>
Logs the standard search event. [...]
logSelectContent({String contentType, String itemId }) → Future<Null>
Logs the standard select_content event. [...]
logShare({String contentType, String itemId }) → Future<Null>
Logs the standard share event. [...]
logSignUp({String signUpMethod }) → Future<Null>
Logs the standard sign_up event. [...]
logSpendVirtualCurrency({String itemName, String virtualCurrencyName, num value }) → Future<Null>
Logs the standard spend_virtual_currency event. [...]
logTutorialBegin() → Future<Null>
Logs the standard tutorial_begin event. [...]
logTutorialComplete() → Future<Null>
Logs the standard tutorial_complete event. [...]
logUnlockAchievement({String id }) → Future<Null>
Logs the standard unlock_achievement event with a given achievement id. [...]
logViewItem({String itemId, String itemName, String itemCategory, String itemLocationId, double price, int quantity, String currency, double value, String flightNumber, int numberOfPassengers, int numberOfNights, int numberOfRooms, String origin, String destination, String startDate, String endDate, String searchTerm, String travelClass }) → Future<Null>
Logs the standard view_item event. [...]
logViewItemList({String itemCategory }) → Future<Null>
Logs the standard view_item_list event. [...]
logViewSearchResults({String searchTerm }) → Future<Null>
Logs the standard view_search_results event. [...]
setCurrentScreen({String screenName, String screenClassOverride: 'Flutter' }) → Future<Null>
Sets the current screenName, which specifies the current visual context in your app. [...]
setUserId(String id) → Future<Null>
Sets the user ID property. [...]
setUserProperty({String name, String value }) → Future<Null>
Sets a user property to a given value. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited