Skip to content

Commit 3097ee4

Browse files
authored
Fix Google search results for anonymous tracking (#1137)
* Add tag to recipe * Set old pages to legacy
1 parent 97d5bf2 commit 3097ee4

File tree

3 files changed

+9
-7
lines changed
  • docs
    • resources/recipes-tutorials
    • sources/trackers/javascript-trackers/web-tracker/anonymous-tracking

3 files changed

+9
-7
lines changed

Diff for: docs/resources/recipes-tutorials/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: "Recipes and tutorials"
33
sidebar_position: 10
44
sidebar_label: "Recipes and tutorials"
5+
sidebar_custom_props:
6+
legacy: true
57
---
68

79
```mdx-code-block

Diff for: docs/resources/recipes-tutorials/recipe-anonymous-tracking/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: "Anonymous tracking"
3-
description: "Capture Snowplow web events without user or session identifiers, without IP addresses and without setting any cookies"
43
date: "2021-01-04"
54
sidebar_position: 50
65
---

Diff for: docs/sources/trackers/javascript-trackers/web-tracker/anonymous-tracking/index.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Opt-outs and anonymous tracking"
3+
description: "Capture Snowplow web events without user or session identifiers, without IP addresses and without setting any cookies"
34
date: "2022-08-30"
45
sidebar_position: 2860
56
---
@@ -40,7 +41,7 @@ This mode will no longer track any user identifiers or session information. Simi
4041

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

43-
Anonymous tracking can be toggled on and off.
44+
Anonymous tracking can be toggled on and off.
4445

4546
### 2. Client-side anonymisation with session
4647

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

170171
enableAnonymousTracking({
171172
options: {},
172-
stateStorageStrategy: 'none'
173+
stateStorageStrategy: 'none'
173174
});
174175
```
175176

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

192193
```javascript
193-
snowplow('disableAnonymousTracking', {
194-
stateStorageStrategy: 'cookieAndLocalStorage'
194+
snowplow('disableAnonymousTracking', {
195+
stateStorageStrategy: 'cookieAndLocalStorage'
195196
});
196197
```
197198

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

212-
disableAnonymousTracking({
213-
stateStorageStrategy: 'cookieAndLocalStorage'
213+
disableAnonymousTracking({
214+
stateStorageStrategy: 'cookieAndLocalStorage'
214215
});
215216
```
216217

0 commit comments

Comments
 (0)