6 min read

Privacy, GDPR & Data Residency

Details on EU infrastructure in Germany, zero IP storage, sub-processors, GDPR/ePrivacy posture, and automatic retention expiration.

Imtiaz Rayhan
Imtiaz RayhanCo-Founder & Lead Engineer, DotCamp & TrimStats
Verified against live TrimStats APIs
Quick reference

How does TrimStats handle GDPR, ePrivacy, raw IP addresses, and EU hosting?

TrimStats hosts ClickHouse, Valkey, and Fastify ingestion on Hetzner in Nuremberg, Germany and PostgreSQL on Neon in Frankfurt, Germany. Raw visitor IPs are processed solely in volatile RAM for daily salted hashing and country lookup, never stored on disk, and default cookie-less mode writes zero browser storage.

GDPR vs ePrivacy: why cookie banners exist

Site owners often bundle GDPR and cookie banners together, though they are two distinct European rules. ePrivacy (the Cookie Directive) requires prior consent before storing or reading non-essential data on a visitor device (cookies or localStorage), even if the identifier is anonymous. GDPR governs how personal data (such as IP addresses or user IDs) is processed and where it is stored.

Legal conceptWhat it means for your siteHow TrimStats addresses it
Data Controller vs Data ProcessorYou (the website owner) are the Controller deciding why data is measured; TrimStats acts strictly as your Processor.Available signed Data Processing Agreement (DPA); zero resale or cross-site ad profiling.
ePrivacy terminal storageWriting cookies or localStorage for analytics typically triggers a consent banner in the EU.Default Cookie-less mode writes 0 bytes to visitor devices.
GDPR IP minimization & residencyRaw IP addresses are treated as personal data in the EU and raise transfer scrutiny when sent to US clouds.IPs are hashed in RAM with a daily rotating 32-byte salt on German EU servers and never written to disk.
Site settings / General & Privacy
Every site starts in strict Cookie-less (Daily salt) mode by default so you only opt in to client-side localStorage where your consent posture allows it.

Privacy-by-design architecture

TrimStats is engineered from the ground up as a Data Processor on behalf of site owners. We never sell analytics data, never build cross-site advertising profiles, and never share visitor telemetry with third-party ad networks.

  • Raw IP addresses are never written to disk: Incoming IPs are read transiently in RAM solely to derive the 2-letter ISO country code and (in cookie-less mode) the daily salted SHA-256 hash, then discarded immediately.
  • Zero cross-site tracking: Every visitor hash is scoped to a single site_id, so a visitor cannot be correlated across different customer websites.
  • Zero form-input capture: Even when UI friction tracking is enabled, TrimStats only records compact element tag/id/class selectors (for example button.checkout-cta), never keystrokes, form values, or DOM text.
  • No cookies in default mode: Default cookie-less deployments store nothing on the visitor device, aligning with strict GDPR and ePrivacy interpretations without requiring a consent banner.

Exactly what telemetry is stored

FieldExample valuePurpose
pathname & hostname/pricing, acme.comPageviews, entry/exit pages, goals, funnels
referrer_domain & UTM paramsnews.ycombinator.com, utm_source=launchChannel and campaign attribution
country (2-letter ISO)DE, US, GBGeographic breakdown via edge header or in-memory GeoIP
device, browser, osdesktop, Chrome, macOSCoarse User-Agent classification; raw UA string is not stored
duration_ms42500Visibility-aware engagement duration and bounce calculation
visitor_id & session_id64-bit hash + 30-min UUIDUnique visitor, session, and live visitor counts

EU hosting & sub-processors

All analytics telemetry and relational workspace configuration are hosted inside Germany (European Union).

Sub-processorRegionRole
Hetzner Online GmbHNuremberg, Germany (EU)Collector ingestion, ClickHouse analytics database, and Valkey cache
Neon Inc.Frankfurt, Germany (EU)PostgreSQL relational database for accounts, sites, goals, and encrypted webhook secrets
Vercel Inc.Global edge / EUNext.js web dashboard hosting and TLS delivery
Polar.shMerchant of RecordSubscription billing, invoicing, and global sales tax / VAT compliance

Review our full Privacy Policy, Cookie Policy, and Data Processing Agreement (DPA) for legal and procurement documentation.

Data retention & deletion

Raw analytics events expire automatically according to your plan retention window (90 to 1,095 days). Deleting a site from Site settings -> Danger zone immediately revokes its public key and removes its goals, funnels, alerts, and webhook secrets. For full workspace deletion or GDPR inquiries, email contact@trimstats.com.

Common technical questions

Does TrimStats store visitor IP addresses in ClickHouse, PostgreSQL, or server logs?
No. Incoming IP addresses are read transiently in collector memory to derive the 24-hour salted SHA-256 hash and resolve the ISO country code, then discarded immediately without persisting to disk.
Where can EU privacy teams review TrimStats sub-processors and Article 28 DPA?
TrimStats publishes its complete sub-processor list and GDPR Article 28 Data Processing Agreement at /legal/dpa and /legal/privacy, and provides countersigned copies on request via contact@trimstats.com.

Related guides