Firebase.Analytics.FirebaseAnalytics

FirebaseAnalytics API.

Summary

See the developer guides for general information on using FirebaseAnalytics in your apps.

Properties

EventAddPaymentInfo
static string
Add Payment Info event.
EventAddToCart
static string
E-Commerce Add To Cart event.
EventAddToWishlist
static string
E-Commerce Add To Wishlist event.
EventAppOpen
static string
App Open event.
EventBeginCheckout
static string
E-Commerce Begin Checkout event.
EventCampaignDetails
static string
Campaign Detail event.
EventCheckoutProgress
static string
Checkout progress.
EventEarnVirtualCurrency
static string
Earn Virtual Currency event.
EventEcommercePurchase
static string
E-Commerce Purchase event.
EventGenerateLead
static string
Generate Lead event.
EventJoinGroup
static string
Join Group event.
EventLevelUp
static string
Level Up event.
EventLogin
static string
Login event.
EventPostScore
static string
Post Score event.
EventPresentOffer
static string
Present Offer event.
EventPurchaseRefund
static string
E-Commerce Purchase Refund event.
EventRemoveFromCart
static string
Remove from cart event.
EventSearch
static string
Search event.
EventSelectContent
static string
Select Content event.
EventSetCheckoutOption
static string
Set checkout option.
EventShare
static string
Share event.
EventSignUp
static string
Sign Up event.
EventSpendVirtualCurrency
static string
Spend Virtual Currency event.
EventTutorialBegin
static string
Tutorial Begin event.
EventTutorialComplete
static string
Tutorial End event.
EventUnlockAchievement
static string
Unlock Achievement event.
EventViewItem
static string
View Item event.
EventViewItemList
static string
View Item List event.
EventViewSearchResults
static string
View Search Results event.
ParameterAchievementId
static string
ParameterAdNetworkClickID
static string
Ad Network Click ID (string).
ParameterAffiliation
static string
The store or affiliation from which this transaction occurred (string).
ParameterCP1
static string
Campaign custom parameter (string).
ParameterCampaign
static string
The individual campaign name, slogan, promo code, etc.
ParameterCharacter
static string
Character used in game (string).
ParameterCheckoutOption
static string
Some option on a step in an ecommerce flow (string).
ParameterCheckoutStep
static string
The checkout step (1..N) (unsigned 64-bit integer).
ParameterContent
static string
Campaign content (string).
ParameterContentType
static string
Type of content selected (string).
ParameterCoupon
static string
Coupon code for a purchasable item (string).
ParameterCreativeName
static string
The name of a creative used in a promotional spot (string).
ParameterCreativeSlot
static string
The name of a creative slot (string).
ParameterCurrency
static string
Purchase currency in 3-letter ISO_4217 format (string).
ParameterDestination
static string
Flight or Travel destination (string).
ParameterEndDate
static string
The arrival date, check-out date or rental end date for the item.
ParameterFlightNumber
static string
Flight number for travel events (string).
ParameterGroupId
static string
ParameterItemBrand
static string
Item brand (string).
ParameterItemCategory
static string
Item category (string).
ParameterItemId
static string
ParameterItemList
static string
The list in which the item was presented to the user (string).
ParameterItemLocationId
static string
ParameterItemName
static string
Item name (string).
ParameterItemVariant
static string
Item variant (string).
ParameterLevel
static string
Level in game (signed 64-bit integer).
ParameterLocation
static string
Location (string).
ParameterMedium
static string
The advertising or marParameter(eting, cpc, banner, email), push.
ParameterNumberOfNights
static string
Number of nights staying at hotel (signed 64-bit integer).
ParameterNumberOfPassengers
static string
Number of passengers traveling (signed 64-bit integer).
ParameterNumberOfRooms
static string
Number of rooms for travel events (signed 64-bit integer).
ParameterOrigin
static string
Flight or Travel origin (string).
ParameterPrice
static string
Purchase price (double).
ParameterQuantity
static string
Purchase quantity (signed 64-bit integer).
ParameterScore
static string
Score in game (signed 64-bit integer).
ParameterSearchTerm
static string
The search string/eywords used (string).
ParameterShipping
static string
Shipping cost (double).
ParameterSignUpMethod
static string
Sign up method (string).
ParameterSource
static string
The origin of your traffic, such as an Ad network (for example, google) or partner (urban airship).
ParameterStartDate
static string
The departure date, check-in date or rental start date for the item.
ParameterTax
static string
Tax amount (double).
ParameterTerm
static string
If you're manually tagging eyword campaigns, you should use utm_term to specify the eyword (string).
ParameterTransactionId
static string
ParameterTravelClass
static string
Travel class (string).
ParameterValue
static string
A context-specific numeric value which is accumulated automatically for each event type.
ParameterVirtualCurrencyName
static string
Name of currency type (string).
UserPropertySignUpMethod
static string
The method used to sign in.

