mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added documentation for custom cookie state
This commit is contained in:
parent
db5eee54aa
commit
b83983354c
@ -258,6 +258,17 @@ integrated by using the `cookies` field:
|
||||
|
||||
1. The default name of the `analytics` cookie is `Google Analytics`.
|
||||
|
||||
=== "Custom initial state"
|
||||
|
||||
``` yaml
|
||||
extra:
|
||||
consent:
|
||||
cookies:
|
||||
analytics:
|
||||
name: Google Analytics
|
||||
checked: false
|
||||
```
|
||||
|
||||
=== "Custom cookie"
|
||||
|
||||
``` yaml
|
||||
@ -268,8 +279,8 @@ integrated by using the `cookies` field:
|
||||
custom: Custom cookie
|
||||
```
|
||||
|
||||
1. If you add a custom cookie to the `cookies` field, the `analytics` cookie
|
||||
must be added back explicitly, or analytics won't be triggered.
|
||||
1. If you add a custom cookie to the `cookies` field, the `analytics`
|
||||
cookie must be added back explicitly, or analytics won't be triggered.
|
||||
|
||||
When a user first visits your site, a cookie consent form is rendered:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user