Versionv1

Standard E-commerce Events

Intastellar Analytics supports two groups of e-commerce events:

  • Checkout funnel events power the Checkout Funnel visualisation in the dashboard when two or more funnel steps are registered. Each step is tracked individually as visitors move through the purchase journey.
  • Standalone e-commerce events are tracked and reported individually — they are not part of the funnel visualisation.

Before firing any of these events, register them once in the dashboard under Events & Tracking. When registering, you assign each event a name and a kind — the kind determines how the event is categorised and visualised. The examples below use the kind name as the event name, which is the recommended convention.

Checkout Funnel Events

Fire these events in order as visitors progress through your checkout flow.

KindFire when…
view_itemA product detail page is rendered
add_to_cartA product is added to the cart
view_basketThe cart/basket page is viewed
begin_checkoutThe visitor initiates checkout
checkoutThe checkout form is submitted
payment_infoPayment details are entered
purchaseOrder confirmation is shown

view_item

intaAnalytics.track('view_item', {
  products: [{ id: 'SKU-001', name: 'Blue T-Shirt', price: 29.99, category: 'Apparel', variant: 'M / Blue' }],
  currency: 'EUR',
});

add_to_cart

intaAnalytics.track('add_to_cart', {
  products: [{ id: 'SKU-001', name: 'Blue T-Shirt', price: 29.99, quantity: 1, category: 'Apparel', variant: 'M / Blue' }],
  currency: 'EUR',
});

view_basket

No product fields are required — fire on every cart page render.

intaAnalytics.track('view_basket');

begin_checkout

intaAnalytics.track('begin_checkout');

checkout

intaAnalytics.track('checkout');

payment_info

intaAnalytics.track('payment_info', {
  value: 49.99,
  currency: 'EUR',
  data: { paymentMethod: 'credit_card' },
});

purchase

intaAnalytics.track('purchase', {
  transactionId: 'ORDER-123',
  value: 49.99,
  currency: 'EUR',
  products: [
    { id: 'SKU-001', name: 'Blue T-Shirt', price: 29.99, quantity: 1, category: 'Apparel', variant: 'M / Blue' },
    { id: 'SKU-002', name: 'Black Jeans',  price: 19.99, quantity: 1, category: 'Apparel', variant: '32 / Black' },
  ],
});

Standalone E-commerce Events

These events are tracked and reported individually — they do not contribute to the funnel visualisation.

KindFire when…
remove_from_cartA product is removed from the cart
wishlist_addA product is saved to a wishlist
refundA return or refund is processed
apply_couponA discount code is successfully applied

remove_from_cart

intaAnalytics.track('remove_from_cart', {
  products: [{ id: 'SKU-001', name: 'Blue T-Shirt', price: 29.99, quantity: 1, category: 'Apparel', variant: 'M / Blue' }],
  currency: 'EUR',
});

wishlist_add

intaAnalytics.track('wishlist_add', {
  products: [{ id: 'SKU-001', name: 'Blue T-Shirt', price: 29.99, category: 'Apparel', variant: 'M / Blue' }],
  currency: 'EUR',
});

refund

intaAnalytics.track('refund', {
  transactionId: 'ORDER-123',
  value: 29.99,
  currency: 'EUR',
  products: [{ id: 'SKU-001', name: 'Blue T-Shirt', price: 29.99, quantity: 1, category: 'Apparel' }],
});

apply_coupon

intaAnalytics.track('apply_coupon', {
  value: 10.00,
  currency: 'EUR',
  data: { coupon: 'SUMMER20' },
});

Field Reference

FieldTypeDescription
productsobject[]Product list — used in view_item, add_to_cart, remove_from_cart, wishlist_add, refund, and purchase
products[].idstringProduct SKU or database ID
products[].namestringDisplay name
products[].pricenumberUnit price
products[].quantitynumberDefaults to 1 if omitted
products[].categorystringProduct category
products[].variantstringSize, colour, or other variant
valuenumberOrder, refund, or discount amount
currencystringISO 4217 code, e.g. 'EUR'
transactionIdstringOrder ID — deduplicates repeat fires within a session
dataobjectArbitrary extra fields (coupon code, payment method, etc.)

Notes

  • Event names are set in the dashboard. The first argument to intaAnalytics.track() must match the name you registered under Events & Tracking. The examples above use the kind name as the event name — this is the recommended convention but not required.
  • transactionId prevents double-counting. On purchase, passing transactionId ensures that if the confirmation page reloads or the tag fires twice, only one purchase is recorded per session.
  • data fields are queryable. Values inside data are stored as-is and available in the dashboard's custom event explorer. Keys are capped at 40 characters; values at 500 characters.
  • Consent governs field storage. All events fire at minimal consent, but products and value are only stored when the visitor has granted statisticCookies consent.

Last updated