FirebaseAnalytics class
Firebase Analytics API.
Constructors
Properties
- android → FirebaseAnalyticsAndroid?
-
Namespace for analytics API available on Android only.
final
- hashCode → int?
-
The hash code for this object.
no setterinherited
- runtimeType → Type?
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
logAddPaymentInfo(
) → Future< void> ? -
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< void> ? -
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< void> ? -
Logs the standard
add_to_wishlist
event. -
logAppOpen(
) → Future< void> ? -
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< void> ? -
Logs the standard
begin_checkout
event. -
logCampaignDetails(
{String? source, String? medium, String? campaign, String? term, String? content, String? aclid, String? cp1}) → Future< void> ? -
Logs the standard
campaign_details
event. -
logEarnVirtualCurrency(
{String? virtualCurrencyName, num? value}) → Future< void> ? -
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< void> ? -
Logs the standard
ecommerce_purchase
event. -
logEvent(
{String? name, Map< String?, dynamic> ? parameters}) → Future<void> ? -
Logs a custom Flutter Analytics event with the given
name
and eventparameters
. -
logGenerateLead(
{String? currency, double? value}) → Future< void> ? -
Logs the standard
generate_lead
event. -
logJoinGroup(
{String? groupId}) → Future< void> ? -
Logs the standard
join_group
event. -
logLevelEnd(
{String? levelName, int? success}) → Future< void> ? -
Logs the standard
level_end
event. -
logLevelStart(
{String? levelName}) → Future< void> ? -
Logs the standard
level_start
event. -
logLevelUp(
{int? level, String? character}) → Future< void> ? -
Logs the standard
level_up
event. -
logLogin(
{String? loginMethod}) → Future< void> ? -
Logs the standard
login
event. -
logPostScore(
{int? score, int? level, String? character}) → Future< void> ? -
Logs the standard
post_score
event. -
logPresentOffer(
{String? itemId, String? itemName, String? itemCategory, int? quantity, double? price, double? value, String? currency, String? itemLocationId}) → Future< void> ? -
Logs the standard
present_offer
event. -
logPurchaseRefund(
{String? currency, double? value, String? transactionId}) → Future< void> ? -
Logs the standard
purchase_refund
event. -
logRemoveFromCart(
{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< void> ? -
Logs the standard
remove_from_cart
event. See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#REMOVE_FROM_CART -
logSearch(
{String? searchTerm, int? numberOfNights, int? numberOfRooms, int? numberOfPassengers, String? origin, String? destination, String? startDate, String? endDate, String? travelClass}) → Future< void> ? -
Logs the standard
search
event. -
logSelectContent(
{String? contentType, String? itemId}) → Future< void> ? -
Logs the standard
select_content
event. -
logSetCheckoutOption(
{int? checkoutStep, String? checkoutOption}) → Future< void> ? -
Logs the standard
set_checkout_option
event. See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#SET_CHECKOUT_OPTION -
Logs the standard
share
event. -
logSignUp(
{String? signUpMethod}) → Future< void> ? -
Logs the standard
sign_up
event. -
logSpendVirtualCurrency(
{String? itemName, String? virtualCurrencyName, num? value}) → Future< void> ? -
Logs the standard
spend_virtual_currency
event. -
logTutorialBegin(
) → Future< void> ? -
Logs the standard
tutorial_begin
event. -
logTutorialComplete(
) → Future< void> ? -
Logs the standard
tutorial_complete
event. -
logUnlockAchievement(
{String? id}) → Future< void> ? -
Logs the standard
unlock_achievement
event with a given achievementid
. -
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< void> ? -
Logs the standard
view_item
event. -
logViewItemList(
{String? itemCategory}) → Future< void> ? -
Logs the standard
view_item_list
event. -
logViewSearchResults(
{String? searchTerm}) → Future< void> ? -
Logs the standard
view_search_results
event. -
noSuchMethod(
Invocation? invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetAnalyticsData(
) → Future< void> ? - Clears all analytics data for this app from the device and resets the app instance id.
-
setAnalyticsCollectionEnabled(
bool? enabled) → Future< void> ? - Sets whether analytics collection is enabled for this app on this device.
-
setCurrentScreen(
{String? screenName, String? screenClassOverride = 'Flutter'}) → Future< void> ? -
Sets the current
screenName
, which specifies the current visual context in your app. -
setUserId(
String? id) → Future< void> ? - Sets the user ID property.
-
setUserProperty(
{String? name, String? value}) → Future< void> ? - Sets a user property to a given value.
-
toString(
) → String? -
A string representation of this object.
inherited
Operators
-
operator ==(
Object? other) → bool? -
The equality operator.
inherited