E-commerce Tracking
Track commercial milestones alongside widget conversations so revenue shows up in Clarm attribution and downstream integrations.
Product viewed
Product viewedjavascript
window.ClarmTrack?.track('product_viewed', {
productId: 'prod_123',
name: 'Growth Plan',
price: 99.00,
currency: 'USD'
});Add to cart
Add to cartjavascript
window.ClarmTrack?.track('add_to_cart', {
productId: 'prod_123',
quantity: 1,
price: 99.00
});Purchase
Purchasejavascript
window.ClarmTrack?.track('purchase', {
amount: 99.00,
currency: 'USD',
plan: 'growth',
orderId: 'ord_abc123'
});*
If the visitor had a conversation before purchasing, Clarm automatically ties the revenue event back to that visitor journey. You can review the result in Dashboard → Conversions.
Shopify integration
For Shopify stores, see the Shopify guide for the canonical widget snippet plus checkout event examples.