Skip to content

Commit b7d9099

Browse files
committed
fix: privacy config
1 parent a5c1c32 commit b7d9099

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

flashduty/en/2. RUM/5. Session Replay/4. Privacy Protection.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,62 +7,62 @@ url: "https://docs.flashcat.cloud/en/flashduty/rum/session-replay-privacy"
77

88
## Overview
99

10-
To meet privacy requirements in different scenarios, the session replay functionality has built-in flexible privacy protection strategies. By configuring the `sessionReplayPrivacyLevel` field, developers can control the sensitivity of data collection, supporting multiple modes from displaying all text (except passwords) to completely hiding page text, ensuring user data security and compliance.
10+
To meet privacy requirements in different scenarios, the session replay functionality has built-in flexible privacy protection strategies. By configuring the `defaultPrivacyLevel` field, developers can control the sensitivity of data collection, supporting multiple modes from displaying all text (except passwords) to completely hiding page text, ensuring user data security and compliance.
1111

1212
## Privacy Strategies
1313

14-
The session replay functionality provides flexible privacy protection configuration through the `sessionReplayPrivacyLevel` field, ensuring both functionality and data security when collecting user operation data. Below are three main privacy level configurations and their effects:
14+
The session replay functionality provides flexible privacy protection configuration through the `defaultPrivacyLevel` field, ensuring both functionality and data security when collecting user operation data. Below are three main privacy level configurations and their effects:
1515
:::tip
1616
Input fields with type "password" are sensitive information and will not be collected in any scenario.
1717
:::
1818

19-
### Display All Text (Except Passwords)
19+
### Hide All Page Text
2020

21-
Configure `sessionReplayPrivacyLevel: "allow"` to allow collection of all text content on the page except password fields, suitable for scenarios requiring complete user interaction details.
21+
Configure `defaultPrivacyLevel: "mask-all"` to completely hide all text content on the page, preserving only operation behaviors and page structure, suitable for scenarios with extremely high data privacy requirements.
2222

2323
```js
2424
window.FC_RUM.init({
2525
applicationId: "YOUR_APPLICATION_ID",
2626
clientToken: "YOUR_CLIENT_TOKEN",
2727
// ...
2828
sessionReplaySampleRate: 10, // Default sampling rate 10%
29-
sessionReplayPrivacyLevel: "allow",
29+
defaultPrivacyLevel: "mask",
3030
// ...
3131
});
3232
```
3333

