ecommerceEvents: {
    viewProduct: (
        productId: string,
        productName: string,
        price: number,
    ) => void;
    addToCart: (
        productId: string,
        productName: string,
        quantity: number,
        price: number,
    ) => void;
    removeFromCart: (productId: string, productName: string) => void;
    beginCheckout: (cartValue: number, itemCount: number) => void;
    completeCheckout: (
        orderId: string,
        orderValue: number,
        itemCount: number,
    ) => void;
    designCreated: (productId: string, designType: string) => void;
    designSaved: (designId: string) => void;
} = ...

Type declaration

  • viewProduct: (productId: string, productName: string, price: number) => void
  • addToCart: (
        productId: string,
        productName: string,
        quantity: number,
        price: number,
    ) => void
  • removeFromCart: (productId: string, productName: string) => void
  • beginCheckout: (cartValue: number, itemCount: number) => void
  • completeCheckout: (orderId: string, orderValue: number, itemCount: number) => void
  • designCreated: (productId: string, designType: string) => void
  • designSaved: (designId: string) => void