Extend SDK analytics
Extend SDK analytics
- Custom Preferences
- Go to Business Manager → Merchant Tools → Site Preferences → Custom Preferences → Extend: Storefront Preferences
- Configure the provided Extend credentials in the following fields (refer to Section 2.2 for additional info):
- Extend Acces Token
- Extend Store ID
- Ensure “Extend Analytics Switch” is set to “Yes”.
-
Tracking events
-
Extend.trackOfferViewed:
This method is triggered when an Extend warranty offer is rendered on the screen to a user. -
Extend.trackProductAddedToCart:
This method is triggered when an user adds a (non-Extend) product to the cart. This event accepts the product's “productId” and the number of units (quantity) added to the cart. -
Extend.trackOfferAddedToCart
This method is triggered when an user adds an Extend warranty to the cart. This event accepts the product’s “productId”, the number of units (quantity), and the Extend warranty’s “planId”. -
Extend.trackOfferRemovedFromCart
This method is triggered when an user removes an Extend warranty from the cart. This event accepts the Extend warranty’s “planId” and the associated “productId” of the product the warranty would have covered. -
Extend.trackOfferUpdated
This method is triggered when an user increments or decrements the quantity of a warranty that has already been added to the cart. This event takes the Extend warranty’s “planId”, the associated “productId” of the product the warranty covers, as well as an update object containing the set of updates to apply to the warranty offer. If the quantity of warranty is updated to 0, the a Extend.trackOfferRemoved event is called, and further updates to this planId/productId will result in a no-op until it is re-added via Extend/trackOfferAddedToCart. -
Extend.trackProductRemovedFromCart
This method is triggered when an user removes a product from the cart that does not have a warranty offer associated with it. This event takes the “productId” of the product being removed from the cart. -
Extend.trackProductUpdated
This method is triggered when an user increments or decrements the quantity of a product that has already been added to the cart. This event takes the “productId” of the product being updated, as well as an update object containing the set of updates to apply to the product. The product being updated must not be associated with a warranty offer.
If the “productQuantity” passed into this method is 0, then Extend.trackProductRemoveFromCart is fired. -
Extend.trackCartCheckout
This method is triggered when a customer completes a purchase.-
After the Checkout flow is complete (at Order Confirmation page), there fires two tracking events - offer_sold, and total_cart_revenue
-
After the Checkout flow is complete (at Order Confirmation page), there fires two tracking events called - product_sold and total_cart_revenue
-
-
Updated about 1 year ago