Public static functions

LogEvent(string name, string parameterName, string parameterValue)
void
Log an event with one string parameter.
LogEvent(string name, string parameterName, double parameterValue)
void
Log an event with one float parameter.
LogEvent(string name, string parameterName, long parameterValue)
void
Log an event with one 64-bit integer parameter.
LogEvent(string name, string parameterName, int parameterValue)
void
Log an event with one integer parameter (stored as a 64-bit integer).
LogEvent(string name)
void
Log an event with no parameters.
LogEvent(string name, params Parameter[] parameters)
unsafe void
Log an event with associated parameters.
SetAnalyticsCollectionEnabled(bool enabled)
void
Sets whether analytics collection is enabled for this app on this device.
SetCurrentScreen(string screenName, string screenClass)
void
Sets the current screen name and screen class, which specifies the current visual context in your app.
SetUserId(string userId)
void
Sets the user ID property.
SetUserProperty(string name, string property)
void
Set a user property to the given value.

Properties

EventAddPaymentInfo

static string EventAddPaymentInfo

Add Payment Info event.

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

EventAddToCart

static string EventAddToCart

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 EventEcommercePurchase to gauge the effectiveness of your checParameter(out, If you supply the ParameterValue parameter), you must also supply the ParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • ParameterQuantity (signed 64-bit integer)
  • ParameterItemID (string)
  • ParameterItemName (string)
  • ParameterItemCategory (string)
  • ParameterItemLocationID (string) (optional)
  • ParameterPrice (double) (optional)
  • ParameterCurrency (string) (optional)
  • ParameterValue (double) (optional)
  • ParameterOrigin (string) (optional)
  • ParameterDestination (string) (optional)
  • ParameterStartDate (string) (optional)
  • ParameterEndDate (string) (optional)

EventAddToWishlist

static string EventAddToWishlist

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 ParameterValue parameter, you must also supply the ParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • ParameterQuantity (signed 64-bit integer)
  • ParameterItemID (string)
  • ParameterItemName (string)
  • ParameterItemCategory (string)
  • ParameterItemLocationID (string) (optional)
  • ParameterPrice (double) (optional)
  • ParameterCurrency (string) (optional)
  • ParameterValue (double) (optional)

EventAppOpen

static string EventAppOpen

App Open event.

By logging this event when an App is moved to the foreground, 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.

EventBeginCheckout

static string EventBeginCheckout

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 EventEcommercePurchase event to gauge the effectiveness of your checkout process. Note: If you supply the ParameterValue parameter, you must also supply the ParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • ParameterValue (double) (optional)
  • ParameterCurrency (string) (optional)
  • ParameterTransactionID (string) (optional)
  • ParameterStartDate (string) (optional)
  • ParameterEndDate (string) (optional)
  • ParameterNumberOfNights (signed 64-bit integer) (optional) for hotel bookings
  • ParameterNumberOfRooms (signed 64-bit integer) (optional) for hotel bookings
  • ParameterNumberOfPassengers (signed 64-bit integer) (optional) for travel bookings
  • ParameterOrigin (string) (optional)
  • ParameterDestination (string) (optional)
  • ParameterTravelClass (string) (optional) for travel bookings

EventCampaignDetails

static string EventCampaignDetails

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 ParameterSource, ParameterMedium or ParameterCampaign. Params:

  • ParameterSource (string)
  • ParameterMedium (string)
  • ParameterCampaign (string)
  • ParameterTerm (string) (optional)
  • ParameterContent (string) (optional)
  • ParameterAdNetworkClickID (string) (optional)
  • ParameterCP1 (string) (optional)

EventCheckoutProgress

static string EventCheckoutProgress

Checkout progress.

