TrackingOpt-out, GPC and DNT

Opt-out, GPC and DNT

Lynq needs no consent banner: it sets no cookies and stores nothing that identifies a person. Some sites still want to offer a switch, and some browsers send a signal. Here is how each is handled.

A visitor opt-out

lynq.optOut(); // stop measuring this browser
lynq.optIn();  // measure again

optOut() writes one flag to localStorage (lynq_optout), the only thing the script ever persists. While it is set, the script sends nothing. A typical use is a link on your privacy page:

<button onclick="lynq.optOut(); this.textContent = 'You are opted out'">Opt out of analytics</button>

Global Privacy Control

A browser that sends GPC is treated as anonymous, always: pageviews are counted, identify() calls are ignored. This cannot be turned off, because it is what the signal asks for.

Do Not Track

Do Not Track is not honoured by default. With data-respect-dnt on the script tag, a browser that sends DNT gets nothing sent at all, not even a pageview.

Localhost

Visits on localhost and 127.0.0.1 are ignored so development never counts, unless the tag has data-allow-localhost.