You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Privacy-first cookie consent](/docs/websites/website-tools.qmd#cookie-consent): The default for cookie consent has changed to `type: express`, providing opt-in consent that blocks cookies until users explicitly agree. This privacy-conscious default is designed with modern privacy regulations in mind.
4
+
3
5
-[`aria-label` for videos](/docs/authoring/videos.qmd#accessibility-label): Improve accessibility of embedded videos by providing custom descriptive labels for screen readers instead of the default "Video Player" label.
Copy file name to clipboardExpand all lines: docs/websites/website-search.qmd
+30-1Lines changed: 30 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,36 @@ website:
167
167
analytics-events: true
168
168
```
169
169
170
-
You can confirm that events are being properly sent to Algolia using the [Event Debugger](https://www.algolia.com/events/debugger). Note that the click and conversion events use cookies to maintain an anonymous user identifier---if [cookie consent](website-tools.qmd#cookie-consent) is enabled, search events will only be enabled if cookie consent has been granted.
170
+
You can confirm that events are being properly sent to Algolia using the [Event Debugger](https://www.algolia.com/events/debugger).
171
+
172
+
#### Cookie Consent and User Tracking
173
+
174
+
Algolia Insights uses user tokens to track click and conversion events. Quarto uses a **privacy-first approach** for handling cookies:
175
+
176
+
- **Without cookie consent enabled**: A random session token is generated for each browser session. This allows tracking of search interactions during a single visit without storing persistent cookies. This privacy-first approach avoids persistent cookies entirely.
177
+
178
+
- **With cookie consent enabled**: When you enable [cookie consent](website-tools.qmd#cookie-consent), cookies are blocked by default until the user expressly grants consent. After the user grants "tracking" consent, Algolia will use cookies to maintain an anonymous user identifier across sessions:
179
+
180
+
``` yaml
181
+
website:
182
+
cookie-consent: true
183
+
search:
184
+
algolia:
185
+
index-name: <my-index-name>
186
+
application-id: <my-application-id>
187
+
search-only-api-key: <my-search-only-api-key>
188
+
analytics-events: true
189
+
```
190
+
191
+
With this configuration, the Algolia Insights API will use cookies to maintain an anonymous user identifier across sessions, but only after the user has explicitly granted consent.
192
+
193
+
::: {.callout-important}
194
+
## Privacy Regulations
195
+
196
+
The default session-only tracking (without cookie consent) provides meaningful analytics about search usage patterns without using persistent cookies. When cookie consent is enabled, Quarto uses an opt-in approach (express consent) by default, blocking cookies until the user explicitly agrees.
197
+
198
+
While these features are designed with privacy regulations in mind, website owners should consult with legal counsel to ensure their specific implementation meets applicable privacy laws and regulations in their jurisdiction.
Copy file name to clipboardExpand all lines: docs/websites/website-tools.qmd
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -321,7 +321,7 @@ If you choose `none` for storage, this will have the following effects:
321
321
322
322
Quarto includes the ability to request cookie consent before enabling scripts that set cookies, using [Cookie Consent](https://www.cookieconsent.com).
323
323
324
-
The user's cookie preferences will automatically control [Google Analytics] (if enabled) and can be used to control custom scripts you add as well (see [Custom Scripts and Cookie Consent]). You can enable the default request for cookie consent using the following:
324
+
The user's cookie preferences will automatically control [Google Analytics] and [Algolia search analytics](/docs/websites/website-search.qmd#algolia-insights) (if enabled) and can be used to control custom scripts you add as well (see [Custom Scripts and Cookie Consent]). You can enable the default request for cookie consent using the following:
325
325
326
326
``` yaml
327
327
website:
@@ -335,9 +335,9 @@ You can further customize the appearance and behavior of the consent using the f
| `type` | The type of consent that should be requested, using one of these two values: |
337
337
| | |
338
-
| | **implied -** (default) This will notify the user that the site uses cookies and permit them to change preferences, but not block cookies unless the user changes their preferences. |
338
+
| | **express -** (default) This will block cookies until the user expressly agrees to allow them (or continue blocking them if the user doesn't agree). |
339
339
| | |
340
-
| | **express -** This will block cookies until the user expressly agrees to allow them (or continue blocking them if the user doesn't agree). |
340
+
| | **implied -** This will notify the user that the site uses cookies and permit them to change preferences, but not block cookies unless the user changes their preferences. |
| `style` | The style of the consent banner that is displayed: |
343
343
| | |
@@ -376,8 +376,16 @@ website:
376
376
google-analytics:
377
377
tracking-id: "G-XXXXXXX"
378
378
anonymize-ip: true
379
+
search:
380
+
algolia:
381
+
index-name: <my-index-name>
382
+
application-id: <my-application-id>
383
+
search-only-api-key: <my-search-only-api-key>
384
+
analytics-events: true
379
385
```
380
386
387
+
When cookie consent is enabled, Google Analytics and Algolia search analytics will use cookies based on user preference: for `type: express`, the default, they will not use cookies unless a user opts-in; for `type: implied`, they will use cookies unless a user opts-out. Without cookie consent enabled, Algolia will use session-only tracking without cookies. See [Algolia Insights](/docs/websites/website-search.qmd#algolia-insights) for more details.
388
+
381
389
### Cookie Preferences
382
390
383
391
In addition to requesting consent when a new user visits your website, Cookie Consent will also add a cookie preferences link to the footer of the website. You can control the text of this link using `prefs-text`. If you would rather position this link yourself, just add a link with the id `#open_preferences_center` to the website and Cookie Consent will not add the preferences link to the footer. For example:
0 commit comments