@wocart/storefront / index / StorefrontTracking
Interface: StorefrontTracking
Methods
addedToCart()
addedToCart(
lines):void
What the shopper just put in the basket — the lines added, not the whole basket.
Parameters
lines
readonly TrackedLine[]
Returns
void
checkoutStarted()
checkoutStarted(
checkout):void
The shopper began to check out: once per page, with the value the server quoted.
Parameters
checkout
lines
readonly TrackedLine[]
value
number
Returns
void
productViewed()
productViewed(
product):void
The shopper looked at a product, at the price they saw.
Parameters
product
price
number
productId
string
Returns
void
start()
start():
void
Report this page and every page a soft navigation brings, and fire the thank-you page's sale once. Call it once, from the layout; calling it again does nothing.
Returns
void