Objection#

A visitor can object to collection without a cookie. The tracker and the collector both honour that objection. This page is the snippet a site publishes, and the description of the counter the process keeps.

Signals the collector honours#

Sec-GPC: 1 and DNT: 1 are objections. Either header is enough. The collector answers 202, the same status it uses for any accepted event, so the response does not reveal that the objection was noticed.

Nothing from that request is stored, metered, hashed or geolocated. The rate limiter may still see the address in memory. The address is not written to an event, a log line or a hash.

Page snippet#

The tracker sends nothing when navigator.globalPrivacyControl is true. It also sends nothing when the page sets window.__anticsOptOut to true. Place the snippet before antics.js. Clearing the flag is the same assignment with false. The tracker does not read or write a cookie, localStorage or sessionStorage for this flag.

Set the flag:

<script>
window.__anticsOptOut = true;
</script>
<script defer src="/antics.js"></script>

Clear the flag:

<script>
window.__anticsOptOut = false;
</script>

A later event on the same page is sent only after the flag is cleared and Global Privacy Control is not set.

Counter#

Honoured objections are counted in the process, once per site for the current UTC day. The counter holds the site id and the count. It does not hold an address, a user agent, or a timestamp finer than the UTC day. A new UTC day replaces the previous day’s count. The count is not written to the analytics database.

The admin metrics text names the series antics_honoured_objections_today. The label is the site id.