The tracking script sets no cookies. Each site picks one of three privacy profiles, which decide what it sends.
The three profiles
| Profile | When it collects | What it sends |
|---|---|---|
| Standard (default) | Always | Page address with only utm_source, utm_medium, utm_campaign, utm_term and utm_content; referrer without query string; browser, OS, device, screen size, language; engagement and link events. No persistent identifiers, no identification. |
| Strict | Always | No query string, external referrer cut to its origin, no title, screen size, tag or custom event properties, no identification, no automatic engagement or link events. |
| Consented | Always, as Standard until consent | Before consent, Standard. After consent, adds all campaign tags and ad click ids, and allows identification. GPC or DNT browsers stay on Strict. |
Fragments and the referrer's query string are always removed. No profile uses browser storage. Strict does not make your use exempt from any rule.
Privacy signals
A browser sending Global Privacy Control or Do Not Track is always treated as Strict, on every profile. The page view still counts with Strict data, and an analytics grant never lifts it. The server applies the same rule.
For replay, Do Not Track has no legal weight, so its senders are recorded once they allow replay. Global Privacy Control is a legal opt-out in several US states: Accept all must not include replay, and only a visitor's own replay switch counts. Your consent tool signals this by adding "replay" to window.lundot.explicitConsent before granting replay; the Cublya consent banner does this for you.
Lundot applies the profile on arrival
The server enforces the saved profile, so an old or edited script cannot collect more.
Switch the profile
If Privacy profile is disabled, ask a workspace admin.
- Open the site, then Site settings (or, before the first visit, Setup's Add the tracking script step).
- Under Tracking, Privacy profile, choose Strict, Standard or Consented. It saves at once.
- In Setup, choose Add the script (or Manage), copy the script and replace the one on your site. Strict and Consented scripts carry
data-privacy.
<script defer src="https://YOUR-LUNDOT-ADDRESS/script.js"
data-website-id="YOUR-SITE-ID"
data-privacy="consented"></script>
Setup also has a Next.js tab. Until you replace the script, the server drops whatever the saved profile does not allow.
Connect a consent tool (Consented)
A Consented site counts visits as Standard before consent. Your consent tool calls:
(window.lundot ??= { consented: [] }).consented.push("analytics"); // the visitor agreed
window.lundot?.revoke?.("analytics"); // the visitor withdrew an earlier grant
Install the tag with data-privacy="consented" (without it, Standard applies). On Standard or Strict, revoke("analytics") stops all counting until a later consent("analytics"). On Consented, it ends identification, extra campaign tags and ad click ids; Standard counting continues. A first "reject" is not a withdrawal: revoke only if the visitor granted on this page.
Consent is held in memory only: call the first line on every page load, before or after the script loads. Use push, not an assignment to window.lundot.consented, which throws if window.lundot does not exist yet.
| Before consent, or after it is withdrawn | After consent("analytics") |
|
|---|---|---|
| Page views, custom, engagement, link and download events, performance data | Sent, as Standard | Sent |
| Page address | utm_source, utm_medium, utm_campaign, utm_term and utm_content only |
All campaign tags and ad click ids |
Identification (data-distinct-id, lundot.identify()) |
Blocked | Allowed (not via Consent Mode) |
| Cookies and browser storage | None | None |
| Replays and heatmaps | Only with "replay" consent |
Only with "replay" consent |
A grant upgrades later hits only. An ad click id on the landing address is kept only when consent is known before that page view (pushed before the script loads, or a Consent Mode update already in dataLayer). Revoking drops the identity and session at once. Nothing is queued.
Google Consent Mode
A Consented site also reads gtag consent commands from window.dataLayer, including later ones. An update with analytics_storage: "granted" counts as consent("analytics"), "denied" as revoke("analytics"). default commands are ignored. Consent Mode never allows identification (that needs the push above) and never grants replay.
Give replay consent
"replay" covers replays and heatmaps and needs its own choice, separate from "analytics". On each page load after the visitor agreed:
(window.lundot ??= { consented: [] }).consented.push("replay");
It works before or after the tag loads but is not saved: your consent tool must remember it. On withdrawal, call:
window.lundot?.revoke?.("replay");
Tell visitors what a replay records (details). A line you can adapt: "Replays record how you use this site, including the text and images you see, request timings, page errors and page speed. What you type and personal details are hidden."
Withdrawal stops the recorder and drops buffered events but does not delete recordings already sent (data retention and deletion). Strict records no replays or heatmaps.
If you use a consent manager
Use this Consented tag:
<script defer src="https://YOUR-LUNDOT-ADDRESS/script.js"
data-website-id="YOUR-SITE-ID" data-privacy="consented"></script>
Call this from your manager's callback on each page load and on every change, mapping choice.analytics and choice.replay to its categories. A first rejection revokes nothing:
let analyticsGrantedThisPage = false;
let replayGrantedThisPage = false;
function onConsentChoice(choice) {
if (choice.analytics) {
(window.lundot ??= { consented: [] }).consented.push("analytics");
analyticsGrantedThisPage = true;
} else if (analyticsGrantedThisPage) {
window.lundot?.revoke?.("analytics");
analyticsGrantedThisPage = false;
}
if (choice.replay) {
(window.lundot ??= { consented: [] }).consented.push("replay");
replayGrantedThisPage = true;
} else if (replayGrantedThisPage) {
window.lundot?.revoke?.("replay");
replayGrantedThisPage = false;
}
}
If you use Google Consent Mode
Use the Consented tag above. Consent Mode never grants replay, so connect your manager's replay choice to the "replay" push, including restored choices. choice.replay is your own category, not a Consent Mode field:
let replayGrantedThisPage = false;
function onConsentModeChoice(choice) {
gtag("consent", "update", {
analytics_storage: choice.analytics ? "granted" : "denied",
});
if (choice.replay) {
(window.lundot ??= { consented: [] }).consented.push("replay");
replayGrantedThisPage = true;
} else if (replayGrantedThisPage) {
window.lundot?.revoke?.("replay");
replayGrantedThisPage = false;
}
}
Do not call revoke("analytics") on a first rejection: the Consent Mode update handles it.
If you use your own banner
Use the Consented tag above, store the choice and apply it on every page load. For a banner that saves "yes" or "no" under site-replay-choice:
let replayGrantedThisPage = false;
function setReplayChoice(agreed) {
localStorage.setItem("site-replay-choice", agreed ? "yes" : "no");
if (agreed) {
(window.lundot ??= { consented: [] }).consented.push("replay");
replayGrantedThisPage = true;
} else if (replayGrantedThisPage) {
window.lundot?.revoke?.("replay");
replayGrantedThisPage = false;
}
}
if (localStorage.getItem("site-replay-choice") === "yes") {
(window.lundot ??= { consented: [] }).consented.push("replay");
replayGrantedThisPage = true;
}
// Wire the banner's Accept replays and Reject replays buttons to
// setReplayChoice(true) and setReplayChoice(false).
Lundot never reads that storage. Let visitors change their choice later. To verify, see Replays and heatmaps.
Do you need a banner?
Ask your adviser. Facts to bring (see also what a cookieless setup keeps):
- The script sets no cookies and, on Standard and Strict, uses no browser storage.
- Consented counts every visit as Standard and asks consent only for identification and ad click ids. If counting itself needs consent, load the script only after the visitor agrees.
- Replays always need separate consent.
- Never send personal data in page addresses or custom events.
Your site's own cookies and tools are outside Lundot.