Janus Client SDK
A lightweight JavaScript library for tracking events from web applications. Automatically handles batching, retries, rate limiting, and persistence.
Lightweight (~3KB)Auto RetryBatchingPersistence
Automatic Context
Context Capture#
Every event automatically includes context about the user's environment:
json
{"type": "your_event","payload": { /* your properties */ },"distinctId": "user_abc123","sessionId": "sess_xyz789","context": {"userAgent": "Mozilla/5.0...","language": "en-US","screen": {"width": 1920,"height": 1080,"colorDepth": 24},"viewport": {"width": 1200,"height": 800},"url": "https://example.com/page","path": "/page","referrer": "https://google.com","timezone": "America/New_York","timestamp": "2024-01-15T10:30:00.000Z"},"timestamp": "2024-01-15T10:30:00.000Z"}
Need Help?
If you have questions or run into issues, check out our troubleshooting guide or reach out to our support team.
Troubleshooting Guide