Track method
After the tracker script loads, OpenRevenue exposeswindow.openrevenue.track(). Call it with a short event name when a meaningful action succeeds.
app.ts
Identify
After a visitor signs in, callidentify with your product’s stable user id (never an email or name). OpenRevenue hashes the value with SHA-256 in the browser and attaches it to later events as identified_id in event properties. Pass null to clear. In the default storage-free mode the hash is kept in memory only, so call identify on every page load while the visitor is signed in. When a visitor ID is stored, the hash is also kept in localStorage as _ova_uid.
app.ts
Examples
Track the moment that matters, not every click. For forms, call OpenRevenue after validation and the server action both succeed.checkout.tsx
pricing.tsx
Naming
Use lowercase, predictable names such assignup, download_report, or contact_submit. Avoid dynamic values like email addresses, order IDs, or full URLs in event names.