How we handle your visitors’ data
What the script sends, what we keep and never keep, where it’s stored, and for how long, with the settings that change it. Written from our code and our data processing agreement.
What the script sends
The tracking script is about 1 KB. Each page view, custom event, and page speed measurement is one request with the fields below. It sets no cookies and, by default, writes nothing to the browser.
Before each send, the script reads one key from the browser’s storage, _aoff: when it’s set, nothing is sent. Browsers that report they’re automated send nothing either.
| Field | What it is | Example |
|---|---|---|
| s | Your site’s ID | s_… |
| t | What happened: a page view, a custom event, or page speed | pageview |
| u | The page’s address. We keep its path, read campaign tags from the query, then drop the query | https://harbor.example/pricing?utm_source=newsletter |
| r | The page the visitor came from, once per page load | https://www.google.com/ |
| n, p | A custom event’s name and properties, as your site sends them | signup_completed { "plan": "team" } |
| i | A random ID for the request, so a retried request counts once | a random ID, kept as the event’s ID |
| w | The window’s width, for the kind of device | 1440 |
| e, m | Page speed (LCP, INP, CLS, FCP, and TTFB), once per page load, tied to its page view | sent when the page is hidden |
| v | Only with “Recognize returning visitors”: the random ID kept in the browser | not sent by default |
What e.js sends, on sites with Errors on
Errors has its own script, e.js, which only sites that turn on Errors load. It sends one request for each error a page runs into, with the fields below.
| Field | What it is |
|---|---|
| The error | Its name and message, up to 500 characters, and how it was caught. |
| Where in the code | The script’s address, line, and column, and the stack, up to 2,000 characters, without queries or fragments. |
| The page view | The page’s address without its query, and which page view the error happened on. The device, browser, system, country, and city come from that page view, or, when none arrives, from the request, as a page view’s would. |
| Details | Only what your site sends with lyli.error(): at most 10, each up to 200 characters. Don’t send personal data in them. We check them and don’t keep them for now, since no screen shows them yet. |
| How many | At most 10 different errors per page view; the same one again isn’t sent. |
What we keep, and what we never keep
Per visit and per page view, from the tracking script, and error reports from e.js. Replays and heatmaps are below.
| Data | Verdict | How |
|---|---|---|
| Visitor code | kept | A pseudonymous code: a new one every day by default, or a hash of the browser’s random ID if you recognize returning visitors (see below). |
| Page path and hostname | kept, cleaned | Without query strings or fragments, up to 500 characters. |
| Referring site, source, and channel | kept | Where the visit came from. |
| Campaign tags | kept, cleaned | Email addresses replaced, phone numbers and IP and MAC addresses hidden, and IDs turned into short codes. |
| Country, city, and location | kept, rounded | Looked up from the IP address on the servers that run Lyli, then rounded to about 11 km, so it points to an area about the size of a city, never an address. |
| Device, browser, and operating system | kept | Read from the browser identification, which itself isn’t kept. |
| Times, entry and exit page, counts | kept | When a visit started and was last seen, and how many pages and events it had. |
| Custom events, properties, and revenue | kept as sent | Your site decides what to send. Don’t send personal data in them. |
| Page speed | kept | Tied to its page view. |
| Request ID | kept | The random ID the script sends with each page view or event, so a retried request counts once. |
| Recognized or not, direct or through your domain | kept | Whether a visit came from a recognized visitor, and whether each page view or event came directly or through your own domain. |
| IP address | in logs only | Used for the visitor code, the location, and to hold back floods of requests, in memory only, and never written to our database. Our hosting provider’s request logs keep it, with an approximate location, for about 7 days. |
| Browser identification | never stored | Only the kind of device, the browser, and the system are kept. |
| Query strings | never stored | Campaign tags are read and cleaned first. |
| Cookies | never set | The tracking script sets none. |
| Bots | counted separately | Left out of every number. We keep one total per site and day, by reason, by the name the bot gave from a fixed list, and by whether it came through your own domain. We keep nothing else about them. |
| Automated browsers | never sent | A browser that reports it’s driven by automation sends nothing, so we never see it. One that names itself in its user agent instead, like headless Chrome, is left out and counted with the bots. |
| Error reports, on sites with Errors on | kept 90 days | Each error’s name, message, and stack (not the details your site sends with it), after we remove queries, email addresses, phone numbers, IP addresses, and IDs we recognize, with the visit’s device, browser, system, country, and city. Each example is stored with its page view and visit (or, when none arrives, described from the request as a page view would be); it’s shown with the visit only where Individual visits is on. The page is kept as page views keep it. Daily counts, with each error’s name and message, are kept like page views. |
| Reports read through the API or MCP | sent as totals | Only what a key you created or a connection you allowed can read: to your own code, or to your AI assistant’s provider, under your agreement with them. Totals, never lists of single visits, replays, or history imported from Google Analytics. Totals can be small: in a short period or a narrow breakdown, a row can count a single visit, so treat them as your visitors’ data. |
| Page views from other hostnames | not counted | We keep only the most recent other hostname, to show you on Install. |
How we count visitors without cookies
By default nothing is stored in the visitor’s browser. To tell visits apart within a day, we turn the IP address and the browser identification into a code, mixed with a random value that changes every day:
sha256("c:" + today’s random value + ":" + site + ":" + IP address + ":" + user agent)
→ the first 32 characters are kept; the IP address and user agent are notIllustration: one person on three days gets three codes that can’t be linked. These aren’t real codes.
- One new random value every day (UTC). Yesterday’s is kept for visits that run past midnight; older ones are deleted, within 2 days. Once a day’s value is gone, its codes can’t be traced back.
- So the code is a daily code that can’t be followed from one day to the next. A person who comes back on another day counts again that day.
- The code is pseudonymous, not anonymous: while its day’s value exists, it could be made again. Our data processing agreement calls it pseudonymous and covers it as personal data.
Recognizing returning visitors
off by defaultA site can choose to recognize visitors who come back. Then the script keeps a random ID in the visitor’s browser (the storage key _aid), and we keep only a hash of it. It stays off until you turn on Recognize returning visitors in the site’s settings and add data-remember to your script tag.
<script defer src="https://app.lyli.io/t.js" data-site="s_…" data-remember></script>
In place of s_…, use your site’s ID from Install.
- Retention and cohorts: only recognized visitors can be in them.
- A visitor’s history across days.
- Attribution that reaches past one day.
- In the EU and UK this needs the visitor’s consent.
- Add
data-rememberonly after they agree.
Individual visits
Individual visits show each visit on its own: the pages it viewed in order, with its source, place, and device. Because that’s a record of what one visitor did, it’s a switch per site.
- Off by default on every new site, whatever its visitor identity. Turning it on asks first.
- It covers Sessions and the visit panel, Realtime’s activity, the Overview’s online strip, the latest page view on Install, replays, error examples, an event’s single completions, and per-visit files in Export.
- We keep each visit’s record either way, to count it. The switch decides whether your team can see visits one by one; when it’s off, reports show totals.
- In the UK this needs the visitor’s consent, and in the EU it usually does. The UK’s regulator, the ICO, lists logs of individual visitors among the uses that need it.
- Turn it on only where your visitors agreed or your law allows it.
Replays and heatmaps wait for consent
Replays and heatmaps are off until an admin switches them on, and they come with a script of their own. By default the recorder waits for your consent banner: nothing is recorded or counted until the visitor agrees.
Replays
Included, then €0.004 each- A replay records the page’s content and layout, mouse movements, clicks, scrolling, and the window’s size, for the share of visits you choose (15% by default).
- Hidden in the visitor’s browser before anything is sent: everything typed into fields and any part marked
data-lyli-hide. File uploads are left out, and page and link addresses lose their query strings. - Text and images are hidden too, unless you switch that off. Pictures set as CSS backgrounds still show.
- Only admins can watch replays, unless you let every member watch them.
- Kept for the days you choose, at most 30. Never shown in share links, and played in a sandboxed frame where nothing of the recorded page runs.
- Each month a plan includes 1 replay for every 100 page views and events it’s sized for; a trial includes 1,000 in all. Past those, each replay costs €0.004 (or $0.004) before VAT, up to a monthly limit your admins can set.
Heatmaps
Included- Counts only: where clicks land, by element, and how far visitors scroll. No visit, visitor, text, or address is kept with the counts.
- Drawn over a picture of the page taken from a visit that agreed to be recorded, kept 30 days.
- Counting waits for consent, like replays.
- A site can count without asking only where its law allows, with a notice and a way for visitors to opt out.
Where your data lives
Database in Frankfurt, Germany (EU)
Two providers handle your visitors’ data for us, both EU companies: one receives it in Paris, France, and the other runs our database in Frankfurt, Germany. It encrypts the database and its backups, and keeps each backup for up to 15 days.
| Provider | What for | Where |
|---|---|---|
| Clever Cloud | Hosting Lyli and receiving what your sites, links, and pixels send | Paris, France (a French company) |
| UpCloud | Running our database, with its encrypted backups | Frankfurt, Germany (a Finnish company) |
Where one of our providers, or one of theirs, processes data outside the EU, the transfer relies on an adequacy decision, the EU–US Data Privacy Framework where the provider is certified, or the European Commission’s standard contractual clauses.
How long we keep it
| What | How long |
|---|---|
| Visits, page views, and events | While your workspace has a trial or a plan; deleted 60 days after it ends. Until then, your admins can download them, also while the dashboards are paused. |
| Page speed | 25 months, within the above. |
| Each day’s random value | Deleted within 2 days. |
| Replays | The days you choose, at most 30. |
| Heatmap counts and pictures | Counts as long as the visits; pictures 30 days. |
| Bot totals | As long as the visits. |
| Error reports | Examples 90 days; daily counts, with each error’s name and message, as long as the visits. |
| History imported from Google Analytics | Until you delete it or the site, or 60 days after the trial or plan ends. |
| Counts that hold back floods of requests | In memory only, never stored. |
| Request logs, at our hosting provider | About 7 days. They include IP addresses and an approximate location. |
| Database backups, at our database provider | Up to 15 days, encrypted. Deleted data leaves them within 15 days. |
Who does what
For your visitors’ data you’re the controller and we’re your processor: you decide what’s collected, and we process it for you under our data processing agreement. It’s the European Commission’s standard contractual clauses, completed for Lyli, and part of our terms, accepted when a workspace is started.
- Have a legal basis for measuring your visitors, and tell them in your privacy notice.
- Ask for consent where your law requires it.
- Don’t send personal data in page addresses, event names or properties, error messages or details, or campaign tags.
- Process your data only to provide Lyli, as you set it up. We never sell it or use it for anything else, except where the law requires it, and then we tell you first unless the law forbids that.
- Help with your visitors’ requests and your impact assessments.
- Let your admins download your raw data until it’s deleted, also after a plan or trial ends.
- Allow audits, with reasonable notice, as the agreement sets out.
Consent: when you may need it
Whether you need your visitors’ consent depends on where they are and which features you turn on, even for Lyli’s default, which sets no cookies and stores nothing in the browser. This is how we read the rules today; check it with whoever looks after your privacy terms. Using Lyli doesn’t by itself make your site compliant.
| Feature | United Kingdom | European Union |
|---|---|---|
| Counting, cookieless (the default) | The law allows analytics without consent if your privacy notice explains it clearly and visitors have an easy, free way to opt out; Lyli’s tracking script doesn’t give one on its own yet (the recorder and e.js add it). Whether that covers the browser details behind the daily code, and the visit records we keep, isn’t settled. Ask your adviser. | Depends on the country. The EU’s regulators read the ePrivacy rule (EDPB, 2023) as covering scripts like ours. In Sweden and Germany, assume you need consent: their regulators have said visit statistics aren’t exempt as such. France exempts audience measurement only under strict conditions. Ask your adviser. |
| Recognizing returning visitors | Needs consent: the ID is stored in the visitor’s browser. | Needs consent: the ID is stored in the visitor’s browser. |
| Individual visits | Needs consent: the ICO lists logs of individual visitors among the uses that do. | Usually needs consent. |
| Replays | Needs consent: the ICO lists recordings of individual visitors. The recorder waits for it by default. | Assume it needs consent. The recorder waits for it by default. |
| Heatmaps | Consent, or a notice and an opt-out where the statistics exception applies. | Assume it needs consent. |
| Errors | Consent, unless it’s strictly necessary to detect technical faults in the service the visitor asked for, judged from the visitor’s side. e.js waits by default. | Assume it needs consent. e.js waits by default. |
| Short links and pixels | Assume it needs consent: the ICO’s guidance names tracking pixels and link decoration. | Assume it needs consent: the EDPB’s guidance names tracking pixels and tracked links. |
Sources: PECR regulation 6 and Schedule A1 paragraphs 4 and 5 (in force Feb 5, 2026) · ICO guidance on storage and access technologies (Apr 29, 2026) · EDPB Guidelines 2/2023 · PTS, notice to Folkhälsomyndigheten (Jun 26, 2023) · DSK, Orientierungshilfe Digitale Dienste · CNIL sheet no. 16 · Cal. Civ. Code §1798.140.
For your visitors: opting out
Anyone can stop Lyli in their own browser. Today, setting one key in the browser’s storage stops the tracking script from sending anything; it’s how you leave out your own visits.
localStorage.setItem("_aoff", "1")An opt-out link for your privacy page
It stops page views, error reports, heatmaps, and replays in that browser, on your site only. The choice is kept in the browser, not in a cookie, and nothing is sent once a visitor has opted out. The link and lyli.optOut() come with the recorder’s script and with e.js, so put one of them on your privacy page too (Settings › Recording › Add the recorder, or Settings › Errors › Add e.js); on a page with only the tracking script, the line above is the way.
<a href="#" data-lyli-opt-out>Opt out of analytics and recording</a>
lyli.optOut(); // and lyli.optIn() to undo itVisited a site that uses Lyli? That website’s owner decides what’s collected and is the one to ask about your data.
General information, not legal advice. If something here is wrong or out of date, write to legal@lyli.io.



