Funnel events
Sitecore Discover JS SDK for React offers the following funnel events that are dispatched when a user adds an item to their cart or wish list, completes an order, and so on.
trackAddToCartEvent
Tracks add to cart events.
Argument |
Type |
Description |
Value |
---|---|---|---|
|
array<ProductEventModel> |
Required. List of products added. |
n/a |
|
string |
Required. Describe the page type. |
PDP if event happened on product page. CATEGORY if event happened on category page. CART if event happened on cart page. QVIEW if added from a quick view modal. "home" if added on home page. |
|
Required. Describes the page and context within which this event is dispatched. |
n/a |
trackOrderConfirmEvent
Tracks details of the purchase made.
Argument |
Type |
Description |
---|---|---|
products |
array<ProductEventModel> |
Required. List of products to confirm. |
user |
UserEventModel |
Required. |
|
CheckoutEventModel |
Required. |
|
Required. Describes the page and context within which this event is fired. |
trackStatusCartEvent
Tracks cart status.
Argument |
Type |
Description |
---|---|---|
|
array<ProductEventModel> |
Required. List of products in cart. |
|
Required. Describes the page and context within which this event is fired. |
trackPDPViewEvent
Sent when a user enters a product detail page.
Argument |
Type |
Description |
---|---|---|
|
string |
Required. The stock keeping unit (SKU) of the product. |
|
object |
Fitment of SKU, if defined. |
|
Required. Describes the page and context within which this event is fired. |
trackAddToWishlistEvent
Tracks add to wishlist events
Argument |
Type |
Description |
Value |
---|---|---|---|
|
array<ProductEventModel> |
Required. List of products added. |
n/a |
|
string |
Required. Describe the page type. |
PDP if event happened on product page. CATEGORY if event happened on category page. CART if event happened on cart page. QVIEW if added from a quick view modal. "home" if added on home page. |