About five minutes, on the free plan, without a credit card.
1
Add Privytics to your store
Drop the install snippet into your store theme so it loads on every page. On Shopify you add it to theme.liquid, on WooCommerce or any WordPress store through the theme header or a code-injection plugin, on BigCommerce through the script manager, and on Wix through custom code in the site settings. The snippet below is the generic path that works anywhere you can add HTML. Replace YOUR_CLIENT_ID with your project id from Privytics.
<script>
window.op=window.op||function(){var n=[];return new Proxy(function(){arguments.length&&n.push([].slice.call(arguments))},{get:function(t,r){return"q"===r?n:function(){n.push([r].concat([].slice.call(arguments)))}} ,has:function(t,r){return"q"===r}}) }();
window.op('init', {
apiUrl: 'https://api.privytics.com',
clientId: 'YOUR_CLIENT_ID',
trackScreenViews: true,
trackOutgoingLinks: true,
});
</script>
<script src="https://privytics.com/op1.js" defer async></script>
2
Track your key commerce events
Send an event at each moment that matters, with revenue and currency so Privytics can total sales. Call these from your theme, your cart scripts, or your order-confirmation page. Use consistent names like add_to_cart, checkout_started, and purchase_completed so they line up cleanly into a funnel later.
// When a shopper adds an item
window.op('track', 'add_to_cart', {
product_id: 'SKU-123',
revenue: 29.0,
currency: 'EUR',
});
// When checkout begins
window.op('track', 'checkout_started', {
revenue: 58.0,
currency: 'EUR',
});
// On the order-confirmation page
window.op('track', 'purchase_completed', {
order_id: '1043',
revenue: 58.0,
currency: 'EUR',
});
3
Build a checkout funnel and read the cohorts
In Privytics, create a funnel from your three events and read the drop-off at each step to find where carts are lost. Break purchase_completed down by product_id to see best sellers and total revenue, then open retention and group buyers by first purchase date to see repeat-purchase cohorts.
Funnel:
1. add_to_cart
2. checkout_started
3. purchase_completed
-> drop-off per step = where carts are lost
Revenue:
break down purchase_completed by product_id
sum the revenue property for total sales
Retention:
group buyers by first purchase date
-> repeat-purchase cohorts over the following weeks