trackr

Privacy policy and records

What a site operator needs to document when using trackr - data, retention, legal basis, hosting, and templates for the privacy policy and the record of processing.

This page collects what a site operator needs for the privacy policy and the record of processing activities, and gives templates for both. It describes how trackr works; it is not legal advice. Have the texts checked by a lawyer before you use them, and adapt them to your setup: the hosting, who runs the portal, and which ways of sending events you use.

Who is responsible

  • The site operator decides to measure the site and is the controller (Art. 4(7) GDPR).
  • Whoever runs the portal for you processes the data on your behalf: an agency or provider running a trackr portal for several sites is a processor and needs a data processing agreement with you (Art. 28 GDPR).
  • Hosting providers of a portal (Cloudflare, a database provider, a server host) are processors of whoever runs the portal, and need agreements as well.

What trackr processes

Data Where How long
IP address Only in memory, to form the session ID (with the last IPv4 octet set to 0) Not stored
User-Agent Only in memory; stored as device class, browser and OS name Classes as below
Session ID: first 16 hex characters of SHA-256 over a secret daily salt, the site, IP and User-Agent With visits and shop events when available With the raw events
Salt per site and day Database Deleted with the first event of the next day; after that, nobody can tell which IP an ID belongs to
Page (path and query, known personal parameters removed), referrer host, UTM parameters, country (from the hosting’s IP lookup header), device class, browser, OS, visible seconds per page, custom events and their properties Raw events The site’s retention, 60 days by default
Orders: products, prices, quantities, order ID, revenue, code, discount, source of the visit Raw e-commerce events The site’s retention
Daily totals per page, source, country, device, event, campaign, product, code and funnel step Database Until the site is deleted
Visitors who send Global Privacy Control: a count per page and day, no session ID and none of the data above Daily totals Until the site is deleted

Nothing is stored on the visitor’s device: trackr sets no cookies and uses neither localStorage nor sessionStorage. Details of what is removed: Privacy.

The session ID only connects the events of one visitor on one day; there is no ID across days and no profile. Once the day’s salt is deleted, the remaining ID cannot be traced to a person by the operator or anyone else. Until then it is pseudonymous data, so the GDPR applies.

The portal’s own accounts (email, password hash, login sessions with a cookie) concern the people who use the dashboard, not the site’s visitors, and belong in the record of the portal’s operator.

Analytics without consent is usually based on legitimate interest (Art. 6(1)(f) GDPR): the operator’s interest in knowing how the site is used, weighed against the visitors’ interests. Points for the weighing: no storage on the device, no ID across days, no data to third parties for their own purposes, data in the EU, raw data deleted after a fixed time.

§ 25 TDDDG requires consent for storing information on the device or reading it from there. trackr does neither. The European Data Protection Board reads the ePrivacy rule more broadly (Guidelines 2/2023): it also counts a request that a script makes the browser send. German supervisory authorities have not followed this in practice so far, but it is an open point. Whether you ask for consent anyway is your decision.

Global Privacy Control: a visitor whose browser sends Sec-GPC: 1 is treated as having objected to the analysis (Art. 21(5) GDPR allows objecting by automated means; whether the signal counts as one is not settled, but it is binding in California). By default (TRACKR_GPC=count) such a visit is only counted: one more page view for the page and day, with no session ID, device, country, referrer or campaign, and no row for the visit. An order from such a visitor keeps its sums (revenue, products, code), but no order ID and no source. With TRACKR_GPC=drop nothing is stored; TRACKR_GPC=off ignores the signal. Whether counting honours the objection is for you or your lawyer to judge; drop is the cautious choice. A shop’s own server passes the signal through the Astro integration and createForwarder(); Zaraz does not give a component the request headers, so use Zaraz’s own consent settings there.

Objection and requests: trackr cannot find the data of a single visitor, because it stores no IP and no ID that lasts beyond a day (Art. 11 GDPR). trackr has no built-in opt-out switch; one that remembers the choice would itself need storage on the device.

Choosing the hosting

  • Cloudflare D1: create the database with --jurisdiction eu (wrangler d1 create trackr --jurisdiction eu) so that it runs and stores data in the EU. The jurisdiction can only be set at creation. The Worker itself runs in the Cloudflare data centre nearest to the visitor; restricting that needs Cloudflare’s Regional Services.
  • Postgres: choose a region in the EU (Supabase, Neon and others offer Frankfurt), or a server of your own.
  • Providers with a US parent company: check whether the provider is certified under the EU-US Data Privacy Framework and offers standard contractual clauses, and name the transfer in the privacy policy.
  • Docker on your own server: the server host is the only processor involved.

Recipients that do not show

With the Astro integration, forwarding or Zaraz, the browser only talks to the site’s own domain. The data still goes on to the portal, and its operator is a recipient. Name it in the privacy policy, even though no third-party domain appears in the browser. With Zaraz, Cloudflare also processes the requests as the operator of Zaraz.

Template: privacy policy (German)

Replace the parts in square brackets and remove what does not apply.

Reichweitenmessung mit trackr

