About five minutes, on the free plan, without a credit card.
1
Add the tracker to your app
Paste both tags into the <head> of your pages and replace YOUR_CLIENT_ID with the client id from your Privytics project. Setting apiUrl is required: without it the SDK sends events to OpenPanel's own hosted API instead of yours. If you build with a bundler, npm install @openpanel/web and pass the same options to the OpenPanel constructor instead.
<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
Define a small event taxonomy and stick to it
Start with the handful of events that make up your activation path, not everything a user can click. Use snake_case verbs in the past tense, keep the event name stable and put the variable parts in properties. Six well-named events you can build a funnel from beat sixty you cannot remember the meaning of. Add the rest once these are answering questions.
// Acquisition
window.op('track', 'signup_started', { source: 'pricing_page' });
window.op('track', 'signup_completed', { plan: 'free', source: 'pricing_page' });
// Activation: the steps a user must finish to get value
window.op('track', 'workspace_created', { seats: 1 });
window.op('track', 'data_imported', { rows: 240, method: 'csv' });
window.op('track', 'first_report_created', { template: 'retention' });
// Expansion and churn signals
window.op('track', 'teammate_invited', { invited_count: 3 });
window.op('track', 'plan_upgraded', { from: 'free', to: 'pro' });
3
Identify signed-in users so retention and cohorts follow the person
Anonymous tracking is enough for funnels inside one session. To see whether a user came back next week, or to build a cohort from people who signed up in March, pass your own user id as profileId after login. This is opt-in and you need your own lawful basis for it. Call clear() on logout so later events are not attributed to that profile.
// After a successful login or signup
window.op('identify', {
profileId: user.id,
firstName: user.firstName,
lastName: user.lastName,
email: user.email,
properties: {
plan: 'free',
signup_month: '2026-03',
},
});
// On logout
window.op('clear');