Introduction
Haya is a behavioral analytics platform that gives you deep visibility into how users interact with your web app — without sending data to a third party.
What Haya tracks
| Feature | What it does |
|---|---|
| Auto-tracking | Captures clicks, scrolls, pageviews, and form interactions automatically |
| Custom events | Track any user action with a single haya.track() call |
| Session replay | Record and replay exact user sessions (DOM-based, capped at 40 seconds) |
| Heatmaps | Visualize where users click and how far they scroll on any page |
How it works
You add a small JavaScript SDK to your website. The SDK collects behavioral events in the background and batches them to your Haya backend every few seconds. No user interaction is required — tracking starts the moment the page loads.
Your website → Haya SDK → Haya Backend → Your Dashboard
All data is stored in your own Haya account. Nothing goes to third parties.
Key concepts
SDK Key — A public identifier for your project. Included in your SDK snippet. Safe to expose — it's not a secret.
Project — Represents one website you want to track. Each project has its own SDK key and data is isolated per project.
Session — A continuous visit by a single user. A new session starts after 30 minutes of inactivity.
Session Replay — A DOM-based recording of exactly what the user saw and did. Not a video — it's a structured replay using rrweb, which means it's lightweight and privacy-respecting.
Next steps
- Quick Start — add Haya to your site in 5 minutes
- Configuration — all available SDK options
- Framework Guides — React, Next.js, Vue, plain HTML