Errors wait for consent
e.js reads errors in your visitors’ browsers, and an error tied to a visit is a record of that visit. In the EU and UK, assume that needs the visitor’s consent, so e.js waits for your consent banner by default.
Capture JavaScript errors on new-site.example’s pages and group them in Errors. It needs its own script, e.js (see Add e.js below).
Capture errors
Errors thrown by new-site.example’s own scripts, and the ones you send with lyli.error().
When e.js starts
It follows your consent banner, like the recorder.
Only where the law lets you capture without consent
In the UK, the law lists detecting technical faults among the uses that can be strictly necessary. In the EU, including Sweden, regulators read that exemption narrowly and usually expect consent. Turn this on only if your adviser agrees, and:
What e.js sends and keeps: lyli.io/data · General information, not legal advice.
Only new-site.example’s own scripts
Errors from scripts at other addresses (browser extensions, ads, chat widgets) are left out, and so are errors we can’t place. Browsers hide those errors’ details anyway.
Also count scripts from
Your own scripts served from another address, like a CDN. They need crossorigin="anonymous" on their tag and a matching CORS header, or browsers pass on only “Script error.”
Link errors to visits
With Individual visits on, each error links to its visit and, where there is one, to the replay at that moment. Set in Settings › General › Tracking.
Errors never count toward usage. In a flood (an error in a loop) we count every one and keep examples only up to a daily limit.
One report per error, from the visitor’s browser, after the removals below.
lyli.error().lyli.error(), if you use it (below). We don’t keep it for now, since no screen shows it yet.Beyond this list, e.js reads only the visitor’s two choices: their consent, from your banner, and whether they opted out, which the opt-out below keeps in their browser. Nothing else on the page: no cookies, form contents, or network responses. A message says whatever your code put in it, which is why we scrub it.
Error text can carry query strings, email addresses, phone numbers, and IDs. We take out what we recognize in two steps: in the visitor’s browser before sending, and on our servers before storing.
?… #…left outsent once?… #…[email][hidden]{id}[hidden]We remove what we recognize. A pattern can miss part of a number or an ID, so keep personal data out of your error messages.
Ignored errors don’t appear in Errors or its totals. We keep counting them, without examples, so removing a rule restores them with their history.
A * matches the rest of the message.
Errors on these pages are left out. A * matches the rest of the path.
Examples
Each error’s message, stack, and link to its visit. Then deleted.
Daily counts
The numbers in Errors, each with its error’s name and message, kept as long as your other reports.
Deleting a visit or the site
Deletes its errors with it.
Next to the tracking script, on every page. Like it, e.js waits for the page to be read before it runs, so it catches the errors thrown from then on and misses any from scripts that ran before it.
When a visitor agrees, your consent banner runs this, before or after e.js has loaded:
The recorder waits for the same lyliConsent. If you record replays too, run window.lyli?.record?.() in the same place.
Under 1 KB, loaded only by sites with Errors on. Like the tracking script, it sets no cookies, and we never store IP addresses in our database. Through your own domain? Serve /e.js beside /t.js: Install › Via your domain shows the route.
For errors your code catches, which never reach the browser’s own handler.
For now we don’t keep the details you add, since no screen shows them yet. Even so, never put anything in them that identifies a person: no names, email addresses, or account IDs.
The same opt-out as Settings › Recording’s: one choice stops everything we collect in that browser on new-site.example, error reports included.
Or from your own switch: lyli.optOut(), and lyli.optIn() to undo it.
In your site’s voice, following your settings above. Adapt it, and check it with whoever looks after your privacy terms.
new-site.example sends a report when a page fails in your browser, so it can find and fix the fault.
Error reports. If you agree, when a page on new-site.example fails in your browser, we send a report of the error: its message and where in our code it happened, with the page, your browser, system, device, country, and city, linked to the pseudonymous code of your visit. The query part of web addresses, and the email addresses, phone numbers, IP addresses, and IDs we can recognize, are removed first.
We use the reports to find and fix faults. We keep them for 90 days, then delete them. A daily count of each error, with its name and message, is kept as long as our other statistics. They’re made and stored with Lyli. No cookies are set.
You can withdraw your consent at any time in our consent settings, or opt out of analytics and recording on this site.