Params:

  • ParameterCheckoutStep (unsigned 64-bit integer)
  • ParameterCheckoutOption (string) (optional)

EventEarnVirtualCurrency

static string EventEarnVirtualCurrency

Earn Virtual Currency event.

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

  • ParameterVirtualCurrencyName (string)
  • ParameterValue (signed 64-bit integer or double)

EventEcommercePurchase

static string EventEcommercePurchase

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 ParameterValue parameter, you must also supply the ParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • ParameterCurrency (string) (optional)
  • ParameterValue (double) (optional)
  • ParameterTransactionID (string) (optional)
  • ParameterTax (double) (optional)
  • ParameterShipping (double) (optional)
  • ParameterCoupon (string) (optional)
  • ParameterLocation (string) (optional)
  • ParameterStartDate (string) (optional)
  • ParameterEndDate (string) (optional)
  • ParameterNumberOfNights (signed 64-bit integer) (optional) for hotel bookings
  • ParameterNumberOfRooms (signed 64-bit integer) (optional) for hotel bookings
  • ParameterNumberOfPassengers (signed 64-bit integer) (optional) for travel bookings
  • ParameterOrigin (string) (optional)
  • ParameterDestination (string) (optional)
  • ParameterTravelClass (string) (optional) for travel bookings

EventGenerateLead

static string EventGenerateLead

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 ParameterValue parameter, you must also supply the ParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • ParameterCurrency (string) (optional)
  • ParameterValue (double) (optional)

EventJoinGroup

static string EventJoinGroup

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:

  • ParameterGroupID (string)

EventLevelUp

static string EventLevelUp

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:

  • ParameterLevel (signed 64-bit integer)
  • ParameterCharacter (string) (optional)

EventLogin

static string EventLogin

Login event.

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

EventPostScore

static string EventPostScore

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:

  • ParameterScore (signed 64-bit integer)
  • ParameterLevel (signed 64-bit integer) (optional)
  • ParameterCharacter (string) (optional)

EventPresentOffer

static string EventPresentOffer

Present Offer event.

This event signifies that the app has presented a purchase offer to a user. Add this event to a funnel with the EventAddToCart and EventEcommercePurchase to gauge your conversion process. Note: If you supply the ParameterValue parameter, you must also supply the ParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • ParameterQuantity (signed 64-bit integer)
  • ParameterItemID (string)
  • ParameterItemName (string)
  • ParameterItemCategory (string)
  • ParameterItemLocationID (string) (optional)
  • ParameterPrice (double) (optional)
  • ParameterCurrency (string) (optional)
  • ParameterValue (double) (optional)

EventPurchaseRefund

static string EventPurchaseRefund

E-Commerce Purchase Refund event.

This event signifies that an item purchase was refunded. Note: If you supply the ParameterValue parameter, you must also supply the ParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • ParameterCurrency (string) (optional)
  • ParameterValue (double) (optional)
  • ParameterTransactionID (string) (optional)

EventRemoveFromCart

static string EventRemoveFromCart

Remove from cart event.

Params:

  • ParameterQuantity (signed 64-bit integer)
  • ParameterItemID (string)
  • ParameterItemName (string)
  • ParameterItemCategory (string)
  • ParameterItemLocationID (string) (optional)
  • ParameterPrice (double) (optional)
  • ParameterCurrency (string) (optional)
  • ParameterValue (double) (optional)
  • ParameterOrigin (string) (optional)
  • ParameterDestination (string) (optional)
  • ParameterStartDate (string) (optional)
  • ParameterEndDate (string) (optional)

EventSearch

static string EventSearch

Search event.

Apps that support search features can use this event to contextualize search operations by supplying the appropriate, corresponding parameters. This event can help you identify the most popular content in your app. Params:

  • ParameterSearchTerm (string)
  • ParameterStartDate (string) (optional)
  • ParameterEndDate (string) (optional)
  • ParameterNumberOfNights (signed 64-bit integer) (optional) for hotel bookings
  • ParameterNumberOfRooms (signed 64-bit integer) (optional) for hotel bookings
  • ParameterNumberOfPassengers (signed 64-bit integer) (optional) for travel bookings
  • ParameterOrigin (string) (optional)
  • ParameterDestination (string) (optional)
  • ParameterTravelClass (string) (optional) for travel bookings

EventSelectContent

