When to track usage
Track usage when your product has metered or quota-based features:- API calls per month
- Storage used (GB)
- Team members added
- Emails sent
- Files processed
Client-side tracking
Use theuseTrackUsage hook:
Server-side tracking (recommended)
Server-side tracking is more reliable — it can’t be bypassed and handles retries automatically.Display usage to users
UsageDisplay component
Custom usage UI with hooks
Detect approaching limits
UpgradeNudge component can also handle this automatically — see Upgrade nudges.