Skip to content
Data

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.

Last updated November 23, 2026General information, not legal advice

0Cookies set by the tracking script
2daysAt most, before each day’s random value is deleted
11kmAbout how far we round locations
30daysThe longest a replay is kept
Designed to help you meet GDPR and UK GDPRCookieless by defaultNo IP addresses in our databaseDatabase in Frankfurt, Germany (EU)The 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.

FieldWhat it isExample
sYour site’s IDs_…
tWhat happened: a page view, a custom event, or page speedpageview
uThe page’s address. We keep its path, read campaign tags from the query, then drop the queryhttps://harbor.example/pricing?utm_source=newsletter
rThe page the visitor came from, once per page loadhttps://www.google.com/
n, pA custom event’s name and properties, as your site sends themsignup_completed
{ "plan": "team" }
iA random ID for the request, so a retried request counts oncea random ID, kept as the event’s ID
wThe window’s width, for the kind of device1440
e, mPage speed (LCP, INP, CLS, FCP, and TTFB), once per page load, tied to its page viewsent when the page is hidden
vOnly with “Recognize returning visitors”: the random ID kept in the browsernot sent by default
Every request also carries what any request does: the IP address and the browser identification (user agent). We use them for the visitor code, the location, the kind of device, and to hold back floods of requests, and never store them in our database. Our hosting provider’s request logs keep the IP address for about 7 days.

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.

FieldWhat it is
The errorIts name and message, up to 500 characters, and how it was caught.
Where in the codeThe script’s address, line, and column, and the stack, up to 2,000 characters, without queries or fragments.
The page viewThe 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.
DetailsOnly 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 manyAt most 10 different errors per page view; the same one again isn’t sent.
e.js sets no cookies and sends nothing else from the page. Only sites that turn on Errors load it, and by default it waits for the visitor’s consent.

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.

DataVerdictHow
Visitor codekeptA 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 hostnamekept, cleanedWithout query strings or fragments, up to 500 characters.
Referring site, source, and channelkeptWhere the visit came from.
Campaign tagskept, cleanedEmail addresses replaced, phone numbers and IP and MAC addresses hidden, and IDs turned into short codes.
Country, city, and locationkept, roundedLooked 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 systemkeptRead from the browser identification, which itself isn’t kept.
Times, entry and exit page, countskeptWhen a visit started and was last seen, and how many pages and events it had.
Custom events, properties, and revenuekept as sentYour site decides what to send. Don’t send personal data in them.
Page speedkeptTied to its page view.
Request IDkeptThe random ID the script sends with each page view or event, so a retried request counts once.
Recognized or not, direct or through your domainkeptWhether a visit came from a recognized visitor, and whether each page view or event came directly or through your own domain.
IP addressin logs onlyUsed 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 identificationnever storedOnly the kind of device, the browser, and the system are kept.
Query stringsnever storedCampaign tags are read and cleaned first.
Cookiesnever setThe tracking script sets none.
Botscounted separatelyLeft 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 browsersnever sentA 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 onkept 90 daysEach 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 MCPsent as totalsOnly 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 hostnamesnot countedWe keep only the most recent other hostname, to show you on Install.
Our hosting provider keeps request logs, which include IP addresses and an approximate location, for about 7 days, to run and secure the service. We never store IP addresses in our database.

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:

The visitor code
sha256("c:" + today’s random value + ":" + site + ":" + IP address + ":" + user agent)
→ the first 32 characters are kept; the IP address and user agent are not
Day 1
Random valuevalue 1
The same person’s codea3f9…
Day 2
Random valuevalue 2
The same person’s code5d07…
Day 3Day 1’s value deleted
Random valuevalue 3
The same person’s codec8e2…

Illustration: 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 default

A 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.

The script tag, recognizing returning visitors
<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.

What it adds
  • Retention and cohorts: only recognized visitors can be in them.
  • A visitor’s history across days.
  • Attribution that reaches past one day.
Consent
  • In the EU and UK this needs the visitor’s consent.
  • Add data-remember only 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.

When it’s on
  • 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.
Consent
  • 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.
Example data · Settings › General › Tracking: the Individual visits switch and its consent notice

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.
Example data · Settings › Recording › Add the recorder: its script tag waits for consent. The site ID is a stand-in.

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.

ProviderWhat forWhere
Clever CloudHosting Lyli and receiving what your sites, links, and pixels sendParis, France (a French company)
UpCloudRunning our database, with its encrypted backupsFrankfurt, Germany (a Finnish company)
Payments and emails run on other providers, which aren’t sent your visitors’ data. They’re listed on Subprocessors.

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

WhatHow long
Visits, page views, and eventsWhile 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 speed25 months, within the above.
Each day’s random valueDeleted within 2 days.
ReplaysThe days you choose, at most 30.
Heatmap counts and picturesCounts as long as the visits; pictures 30 days.
Bot totalsAs long as the visits.
Error reportsExamples 90 days; daily counts, with each error’s name and message, as long as the visits.
History imported from Google AnalyticsUntil you delete it or the site, or 60 days after the trial or plan ends.
Counts that hold back floods of requestsIn memory only, never stored.
Request logs, at our hosting providerAbout 7 days. They include IP addresses and an approximate location.
Database backups, at our database providerUp to 15 days, encrypted. Deleted data leaves them within 15 days.
You can delete a site’s data, or the site, any time in its settings. Automated jobs delete the rest every day.

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.

15daysUntil deleted data leaves our database provider’s backups
30daysNotice before we add or replace a subprocessor, with a right to object
2Subprocessors that receive your visitors’ data
60daysUntil your data is deleted after a plan or trial ends
You
  • 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.
We
  • 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.

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.

In the browser’s console, on your site
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 link for your privacy page
<a href="#" data-lyli-opt-out>Opt out of analytics and recording</a>
Or from your own switch
lyli.optOut();   // and lyli.optIn() to undo it

Visited 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.

Last updated November 23, 2026

Add Lyli to your site

Paste one line of HTML. We confirm the first page view within seconds.

30 days free, every feature. No card needed.