Integration
Conversions & value
conversion() with revenue and metadata.
Use conversion() for outcomes you measure in funnels and revenue. Put currency and order metadata in the third argument.
Order with revenue
javascript
if (window.Tracuto?.isReady?.()) {
window.Tracuto.conversion('purchase', 84.5, {
currency: 'USD',
orderId: 'ord_123',
items: [{ sku: 'T-SHIRT', qty: 2, price: 42.25 }],
});
}Custom event with value
Non-conversion events can still carry a numeric value:
javascript
if (window.Tracuto?.isReady?.()) {
window.Tracuto.track('bundle_viewed', {
category: 'pricing',
value: 199,
metadata: { currency: 'USD', tier: 'business' },
});
}