Data retention
Your analytics are kept while your plan is active, up to three years. What that covers, the replay exception, and what happens after a cancellation.
Your data stays for as long as your plan is active, up to three years at row level, and totals for as long as the site exists. The one exception is session replays, which are kept 90 days.
What is kept, and for how long
| Data | Kept for |
|---|---|
| Raw events and visit sessions | While the plan is active, up to 3 years |
| Heatmap clicks, scroll reach and their totals | While the plan is active, up to 3 years |
| Bot and AI crawler requests | While the plan is active, up to 3 years |
| Session replays | 90 days |
| Hourly and daily totals, which do not identify visitors | While the site exists |
| Identities attached with identify | Until the site is deleted |
| The daily secret used for cookieless counting | Deleted after two days |
| Deleted data still sitting in encrypted backups | Removed within 35 days |
What this means when you query
Overviews, time series and most breakdowns read rolled-up totals, so they go back as far as the site does. Anything that needs raw events is limited to the last three years, and a longer range is quietly clamped — API responses say so with clamped: true.
Raw events are needed for visitor search and journeys, realtime, and for filters and dimensions such as entry page, region, city, language, goal and post. See the REST API overview for the full list.
Tip. If you need history beyond three years at row level, export it on a schedule.
statsy exportor the CSV export endpoint writes any breakdown straight into a file.
After a cancellation
A cancelled plan keeps everything for 30 days, with a warning email three days before the deadline. Restart in that window and nothing is lost. After it, the analytics for the workspace are deleted; sites and settings stay, so a new plan starts collecting again immediately.
An ended trial and an expired redeem code are different: they turn the dashboard read-only and delete nothing.
Deleting sooner
Deleting a site removes its analytics, replays and heatmaps right away rather than waiting for retention to run. Deleting data covers that and account deletion.
Last updated · Markdown version