Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Google search results for anonymous tracking #1137

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/resources/recipes-tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Recipes and tutorials"
sidebar_position: 10
sidebar_label: "Recipes and tutorials"
sidebar_custom_props:
legacy: true
---

```mdx-code-block
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: "Anonymous tracking"
description: "Capture Snowplow web events without user or session identifiers, without IP addresses and without setting any cookies"
date: "2021-01-04"
sidebar_position: 50
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Opt-outs and anonymous tracking"
description: "Capture Snowplow web events without user or session identifiers, without IP addresses and without setting any cookies"
date: "2022-08-30"
sidebar_position: 2860
---
Expand Down Expand Up @@ -40,7 +41,7 @@ This mode will no longer track any user identifiers or session information. Simi

Setting `stateStorageStrategy` to `cookieAndLocalStorage` or `localStorage` also allows for event buffering to continue working whilst not sending user information when `anonymousTracking` is enabled.

Anonymous tracking can be toggled on and off.
Anonymous tracking can be toggled on and off.

### 2. Client-side anonymisation with session

Expand Down Expand Up @@ -169,7 +170,7 @@ import { enableAnonymousTracking } from '@snowplow/browser-tracker';

enableAnonymousTracking({
options: {},
stateStorageStrategy: 'none'
stateStorageStrategy: 'none'
});
```

Expand All @@ -190,8 +191,8 @@ snowplow('disableAnonymousTracking');
or, if you wish to also adjust the `stateStorageStrategy` when enabling:

```javascript
snowplow('disableAnonymousTracking', {
stateStorageStrategy: 'cookieAndLocalStorage'
snowplow('disableAnonymousTracking', {
stateStorageStrategy: 'cookieAndLocalStorage'
});
```

Expand All @@ -209,8 +210,8 @@ or, if you wish to also adjust the `stateStorageStrategy` when enabling:
```javascript
import { disableAnonymousTracking } from '@snowplow/browser-tracker';

disableAnonymousTracking({
stateStorageStrategy: 'cookieAndLocalStorage'
disableAnonymousTracking({
stateStorageStrategy: 'cookieAndLocalStorage'
});
```

Expand Down