static string EventSelectContent

Select Content event.

This general purpose event signifies that a user has selected some content of a certain type in an app. The content can be any object in your app. This event can help you identify popular content and categories of content in your app. Params:

  • ParameterContentType (string)
  • ParameterItemID (string)

EventSetCheckoutOption

static string EventSetCheckoutOption

Set checkout option.

Params:

  • ParameterCheckoutStep (unsigned 64-bit integer)
  • ParameterCheckoutOption (string)

EventShare

static string EventShare

Share event.

Apps with social features can log the Share event to identify the most viral content. Params:

  • ParameterContentType (string)
  • ParameterItemID (string)

EventSignUp

static string EventSignUp

Sign Up event.

This event indicates that a user has signed up for an account in your app. The parameter signifies the method by which the user signed up. Use this event to understand the different behaviors between logged in and logged out users. Params:

  • ParameterSignUpMethod (string)

EventSpendVirtualCurrency

static string EventSpendVirtualCurrency

Spend Virtual Currency event.

This event tracks the sale of virtual goods in your app and can help you identify which goods are the most popular objects of purchase. Params:

  • ParameterItemName (string)
  • ParameterVirtualCurrencyName (string)
  • ParameterValue (signed 64-bit integer or double)

EventTutorialBegin

static string EventTutorialBegin

Tutorial Begin event.

This event signifies the start of the on-boarding process in your app. Use this in a funnel with EventTutorialComplete to understand how many users complete this process and move on to the full app experience.

EventTutorialComplete

static string EventTutorialComplete

Tutorial End event.

Use this event to signify the user's completion of your app's on-boarding process. Add this to a funnel with EventTutorialBegin to gauge the completion rate of your on-boarding process.

EventUnlockAchievement

static string EventUnlockAchievement

Unlock Achievement event.

Log this event when the user has unlocked an achievement in your game. Since achievements generally represent the breadth of a gaming experience, this event can help you understand how many users are experiencing all that your game has to offer. Params:

  • ParameterAchievementID (string)

EventViewItem

static string EventViewItem

View Item event.

This event signifies that some content was shown to the user. This content may be a product, a webpage or just a simple image or text. Use the appropriate parameters to contextualize the event. Use this event to discover the most popular items viewed in your app. Note: If you supply the ParameterValue parameter, you must also supply the ParameterCurrency parameter so that revenue metrics can be computed accurately. Params:

  • ParameterItemID (string)
  • ParameterItemName (string)
  • ParameterItemCategory (string)
  • ParameterItemLocationID (string) (optional)
  • ParameterPrice (double) (optional)
  • ParameterQuantity (signed 64-bit integer) (optional)
  • ParameterCurrency (string) (optional)
  • ParameterValue (double) (optional)
  • ParameterStartDate (string) (optional)
  • ParameterEndDate (string) (optional)
  • ParameterFlightNumber (string) (optional) for travel bookings
  • ParameterNumberOfPassengers (signed 64-bit integer) (optional) for travel bookings
  • ParameterNumberOfNights (signed 64-bit integer) (optional) for travel bookings
  • ParameterNumberOfRooms (signed 64-bit integer) (optional) for travel bookings
  • ParameterOrigin (string) (optional)
  • ParameterDestination (string) (optional)
  • ParameterSearchTerm (string) (optional) for travel bookings
  • ParameterTravelClass (string) (optional) for travel bookings

EventViewItemList

static string EventViewItemList

View Item List event.

Log this event when the user has been presented with a list of items of a certain category. Params:

  • ParameterItemCategory (string)

EventViewSearchResults

static string EventViewSearchResults

View Search Results event.

Log this event when the user has been presented with the results of a search. Params:

  • ParameterSearchTerm (string)

ParameterAchievementId

static string ParameterAchievementId

ParameterAdNetworkClickID

static string ParameterAdNetworkClickID

Ad Network Click ID (string).

Used for network-specific click IDs which vary in format.

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterAdNetworkClickID, "1234567"),
   // ...
 };

ParameterAffiliation

static string ParameterAffiliation

The store or affiliation from which this transaction occurred (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterAffiliation, "Google Store"),
   // ...
 };

ParameterCP1

static string ParameterCP1

Campaign custom parameter (string).

Used as a method of capturing custom data in a campaign. Use varies by network.

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCP1, "custom_data"),
   // ...
 };

