vnanalytics / com.venuenext.vnanalytics.firebase / FirebaseAnalytics

FirebaseAnalytics

class FirebaseAnalytics : AnalyticsInterface

Constructors

<init>

FirebaseAnalytics(context: Context)

Functions

className

Get class name.

fun className(): String?

handlePushNotificationIntent

Handle intent routing for analytic push notifications (inbox, messaging, etc.)

fun handlePushNotificationIntent(activity: Activity, intent: Intent): Unit

initialize

Initialize analytics framework.

fun initialize(context: Context): Unit
fun initialize(context: Context, application: Application): Unit

onHandleIntent

Handle push notification display (inbox, messaging, etc.)

fun onHandleIntent(context: Context, intent: Intent?, bundle: Bundle?): Boolean

registerPush

Register push notifications (inbox, messaging, etc.)

fun registerPush(token: String): Unit

track

fun track(eventType: Event, metadata: Bundle): Unit

trackAddsPaymentType

Track adds payment type via analytics framework.

fun trackAddsPaymentType(paymentType: String, cardType: String): Unit

trackAddToCart

Track add to cart via analytics framework.

fun trackAddToCart(itemId: String, itemName: String, itemCategory: String, variant: String, price: Double, quantity: Long): Unit

trackBeginCheckout

Track begin checkout via analytics framework.

fun trackBeginCheckout(items: ArrayList<Bundle>): Unit

trackCheckoutProgress

Track checkout progress via analytics framework.

fun trackCheckoutProgress(items: ArrayList<Bundle>, orderState: String): Unit

trackEvent

Tracks event via analytics framework.

fun trackEvent(eventName: String, attributes: Bundle): Unit
fun trackEvent(eventType: Event, attributes: Bundle): Unit

trackMenuItemSelection

Track menu item selection via analytics framework.

fun trackMenuItemSelection(itemId: String, itemName: String, itemCategory: String, variant: String, price: Double): Unit

trackPurchase

Track purchase via analytics framework.

fun trackPurchase(items: ArrayList<Bundle>, transactionId: String, affiliation: String, value: Double, tax: Double, shipping: Double): Unit

trackRemoveFromCart

Track remove from cart via analytics framework.

fun trackRemoveFromCart(itemId: String, itemName: String, itemCategory: String, variant: String, price: Double, quantity: Long): Unit

trackScreenView

Tracks screen view event via analytics framework.

fun trackScreenView(activity: Activity, screenName: String): Unit

trackUserId

Track userId via analytics framework.

fun trackUserId(userId: String?): Unit

trackUserProperty

Track user property via analytics framework.

fun trackUserProperty(name: String, value: String?): Unit