Events: Retail/Ecommerce
30/11/2019
The following events are recommended for retail and ecommerce apps. To learn how to implement these events (using logEvent
), refer to the developer documentation.
Retail and ecommerce apps should log the events listed in this article and the events for all apps. Logging events along with their prescribed parameters ensures maximum available detail in reports and lets you benefit from the latest Firebase features and integrations as they become available.
Event | Triggered... | Parameters |
---|---|---|
add_payment_info | when a user adds billing information | None |
add_to_cart | when a user adds items to cart | quantity, item_category, item_name, item_id, item_location_id, value, price, currency |
add_to_wishlist | when a user adds an item to wishlist | quantity, item_category, item_name, item_id, item_location_id, value*, price, currency |
begin_checkout | when a user begins checkout | coupon, currency, value |
ecommerce_purchase | when a user completes a purchase | coupon, currency, value, tax, shipping, transaction_id |
generate_lead | value, currency | |
purchase_refund | when a refund is issued | quantity, value, currency, transaction_id |
view_item | when a user sees one specific item/offering | item_id, item_location_id |
view_item_list | when a user sees a list of items/offerings | item_category |
view_search_results | when a user sees search results | search_term |
Note: Dynamic remarketing parameters for the web are optionally implemented with arrays. Arrays are not currently supported for dynamic remarketing parameters with Firebase at this time, but will be supported in a future release. This may impact the ability to exclude purchase products from dynamic ads.
* Nguồn: Google Analytics