ParameterCampaign

static string ParameterCampaign

The individual campaign name, slogan, promo code, etc.

Some networks have pre-defined macro to capture campaign information, otherwise can be populated by developer. Highly Recommended (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCampaign, "winter_promotion"),
   // ...
 };

ParameterCharacter

static string ParameterCharacter

Character used in game (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCharacter, "beat_boss"),
   // ...
 };

ParameterCheckoutOption

static string ParameterCheckoutOption

Some option on a step in an ecommerce flow (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCheckoutOption, "Visa"),
   // ...
 };

ParameterCheckoutStep

static string ParameterCheckoutStep

The checkout step (1..N) (unsigned 64-bit integer).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCheckoutStep, "1"),
   // ...
 };

ParameterContent

static string ParameterContent

Campaign content (string).

ParameterContentType

static string ParameterContentType

Type of content selected (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterContentType, "news article"),
   // ...
 };

ParameterCoupon

static string ParameterCoupon

Coupon code for a purchasable item (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCoupon, "zz123"),
   // ...
 };

ParameterCreativeName

static string ParameterCreativeName

The name of a creative used in a promotional spot (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCreativeName, "Summer Sale"),
   // ...
 };

ParameterCreativeSlot

static string ParameterCreativeSlot

The name of a creative slot (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCreativeSlot, "summer_banner2"),
   // ...
 };

ParameterCurrency

static string ParameterCurrency

Purchase currency in 3-letter ISO_4217 format (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterCurrency, "USD"),
   // ...
 };

ParameterDestination

static string ParameterDestination

Flight or Travel destination (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterDestination, "Mountain View, CA"),
   // ...
 };

ParameterEndDate

static string ParameterEndDate

The arrival date, check-out date or rental end date for the item.

This should be in YYYY-MM-DD format (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterEndDate, "2015-09-14"),
   // ...
 };

ParameterFlightNumber

static string ParameterFlightNumber

Flight number for travel events (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterFlightNumber, "ZZ800"),
   // ...
 };

ParameterGroupId

static string ParameterGroupId

ParameterItemBrand

static string ParameterItemBrand

Item brand (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterItemBrand, "Google"),
   // ...
 };

ParameterItemCategory

static string ParameterItemCategory

Item category (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterItemCategory, "t-shirts"),
   // ...
 };

ParameterItemId

static string ParameterItemId

ParameterItemList

static string ParameterItemList

The list in which the item was presented to the user (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterItemList, "Search Results"),
   // ...
 };

ParameterItemLocationId

static string ParameterItemLocationId

ParameterItemName

static string ParameterItemName

Item name (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterItemName, "abc"),
   // ...
 };

ParameterItemVariant

static string ParameterItemVariant

Item variant (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterItemVariant, "Red"),
   // ...
 };

ParameterLevel

static string ParameterLevel

Level in game (signed 64-bit integer).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterLevel, 42),
   // ...
 };

ParameterLocation

static string ParameterLocation

Location (string).

The Google Place ID that corresponds to the associated event. Alternatively, you can supply your own custom Location ID.

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterLocation, "ChIJiyj437sx3YAR9UWC8QkLzQ"),
   // ...
 };

ParameterMedium

static string ParameterMedium

The advertising or marParameter(eting, cpc, banner, email), push.

Highly recommended (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterMedium, "email"),
   // ...
 };

ParameterNumberOfNights

static string ParameterNumberOfNights

Number of nights staying at hotel (signed 64-bit integer).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterNumberOfNights, 3),
   // ...
 };

ParameterNumberOfPassengers

static string ParameterNumberOfPassengers

Number of passengers traveling (signed 64-bit integer).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterNumberOfPassengers, 11),
   // ...
 };

ParameterNumberOfRooms

static string ParameterNumberOfRooms

Number of rooms for travel events (signed 64-bit integer).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterNumberOfRooms, 2),
   // ...
 };

ParameterOrigin

static string ParameterOrigin

Flight or Travel origin (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterOrigin, "Mountain View, CA"),
   // ...
 };

ParameterPrice

static string ParameterPrice

Purchase price (double).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterPrice, 1.0),
  new Parameter(FirebaseAnalytics.ParameterCurrency, "USD"),  // e.g. $1.00 USD
   // ...
 };

