📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
const { queriesRunner, dbName } = require('./setup')
const queries = [
`SELECT throwIf(
count() = 0,
'The ${dbName}.events table does not exist. Run 2026_05_01_unify_events.js before dropping legacy tables.'
)
FROM system.tables
WHERE database = '${dbName}' AND name = 'events';`,
`DROP TABLE IF EXISTS ${dbName}.analytics;`,
`DROP TABLE IF EXISTS ${dbName}.customEV;`,
`DROP TABLE IF EXISTS ${dbName}.errors;`,
`DROP TABLE IF EXISTS ${dbName}.performance;`,
`DROP TABLE IF EXISTS ${dbName}.captcha;`,
]
queriesRunner(queries)