Ecommerce
To track an event using the ecommerce package, you can use the corresponding method on the tracker instance. For example:
Example
Methods
checkoutUpdated()
EcommerceCheckoutUpdatedProperties
checkout_id?
String
checkout_url?
String
currency?
String
customer_email?
String
customer_phone?
String
items?
Array<Map<String, Any?>>
product_categories?
Array
product_ids?
Array
product_names?
Array
product_skus?
Array
total_price?
Number
checkoutAbandoned()
EcommerceCheckoutAbandonedProperties
billing_address?
Map<String, Any?>
checkout_id?
String
checkout_url?
String
currency?
String
customer_email?
String
customer_phone?
String
items?
Array<Map<String, Any?>>
product_categories?
Array
product_ids?
Array
product_names?
Array
product_skus?
Array
total_price?
Number
orderConfirmed()
EcommerceOrderConfirmedProperties
billing_address?
Map<String, Any?>
currency?
String
customer_email?
String
customer_phone?
String
financial_status?
String
items?
Array<Map<String, Any?>>
order_created_at?
String
order_id?
String
order_number?
String
order_updated_at?
String
order_url?
String
product_categories?
Array
product_ids?
Array
product_names?
Array
product_skus?
Array
shipping_address?
Map<String, Any?>
total_price?
Number
orderCanceled()
EcommerceOrderCanceledProperties
billing_address?
Map<String, Any?>
currency?
String
customer_email?
String
customer_phone?
String
financial_status?
String
items?
Array<Map<String, Any?>>
order_canceled_at?
String
order_created_at?
String
order_id?
String
order_number?
String
order_updated_at?
String
order_url?
String
product_categories?
Array
product_ids?
Array
product_names?
Array
product_skus?
Array
reason?
String
shipping_address?
Map<String, Any?>
total_price?
Number
orderFulfilled()
EcommerceOrderFulfilledProperties
billing_address?
Map<String, Any?>
currency?
String
customer_email?
String
customer_phone?
String
financial_status?
String
fulfillment_status?
String
fulfillments?
Array<Map<String, Any?>>
items?
Array<Map<String, Any?>>
order_closed_at?
String
order_created_at?
String
order_id?
String
order_number?
String
order_processed_at?
String
order_updated_at?
String
order_url?
String
product_categories?
Array
product_ids?
Array
product_names?
Array
product_skus?
Array
shipping_address?
Map<String, Any?>
total_price?
Number
cartViewed()
EcommerceCartViewedProperties
cart_id?
String
checkout_url?
String
currency?
String
customer_email?
String
customer_phone?
String
items?
Array<Map<String, Any?>>
product_ids?
Array
product_names?
Array
product_skus?
Array
total_price?
Number
total_quantity?
Number
cartUpdated()
EcommerceCartUpdatedProperties
cart_id?
String
checkout_url?
String
currency?
String
customer_email?
String
customer_phone?
String
items?
Array<Map<String, Any?>>
product_ids?
Array
product_names?
Array
product_skus?
Array
total_price?
Number
total_quantity?
Number
productViewed()
EcommerceProductViewedProperties
price?
Number
product_id?
Any
product_image_url?
String
product_name?
Any
product_sku?
Any
product_url?
String
collectionViewed()
EcommerceCollectionViewedProperties
collection_id?
Any
collection_name?
Any
Last updated