ParameterQuantity

static string ParameterQuantity

Purchase quantity (signed 64-bit integer).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterQuantity, 1),
   // ...
 };

ParameterScore

static string ParameterScore

Score in game (signed 64-bit integer).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterScore, 4200),
   // ...
 };

ParameterSearchTerm

static string ParameterSearchTerm

The search string/eywords used (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterSearchTerm, "periodic table"),
   // ...
 };

ParameterShipping

static string ParameterShipping

Shipping cost (double).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterShipping, 9.50),
  new Parameter(FirebaseAnalytics.ParameterCurrency, "USD"),  // e.g. $9.50 USD
   // ...
 };

ParameterSignUpMethod

static string ParameterSignUpMethod

Sign up method (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterSignUpMethod, "google"),
   // ...
 };

ParameterSource

static string ParameterSource

The origin of your traffic, such as an Ad network (for example, google) or partner (urban airship).

Identify the advertiser, site, publication, etc. that is sending traffic to your property. Highly recommended (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterSource, "InMobi"),
   // ...
 };

ParameterStartDate

static string ParameterStartDate

The departure date, check-in date or rental start date for the item.

This should be in YYYY-MM-DD format (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterStartDate, "2015-09-14"),
   // ...
 };

ParameterTax

static string ParameterTax

Tax amount (double).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterTax, 1.0),
  new Parameter(FirebaseAnalytics.ParameterCurrency, "USD"),  // e.g. $1.00 USD
   // ...
 };

ParameterTerm

static string ParameterTerm

If you're manually tagging eyword campaigns, you should use utm_term to specify the eyword (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterTerm, "game"),
   // ...
 };

ParameterTransactionId

static string ParameterTransactionId

ParameterTravelClass

static string ParameterTravelClass

Travel class (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterTravelClass, "business"),
   // ...
 };

ParameterValue

static string ParameterValue

A context-specific numeric value which is accumulated automatically for each event type.

This is a general purpose parameter that is useful for accumulating a ey metric that pertains to an event. Examples include revenue, distance, time and points. Value should be specified as signed 64-bit integer or double. Notes: Values for pre-defined currency-related events (such as EventAddToCart) should be supplied using double and must be accompanied by a ParameterCurrency parameter. The valid range of accumulated values is [-9,223,372,036,854.77, 9,223,372,036,854.77].

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterValue, 3.99),
  new Parameter(FirebaseAnalytics.ParameterCurrency, "USD"),  // e.g. $3.99 USD
   // ...
 };

ParameterVirtualCurrencyName

static string ParameterVirtualCurrencyName

Name of currency type (string).

using Firebase.Analytics;
Parameter parameters[] = {
  new Parameter(FirebaseAnalytics.ParameterVirtualCurrencyName, "virtual_currency_name"),
   // ...
 };

UserPropertySignUpMethod

static string UserPropertySignUpMethod

The method used to sign in.

For example, "google", "facebook" or "twitter".

Public static functions

LogEvent

void LogEvent(
  string name,
  string parameterName,
  string parameterValue
)

Log an event with one string parameter.

See also:LogEvent(string, Parameter[])

Details
Parameters
name
Name of the event to log. Should contain 1 to 32 alphanumeric characters or underscores. The name must start with an alphabetic character. Some event names are reserved. See the FirebaseAnalytics.Event properties for the list of reserved event names. The "firebase_" prefix is reserved and should not be used. Note that event names are case-sensitive and that logging two events whose names differ only in case will result in two distinct events.
parameterName
Name of the parameter to log. For more information, see Parameter.
parameterValue
Value of the parameter to log.

LogEvent

void LogEvent(
  string name,
  string parameterName,
  double parameterValue
)

Log an event with one float parameter.

See also:LogEvent(string, Parameter[])

Details
Parameters
name
Name of the event to log. Should contain 1 to 32 alphanumeric characters or underscores. The name must start with an alphabetic character. Some event names are reserved. See the FirebaseAnalytics.Event properties for the list of reserved event names. The "firebase_" prefix is reserved and should not be used. Note that event names are case-sensitive and that logging two events whose names differ only in case will result in two distinct events.
parameterName
Name of the parameter to log. For more information, see Parameter.
parameterValue
Value of the parameter to log.

LogEvent

void LogEvent(
  string name,
  string parameterName,
  long parameterValue
)