Wir messen die Nutzung dieser Website mit trackr, um zu erfahren, welche Seiten
aufgerufen werden, woher Besucher kommen und wie die Website verbessert werden kann.
Dabei werden keine Cookies gesetzt und keine Informationen auf Ihrem Endgerät
gespeichert oder von dort ausgelesen.

Bei jedem Seitenaufruf werden verarbeitet: die aufgerufene Seite, die Domain der
vorherigen Website (Referrer), Kampagnenparameter (UTM) in der Adresse, das Land
(abgeleitet aus der IP-Adresse), Gerätetyp, Browser und Betriebssystem (abgeleitet aus
der Browserkennung) sowie die Zeit, die eine Seite sichtbar war. [Bei Bestellungen
außerdem: Produkte, Preise, Bestellnummer, Umsatz, Gutscheincode.]

Ihre IP-Adresse wird nicht gespeichert. Um Aufrufe desselben Tages zusammenzufassen,
wird aus der gekürzten IP-Adresse, der Browserkennung und einem täglich wechselnden,
geheimen Zufallswert eine Kennung gebildet. Der Zufallswert wird am Folgetag gelöscht;
danach lässt sich die Kennung niemandem mehr zuordnen. Eine Wiedererkennung über
mehrere Tage findet nicht statt.

Rechtsgrundlage ist unser berechtigtes Interesse an der Analyse und Verbesserung
unserer Website (Art. 6 Abs. 1 lit. f DSGVO).

Die einzelnen Aufrufe werden nach [60] Tagen gelöscht. Danach bleiben nur
zusammengefasste Tageswerte ohne Kennung erhalten.

Die Daten werden [auf Servern von [Anbieter] in der EU | auf unserem Server in [Ort]]
gespeichert. [Die Auswertung betreibt [Name, Anschrift] in unserem Auftrag; mit ihm
besteht ein Vertrag zur Auftragsverarbeitung (Art. 28 DSGVO).] [Die Aufrufe werden über
unsere eigene Domain an [Name] weitergeleitet.]

Da wir keine IP-Adressen und keine dauerhaften Kennungen speichern, können wir einzelne
Aufrufe keiner Person zuordnen (Art. 11 DSGVO). Sie können der Verarbeitung dennoch
widersprechen (Art. 21 DSGVO); wenden Sie sich dazu an [Kontakt].

Template: privacy policy (English)

Analytics with trackr

We measure the use of this website with trackr to learn which pages are visited, where
visitors come from and how the website can be improved. No cookies are set and no
information is stored on or read from your device.

For every page view we process: the page, the domain of the previous website (referrer),
campaign parameters (UTM) in the address, the country (derived from the IP address),
device type, browser and operating system (derived from the browser's identification),
and how long a page was visible. [For orders also: products, prices, order number,
revenue, coupon code.]

Your IP address is not stored. To group the page views of one day, an identifier is formed
from the shortened IP address, the browser's identification and a secret random value that
changes daily. The random value is deleted the next day; after that, the identifier can no
longer be linked to anyone. Visitors are not recognised across days.

The legal basis is our legitimate interest in analysing and improving our website
(Art. 6(1)(f) GDPR).

Single page views are deleted after [60] days. Only daily totals without an identifier are
kept after that.

The data is stored [on servers of [provider] in the EU | on our own server in [location]].
[The analytics are run on our behalf by [name, address] under a data processing agreement
(Art. 28 GDPR).] [Page views are forwarded through our own domain to [name].]

As we store neither IP addresses nor lasting identifiers, we cannot link single page views
to a person (Art. 11 GDPR). You may still object to the processing (Art. 21 GDPR) by
contacting [contact].

Template: record of processing activities (Art. 30 GDPR)

Field Entry
Name of the processing Reach measurement of the website [domain] with trackr
Purpose Statistics on page views, sources, campaigns [and orders] to improve the website
Legal basis Art. 6(1)(f) GDPR, legitimate interest in reach measurement
Data subjects Visitors of the website
Categories of data Page, referrer host, UTM parameters, country, device class, browser, OS, visible time, custom events; daily session ID (pseudonymous) [; order data: products, order ID, revenue, code]
Recipients [Operator of the portal as processor]; [hosting provider(s)]
Transfer to third countries [None, storage in the EU] / [provider with US parent: DPF certification / standard contractual clauses]
Deletion Daily salt: next day. Raw events: after [60] days. Daily totals: when the site is deleted
Technical and organisational measures See below

Technical and organisational measures

  • No storage on the visitor’s device; no cookies, no localStorage.
  • IP address only in memory; last IPv4 octet (IPv6: last four groups) removed before hashing.
  • Session ID salted with a random secret per site and day; the salt is deleted the next day.
  • Known personal query parameters and email addresses are removed from URLs and event properties before storage.
  • Raw events deleted automatically after the site’s retention; afterwards only daily totals.
  • Events from servers are accepted only with the site’s secret, which is stored as a hash; events from browsers only from the site’s own domains (the tracking pixel excepted).
  • Dashboard access with personal accounts, roles (admin, viewer) and sites per account; passwords stored as PBKDF2 hashes, login sessions as hashes of their tokens, failed logins throttled.
  • Transport encryption (HTTPS) between browser, site and portal [on Cloudflare by default; with Docker through the TLS proxy in front of it].

Edit this page on GitHub