34-
![Display All Text](https://docs-cdn.flashcat.cloud/imges/png/24db39145913b960a588e45ab088c224.png)
34+
![Hide All Page Text](https://docs-cdn.flashcat.cloud/imges/png/03afebc34026be5cb5ad683665163c12.png)
3535

3636
### Hide Input Field Content
3737

38-
Configure `sessionReplayPrivacyLevel: "mask-user-input"` to hide content in user input fields (such as text inputs, select boxes, etc.) while preserving other page text, suitable for scenarios requiring protection of user input privacy.
38+
Configure `defaultPrivacyLevel: "mask-user-input"` to hide content in user input fields (such as text inputs, select boxes, etc.) while preserving other page text, suitable for scenarios requiring protection of user input privacy.
3939

4040
```js
4141
window.FC_RUM.init({
4242
applicationId: "YOUR_APPLICATION_ID",
4343
clientToken: "YOUR_CLIENT_TOKEN",
4444
// ...
4545
sessionReplaySampleRate: 10, // Default sampling rate 10%
46-
sessionReplayPrivacyLevel: "mask-user-input",
46+
defaultPrivacyLevel: "mask-user-input",
4747
// ...
4848
});
4949
```
5050

5151
![Hide Input Field Content](https://docs-cdn.flashcat.cloud/imges/png/e2f36a765e0dcb5db8a3ba9c24c42d6a.png)
5252

53-
### Hide All Page Text
53+
### Display All Text (Except Passwords)
5454

55-
Configure `sessionReplayPrivacyLevel: "mask-all"` to completely hide all text content on the page, preserving only operation behaviors and page structure, suitable for scenarios with extremely high data privacy requirements.
55+
Configure `defaultPrivacyLevel: "allow"` to allow collection of all text content on the page except password fields, suitable for scenarios requiring complete user interaction details.
5656

5757
```js
5858
window.FC_RUM.init({
5959
applicationId: "YOUR_APPLICATION_ID",
6060
clientToken: "YOUR_CLIENT_TOKEN",
6161
// ...
6262
sessionReplaySampleRate: 10, // Default sampling rate 10%
63-
sessionReplayPrivacyLevel: "mask-all",
63+
defaultPrivacyLevel: "allow",
6464
// ...
6565
});
6666
```
6767

68-
![Hide All Page Text](https://docs-cdn.flashcat.cloud/imges/png/03afebc34026be5cb5ad683665163c12.png)
68+
![Display All Text](https://docs-cdn.flashcat.cloud/imges/png/24db39145913b960a588e45ab088c224.png)

flashduty/zh/2. RUM/5.会话重放/4. 隐私保护说明.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,62 +7,62 @@ url: "https://docs.flashcat.cloud/zh/flashduty/rum/session-replay-privacy"
77

88
## 概述
99

10-
为满足不同场景的隐私需求,会话重放功能内置了灵活的隐私保护策略。通过配置 `sessionReplayPrivacyLevel` 字段,开发者可控制数据采集的敏感度,支持从显示所有文本(除密码外)到完全隐藏页面文本的多种模式,确保用户数据的安全性和合规性
10+
为满足不同场景的隐私需求,会话重放功能内置了灵活的隐私保护策略。通过配置 `defaultPrivacyLevel` 字段,开发者可控制数据采集的敏感度,支持从显示所有文本(除密码外)到完全隐藏页面文本的多种模式,确保用户数据的安全性和合规性
1111

1212
## 隐私策略
1313

14-
会话重放功能通过 `sessionReplayPrivacyLevel` 字段提供灵活的隐私保护配置,确保在采集用户操作数据时兼顾功能性和数据安全。以下为三种主要隐私级别配置及其效果:
14+
会话重放功能通过 `defaultPrivacyLevel` 字段提供灵活的隐私保护配置,确保在采集用户操作数据时兼顾功能性和数据安全。以下为三种主要隐私级别配置及其效果:
1515
:::tip
1616
input 类型为 password 的输入为敏感信息,所有场景都不会收集。
1717
:::
1818

19-
### 显示所有文本(除密码)
19+
### 隐藏页面所有文本
2020

21-
配置 `sessionReplayPrivacyLevel: "allow"` 允许采集页面中除密码字段外的所有文本内容,适合需要完整用户交互细节的场景
21+
配置 `defaultPrivacyLevel: "mask"` 将完全隐藏页面中的所有文本内容,仅保留操作行为和页面结构,适合对数据隐私要求校高的场景
2222

2323
```js
2424
window.FC_RUM.init({
2525
applicationId: "YOUR_APPLICATION_ID",
2626
clientToken: "YOUR_CLIENT_TOKEN",
2727
// ...
2828
sessionReplaySampleRate: 10, // 默认采样率10%
29-
sessionReplayPrivacyLevel: "allow",
29+
defaultPrivacyLevel: "mask",
3030
// ...
3131
});
3232
```
3333

34-
![显示所有文本](https://docs-cdn.flashcat.cloud/imges/png/4cae182c91c7df152cbcf86c2978f443.png)
34+
![隐藏页面所有文本](https://docs-cdn.flashcat.cloud/imges/png/3c123bbf8fd30482da766ab009c16b0e.png)
3535

3636
### 隐藏数据框内容
3737

38-
配置 `sessionReplayPrivacyLevel: "mask-user-input"` 将隐藏用户输入框中的内容(如文本输入、选择框等),但保留页面其他文本,适用于需要保护用户输入隐私的场景。
38+
配置 `defaultPrivacyLevel: "mask-user-input"` 将隐藏用户输入框中的内容(如文本输入、选择框等),但保留页面其他文本,适用于需要保护用户输入隐私的场景。
3939

4040
```js
4141
window.FC_RUM.init({
4242
applicationId: "YOUR_APPLICATION_ID",
4343
clientToken: "YOUR_CLIENT_TOKEN",
4444
// ...
4545
sessionReplaySampleRate: 10, // 默认采样率10%
46-
sessionReplayPrivacyLevel: "mask-user-input",
46+
defaultPrivacyLevel: "mask-user-input",
4747
// ...
4848
});
4949
```
5050

5151
![隐藏数据框内容](https://docs-cdn.flashcat.cloud/imges/png/5c43c6f6196a95334a8b253fa33360c9.png)
5252

53-
### 隐藏页面所有文本
53+
### 显示所有文本(除密码)
5454

55-
配置 `sessionReplayPrivacyLevel: "mask-all"` 将完全隐藏页面中的所有文本内容,仅保留操作行为和页面结构,适合对数据隐私要求极高的场景
55+
配置 `defaultPrivacyLevel: "allow"` 允许采集页面中除密码字段外的所有文本内容,适合需要完整用户交互细节的场景
5656

5757
```js
5858
window.FC_RUM.init({
5959
applicationId: "YOUR_APPLICATION_ID",
6060
clientToken: "YOUR_CLIENT_TOKEN",
6161
// ...
6262
sessionReplaySampleRate: 10, // 默认采样率10%
63-
sessionReplayPrivacyLevel: "mask-all",
63+
defaultPrivacyLevel: "allow",
6464
// ...
6565
});
6666
```
6767

68-
![隐藏页面所有文本](https://docs-cdn.flashcat.cloud/imges/png/3c123bbf8fd30482da766ab009c16b0e.png)
68+
![显示所有文本](https://docs-cdn.flashcat.cloud/imges/png/4cae182c91c7df152cbcf86c2978f443.png)

0 commit comments

Comments
 (0)