Truy cập vào bảng điều khiển

Analytics Events

Predefined event names.

Summary

An Event is an important occurrence in your app that you want to measure. You can report up to 500 different types of Events per app and you can associate up to 25 unique parameters with each Event type. Some common events are suggested below, but you may also choose to specify custom Event types that are associated with your specific app. Each event type is identified by a unique name. Event names can be up to 40 characters long, may only contain alphanumeric characters and underscores ("_"), and must start with an alphabetic character. The "firebase_", "google_", and "ga_" prefixes are reserved and should not be used.

Variables

kEventAddPaymentInfo = "add_payment_info"
const char *const
Add Payment Info event.
kEventAddToCart = "add_to_cart"
const char *const
E-Commerce Add To Cart event.
kEventAddToWishlist = "add_to_wishlist"
const char *const
E-Commerce Add To Wishlist event.
kEventAppOpen = "app_open"
const char *const
App Open event.
kEventBeginCheckout = "begin_checkout"
const char *const
E-Commerce Begin Checkout event.
kEventCampaignDetails = "campaign_details"
const char *const
Campaign Detail event.
kEventCheckoutProgress = "checkout_progress"
const char *const
Checkout progress.
kEventEarnVirtualCurrency = "earn_virtual_currency"
const char *const
Earn Virtual Currency event.
kEventEcommercePurchase = "ecommerce_purchase"
const char *const
E-Commerce Purchase event.
kEventGenerateLead = "generate_lead"
const char *const
Generate Lead event.
kEventJoinGroup = "join_group"
const char *const
Join Group event.
kEventLevelEnd = "level_end"
const char *const
Level End event.
kEventLevelStart = "level_start"
const char *const
Level Start event.
kEventLevelUp = "level_up"
const char *const
Level Up event.
kEventLogin = "login"
const char *const
Login event.
kEventPostScore = "post_score"
const char *const
Post Score event.
kEventPresentOffer = "present_offer"
const char *const
Present Offer event.
kEventPurchaseRefund = "purchase_refund"
const char *const
E-Commerce Purchase Refund event.
kEventRemoveFromCart = "remove_from_cart"
const char *const
Remove from cart event.
kEventSearch = "search"
const char *const
Search event.
kEventSelectContent = "select_content"
const char *const
Select Content event.
kEventSetCheckoutOption = "set_checkout_option"
const char *const
Set checkout option.
kEventShare = "share"
const char *const
Share event.
kEventSignUp = "sign_up"
const char *const
Sign Up event.
kEventSpendVirtualCurrency = "spend_virtual_currency"
const char *const
Spend Virtual Currency event.
kEventTutorialBegin = "tutorial_begin"
const char *const
Tutorial Begin event.
kEventTutorialComplete = "tutorial_complete"
const char *const
Tutorial End event.
kEventUnlockAchievement = "unlock_achievement"
const char *const
Unlock Achievement event.
kEventViewItem = "view_item"
const char *const
View Item event.
kEventViewItemList = "view_item_list"
const char *const
View Item List event.
kEventViewSearchResults = "view_search_results"
const char *const
View Search Results event.

Variables

kEventAddPaymentInfo

const char *const kEventAddPaymentInfo = "add_payment_info"

Add Payment Info event.

This event signifies that a user has submitted their payment information to your app.

kEventAddToCart

const char *const kEventAddToCart = "add_to_cart"

E-Commerce Add To Cart event.

This event signifies that an item was added to a cart for purchase. Add this event to a funnel with kEventEcommercePurchase to gauge the effectiveness of your checParameter(kout, If you supply the kParameterValue parameter), you must also supply the kParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • kParameterQuantity (signed 64-bit integer)
  • kParameterItemID (string)
  • kParameterItemName (string)
  • kParameterItemCategory (string)
  • kParameterItemLocationID (string) (optional)
  • kParameterPrice (double) (optional)
  • kParameterCurrency (string) (optional)
  • kParameterValue (double) (optional)
  • kParameterOrigin (string) (optional)
  • kParameterDestination (string) (optional)
  • kParameterStartDate (string) (optional)
  • kParameterEndDate (string) (optional)

kEventAddToWishlist

const char *const kEventAddToWishlist = "add_to_wishlist"

E-Commerce Add To Wishlist event.

This event signifies that an item was added to a wishlist. Use this event to identify popular gift items in your app. Note: If you supply the kParameterValue parameter, you must also supply the kParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • kParameterQuantity (signed 64-bit integer)
  • kParameterItemID (string)
  • kParameterItemName (string)
  • kParameterItemCategory (string)
  • kParameterItemLocationID (string) (optional)
  • kParameterPrice (double) (optional)
  • kParameterCurrency (string) (optional)
  • kParameterValue (double) (optional)

kEventAppOpen

const char *const kEventAppOpen = "app_open"

App Open event.

By logging this event when an App becomes active, developers can understand how often users leave and return during the course of a Session. Although Sessions are automatically reported, this event can provide further clarification around the continuous engagement of app-users.

kEventBeginCheckout

const char *const kEventBeginCheckout = "begin_checkout"

E-Commerce Begin Checkout event.