Log an event with one 64-bit integer parameter.

See also:LogEvent(string, Parameter[])

Details
Parameters
name
Name of the event to log. Should contain 1 to 32 alphanumeric characters or underscores. The name must start with an alphabetic character. Some event names are reserved. See the FirebaseAnalytics.Event properties for the list of reserved event names. The "firebase_" prefix is reserved and should not be used. Note that event names are case-sensitive and that logging two events whose names differ only in case will result in two distinct events.
parameterName
Name of the parameter to log. For more information, see Parameter.
parameterValue
Value of the parameter to log.

LogEvent

void LogEvent(
  string name,
  string parameterName,
  int parameterValue
)

Log an event with one integer parameter (stored as a 64-bit integer).

See also:LogEvent(string, Parameter[])

Details
Parameters
name
Name of the event to log. Should contain 1 to 32 alphanumeric characters or underscores. The name must start with an alphabetic character. Some event names are reserved. See the FirebaseAnalytics.Event properties for the list of reserved event names. The "firebase_" prefix is reserved and should not be used. Note that event names are case-sensitive and that logging two events whose names differ only in case will result in two distinct events.
parameterName
Name of the parameter to log. For more information, see Parameter.
parameterValue
Value of the parameter to log.

LogEvent

void LogEvent(
  string name
)

Log an event with no parameters.

See also:LogEvent(string, Parameter[])

Details
Parameters
name
Name of the event to log. Should contain 1 to 32 alphanumeric characters or underscores. The name must start with an alphabetic character. Some event names are reserved. See the FirebaseAnalytics.Event properties for the list of reserved event names. The "firebase_" prefix is reserved and should not be used. Note that event names are case-sensitive and that logging two events whose names differ only in case will result in two distinct events.

LogEvent

unsafe void LogEvent(
  string name,
  params Parameter[] parameters
)

Log an event with associated parameters.

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 in the reference guide via the FirebaseAnalytics.Event* constants, but you may also choose to specify custom event types that are associated with your specific app.

Details
Parameters
name
Name of the event to log. Should contain 1 to 32 alphanumeric characters or underscores. The name must start with an alphabetic character. Some event names are reserved. See Analytics Events for the list of reserved event names. The "firebase_" prefix is reserved and should not be used. Note that event names are case-sensitive and that logging two events whose names differ only in case will result in two distinct events.
parameters
A parameter array of Parameter instances.

SetAnalyticsCollectionEnabled

void SetAnalyticsCollectionEnabled(
  bool enabled
)

Sets whether analytics collection is enabled for this app on this device.

This setting is persisted across app sessions. By default it is enabled.

Details
Parameters
enabled
true to enable analytics collection, false to disable.

SetCurrentScreen

void SetCurrentScreen(
  string screenName,
  string screenClass
)

Sets the current screen name and screen class, which specifies the current visual context in your app.

This helps identify the areas in your app where users spend their time and how they interact with your app.

Details
Parameters
screenName
The name of the current screen. Set to nullptr to clear the current screen name. Limited to 100 characters.
screenClass
The name of the screen class. If you specify nullptr for this, it will use the default. On Android, the default is the class name of the current Activity. On iOS, the default is the class name of the current UIViewController. Limited to 100 characters.

SetUserId

void SetUserId(
  string userId
)

Sets the user ID property.

This feature must be used in accordance with Google's Privacy Policy

Details
Parameters
userId
The user ID associated with the user of this app on this device. The user ID must be non-empty and no more than 36 characters long. Setting userId to NULL or nullptr removes the user ID.

SetUserProperty

void SetUserProperty(
  string name,
  string property
)

Set a user property to the given value.

Properties associated with a user allow a developer to segment users into groups that are useful to their application. Up to 25 properties can be associated with a user.

Suggested property names are listed Analytics User Properties (user_property_names.h) but you're not limited to this set. For example, the "gamertype" property could be used to store the type of player where a range of values could be "casual", "mid_core", or "core".

Details
Parameters
name
Name of the user property to set. This must be a combination of letters and digits (matching the regular expression [a-zA-Z0-9] between 1 and 24 characters long starting with a letter [a-zA-Z] character.
property
Value to set the user property to. Set this argument to NULL or nullptr to remove the user property. The value can be between 1 to 36 characters long.