π¦ ClawHub
Outlit SDK
by @leo-paz
Use when integrating Outlit tracking into web, server, native, or desktop apps; adding SDK event tracking, identity, consent, activation, billing, visitor tr...
π Tips & Best Practices
No browser events
1. Confirm the public env var prefix is correct and exposed to the client bundle.
2. Confirm provider/init runs once at app startup and wraps the app.
3. If autoTrack: false, call enableTracking() after consent.
4. Check Network for /api/i/v1/.
5. Check console warnings such as tracking not enabled, already initialized, or multiple instances.
Events not linked to users
OutlitProvider user, useOutlitUser, or setUser() for auth state.email and userId when available.customerId for account/workspace-scoped products.fingerprint before and after login.Server events missing
publicKey, not privateKey.eventName, not event.email, userId, fingerprint, or customerId to track().identify() needs email or userId.await outlit.flush() before serverless handlers return.Activation missing or delayed
user.activate() can queue until setUser()/identify() provides identity, but the queue is bounded.engaged/inactive calls; send product activity with track().TERMINAL
clawhub install outlit-sdk