This event signifies that a user has begun the process of checking out. Add this event to a funnel with your kEventEcommercePurchase event to gauge the effectiveness of your checkout process. Note: If you supply the kParameterValue parameter, you must also supply the kParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • kParameterValue (double) (optional)
  • kParameterCurrency (string) (optional)
  • kParameterTransactionID (string) (optional)
  • kParameterStartDate (string) (optional)
  • kParameterEndDate (string) (optional)
  • kParameterNumberOfNights (signed 64-bit integer) (optional) for hotel bookings
  • kParameterNumberOfRooms (signed 64-bit integer) (optional) for hotel bookings
  • kParameterNumberOfPassengers (signed 64-bit integer) (optional) for travel bookings
  • kParameterOrigin (string) (optional)
  • kParameterDestination (string) (optional)
  • kParameterTravelClass (string) (optional) for travel bookings

kEventCampaignDetails

const char *const kEventCampaignDetails = "campaign_details"

Campaign Detail event.

Log this event to supply the referral details of a re-engagement campaign. Note: you must supply at least one of the required parameters kParameterSource, kParameterMedium or kParameterCampaign. Params:

  • kParameterSource (string)
  • kParameterMedium (string)
  • kParameterCampaign (string)
  • kParameterTerm (string) (optional)
  • kParameterContent (string) (optional)
  • kParameterAdNetworkClickID (string) (optional)
  • kParameterCP1 (string) (optional)

kEventCheckoutProgress

const char *const kEventCheckoutProgress = "checkout_progress"

Checkout progress.

Params:

  • kParameterCheckoutStep (unsigned 64-bit integer)
  • kParameterCheckoutOption (string) (optional)

kEventEarnVirtualCurrency

const char *const kEventEarnVirtualCurrency = "earn_virtual_currency"

Earn Virtual Currency event.

This event tracks the awarding of virtual currency in your app. Log this along with kEventSpendVirtualCurrency to better understand your virtual economy. Params:

  • kParameterVirtualCurrencyName (string)
  • kParameterValue (signed 64-bit integer or double)

kEventEcommercePurchase

const char *const kEventEcommercePurchase = "ecommerce_purchase"

E-Commerce Purchase event.

This event signifies that an item was purchased by a user. Note: This is different from the in-app purchase event, which is reported automatically for App Store-based apps. Note: If you supply the kParameterValue parameter, you must also supply the kParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • kParameterCurrency (string) (optional)
  • kParameterValue (double) (optional)
  • kParameterTransactionID (string) (optional)
  • kParameterTax (double) (optional)
  • kParameterShipping (double) (optional)
  • kParameterCoupon (string) (optional)
  • kParameterLocation (string) (optional)
  • kParameterStartDate (string) (optional)
  • kParameterEndDate (string) (optional)
  • kParameterNumberOfNights (signed 64-bit integer) (optional) for hotel bookings
  • kParameterNumberOfRooms (signed 64-bit integer) (optional) for hotel bookings
  • kParameterNumberOfPassengers (signed 64-bit integer) (optional) for travel bookings
  • kParameterOrigin (string) (optional)
  • kParameterDestination (string) (optional)
  • kParameterTravelClass (string) (optional) for travel bookings

kEventGenerateLead

const char *const kEventGenerateLead = "generate_lead"

Generate Lead event.

Log this event when a lead has been generated in the app to understand the efficacy of your install and re-engagement campaigns. Note: If you supply the kParameterValue parameter, you must also supply the kParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • kParameterCurrency (string) (optional)
  • kParameterValue (double) (optional)

kEventJoinGroup

const char *const kEventJoinGroup = "join_group"

Join Group event.

Log this event when a user joins a group such as a guild, team or family. Use this event to analyze how popular certain groups or social features are in your app. Params:

  • kParameterGroupID (string)

kEventLevelEnd

const char *const kEventLevelEnd = "level_end"

Level End event.

Log this event when the user finishes a level. Params:

  • kParameterLevelName (string)
  • kParameterSuccess (string)

kEventLevelStart

const char *const kEventLevelStart = "level_start"

Level Start event.

Log this event when the user starts a new level. Params:

  • kParameterLevelName (string)

kEventLevelUp

const char *const kEventLevelUp = "level_up"

Level Up event.

This event signifies that a player has leveled up in your gaming app. It can help you gauge the level distribution of your userbase and help you identify certain levels that are difficult to pass. Params:

  • kParameterLevel (signed 64-bit integer)
  • kParameterCharacter (string) (optional)

kEventLogin

const char *const kEventLogin = "login"

Login event.

Apps with a login feature can report this event to signify that a user has logged in.

kEventPostScore

const char *const kEventPostScore = "post_score"

Post Score event.

Log this event when the user posts a score in your gaming app. This event can help you understand how users are actually performing in your game and it can help you correlate high scores with certain audiences or behaviors. Params:

  • kParameterScore (signed 64-bit integer)
  • kParameterLevel (signed 64-bit integer) (optional)
  • kParameterCharacter (string) (optional)

kEventPresentOffer

const char *const kEventPresentOffer = "present_offer"

Present Offer event.

This event signifies that the app has presented a purchase offer to