Extend SDK analytics

Extend SDK analytics

  1. Custom Preferences
    1. Go to Business Manager → Merchant Tools → Site Preferences → Custom Preferences → Extend: Storefront Preferences
    2. Configure the provided Extend credentials in the following fields (refer to Section 2.2 for additional info):
      • Extend Acces Token
      • Extend Store ID
    3. Ensure “Extend Analytics Switch” is set to “Yes”.

  1. Tracking events

    1. Extend.trackOfferViewed:
      This method is triggered when an Extend warranty offer is rendered on the screen to a user.

    2. 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.

    3. 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”.

    4. 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.

    5. 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.

    6. 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.

    7. 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.

    8. 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


Did this page help you?