Skip to content

Commit 24a42de

Browse files
Update docs for GDPR/Cookies Consent integrations (#540)
* add snippet for disabling telemetry * reword and mention cookies explicitly * explicitly mention Posthog * remove first line * Update integrations/privacy/overview.mdx Co-authored-by: Ricardo Nunez <[email protected]> * add other cookie consent thing * update cookies keys --------- Co-authored-by: Ricardo Nunez <[email protected]>
1 parent 1853b0d commit 24a42de

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

integrations/privacy/overview.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,28 @@ You can add data privacy platforms onto your docs. Add the `integrations` field
2424
```
2525

2626
If you'd like to request a data privacy platform integration, please let us know in [our community](https://mintlify.com/community).
27+
28+
## Cookie Consent and Disabling Telemetry
29+
30+
If you need to check if a user has already consented to cookies for GDPR compliance, you can specify a local storage key and value under `cookies`:
31+
32+
```json
33+
"integrations": {
34+
"cookies": {
35+
"key": "LOCAL STORAGE KEY",
36+
"value": "LOCAL STORAGE VALUE"
37+
}
38+
}
39+
```
40+
41+
If these values are set, local storage will be checked to see if the user has consented to cookies. If they have not, telemetry will be disabled.
42+
43+
If you'd like to disable telemetry for all users, you can add the following to your `docs.json` file:
44+
45+
```json
46+
"integrations": {
47+
"telemetry": {
48+
"enabled": false
49+
}
50+
}
51+
```

0 commit comments

Comments
 (0)