Data Retention
Cloud
Analytics data in the Statalog Cloud is retained for the lifetime of your account. There is no automatic expiration or rolling deletion window — your historical data from day one remains accessible for as long as your account is active.
Exporting your data: You can export your analytics data at any time from the dashboard. Go to Account → Export to download your pageviews, events, and session data as CSV. You can also query everything via the REST API and pipe the results to any format your downstream tools require.
Deleting a site: Deleting a site from Account → Websites permanently and irreversibly deletes all analytics data associated with that site — every pageview, event, heatmap, and session record. This cannot be undone. Export your data before deleting a site if you need to keep a copy.
Deleting your account: If you close your Statalog account, all associated analytics data is permanently deleted within 30 days. You will receive a confirmation email when deletion is complete. Export your data before closing your account.
Backups: Statalog maintains encrypted backups of analytics data for disaster recovery purposes. Backup data is subject to the same deletion schedule as primary data when a site or account is deleted.
Third-party sharing: Analytics data is never shared with, sold to, or made accessible to any third party. It is used exclusively to populate your own dashboard and API responses.
Community (self-hosted)
When you self-host Statalog, you have complete control over data retention. Analytics data is stored in ClickHouse tables on your own server. You can purge or truncate tables at any time using standard ClickHouse SQL:
-- Delete all pageviews older than 90 days
ALTER TABLE pageviews DELETE WHERE timestamp < now() - INTERVAL 90 DAY;
-- Truncate a table entirely (irreversible)
TRUNCATE TABLE pageviews;
You can also configure ClickHouse TTL policies to automatically expire old data:
ALTER TABLE pageviews MODIFY TTL toDate(timestamp) + INTERVAL 1 YEAR;
No data from your self-hosted installation is ever sent to Statalog servers. Your infrastructure, your rules.