Skip to content
DocsEvent TrackingE-commerce Events
Event Tracking

E-commerce Events

E-commerce Event Tracking

Track the complete purchase funnel: product views, add to cart, checkout, and purchase. Compatible with GA4 e-commerce events.

Auto-tracking Available

Enable autoTrackEcommerce: true and Conseto will auto-detect common e-commerce platforms (Shopify, WooCommerce).

Funnel Events

javascript
// Product view
conseto.track('view_item', {
  item_id: 'SKU-001',
  item_name: 'Premium Widget',
  price: 49.99,
  currency: 'EUR'
});

// Add to cart
conseto.track('add_to_cart', {
  item_id: 'SKU-001',
  item_name: 'Premium Widget',
  price: 49.99,
  quantity: 1
});

// Begin checkout
conseto.track('begin_checkout', {
  value: 49.99,
  currency: 'EUR',
  items_count: 1
});

// Purchase complete
conseto.trackConversion('purchase', {
  transaction_id: 'ORDER-12345',
  value: 49.99,
  currency: 'EUR',
  tax: 9.50,
  shipping: 5.99,
  items: [{
    item_id: 'SKU-001',
    item_name: 'Premium Widget',
    price: 49.99,
    quantity: 1
  }]
});
Documentation — CONSETO | CONSETO