E-Commerce

Product Viewed

Track a product view.

interface ProductViewed {
  event: 'Product Viewed'
  properties: {
    $product: Product
  }
}

Product List Viewed

Track that a list of products was viewed. Should be used when a list of products has been shown to the user. Examples are category pages or search results.

$products - Products

interface ProductListViewed {
  event: 'Product List Viewed'
  properties: {
    $products?: Product[]
  }
}

Product Added

Use when a product has been added to cart.

interface ProductAdded {
  event: 'Product Added'
  properties: {
    $cart?: Cart
    $product: Product
  }
}

Product Removed

Use when a product has been removed from the cart.

interface ProductRemoved {
  event: 'Product Removed'
  properties: {
    $cart?: Cart
    $product: Product
  }
}

Cart Viewed

Add when a cart is viewed. Could be a full page cart view, or a quick cart popup.

interface CartViewed {
  event: 'Cart Viewed'
  properties: {
    $cart: Cart
  }
}

Checkout Started

Indicate that checkout has started.

interface CheckoutStarted {
  event: 'Checkout Started'
  properties: {
    $cart: Cart
  }
}

Checkout Step Viewed

Indicate that a checkout step has been viewed.

Interface

interface CheckoutStepViewed {
  event: 'Checkout Step Viewed'
  properties: {
    $cart: Cart
  }
}

Checkout Step Completed

Indicate that a checkout step has been completed.

interface CheckoutStepCompleted {
  event: 'Checkout Step Completed'
  properties: {
    $cart: Cart
  }
}

Order Completed

Indicate that an order has been placed.

interface OrderCompleted {
  event: 'Order Completed'
  properties: {
    $order: Order
  }
}

Searched

Indicate that a search was made.

interface Searched {
  event: 'Searched'
  properties: {
    $search: Search
  }
}

Discount Code Added

Indicate that a search was made.

interface DiscountCodeAdded {
  event: 'Discount Code Added'
  properties: {
    $discountCode: string
  }
}

Discount Code Removed

Indicate that a search was made.

interface DiscountCodeRemoved {
  event: 'Discount Code Removed'
  properties: {
    $discountCode: string
  }
}

Cart Abandoned

Indicate that a search was made.

interface CartAbandoned {
  event: 'Cart Abandoned'
  properties: {
    $cart: Cart
  }
}

Last updated