PrivacyOptions
Defined in: src/clicks/privacy.ts:11
Privacy options. Defaults are the most private useful setting.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
ip? |
"drop" | "hash" | "truncate" | "full" |
What to store of the client IP: "drop" (default) stores nothing, "truncate" zeroes the last IPv4 octet / last 80 IPv6 bits, "hash" stores a daily-salted SHA-256, "full" stores it as-is. |
src/clicks/privacy.ts:17 |
respectDoNotTrack? |
boolean |
Skip recording clicks from browsers sending DNT: 1 / Sec-GPC: 1. Default false. |
src/clicks/privacy.ts:27 |
salt? |
string |
Secret mixed into the daily salt. Default: a per-process random value. | src/clicks/privacy.ts:29 |
userAgent? |
boolean |
Store the raw user agent on click events. Default false. |
src/clicks/privacy.ts:25 |
visitor? |
"none" | "daily-hash" |
"daily-hash" (default) derives a visitor id from IP + user agent + tenant + a salt rotating daily, so uniques are countable per day without storing IPs. "none" disables it. |
src/clicks/privacy.ts:23 |