Referrals
Share Ojava with people you trust. Friends get a simple 10% discount, and your dashboard shows aggregate tracking without exposing who joined or anything about their health.
How it works
Copy your invite link
Open Profile and copy the link in the Share Ojava card. The link uses your personal code and sends friends to Ojava through/r/your-code.Your friend gets 10% off
When referral checkout is active, a referred friend gets a flat 10% discount on the first paid membership checkout. Ojava lets Stripe apply that discount, so the price math stays in the billing system rather than in app code.You see aggregate tracking
Your card shows link visits, friends joined, paid memberships, tracked account credit, and credit that is ready or already paid. It never lists names, emails, records, uploads, or health details from anyone you referred.What the dashboard shows
The Profile referral card is intentionally compact. It shows the offer, your code, your private share link, visits, joined friends, paid memberships, and account-credit totals. This is the full tracking view for now because affiliate programs should stay simple: a link, a friend discount, and clear aggregate progress.
Owner dashboard
Ojava also has a separate owner-only affiliate dashboard at /admin/affiliates. It is different from the affiliate-facing Profile card: affiliates see only their own aggregate results, while the owner can review program totals, the visits-to-paid-memberships funnel, top affiliate codes, payout readiness, Stripe discount configuration, PostHog analytics status, and recent referral ledger events.
The owner dashboard is gated on the signed-in account email through OJAVA_ADMIN_EMAILS. It reads the first-party referral tables with a server-side service-role route and still avoids referee identities, names, emails, patient ids, uploads, records, and health data.
PostHog analytics
PostHog is the companion analytics layer for pageviews, named product events, dashboards, funnels, and feature flags. It is not the affiliate ledger. Ojava keeps affiliate source-of-truth facts in the referral_*, reward_ledger, and affiliate_payouts tables so payout and privacy rules stay deterministic. The admin dashboard sends only a coarse affiliate_admin_dashboard_viewed product event when PostHog is configured.
Privacy boundaries
Referral data is tied to your Ojava account id, not to patient records. Click rows are written server-side, and the fingerprint fields store HMAC values only when the server secret is present. Without that secret, Ojava stores no IP or user-agent fingerprint at all. The dashboard shows only aggregate counts and credit totals.
Account credit and payouts
Account credit is created after a referred friend completes a paid membership checkout. It holds through the refund window before becoming payable. Cash payouts are not automatic, and Ojava does not ask for tax or payout details from this surface today.
Note