Skip to content

Commit

Permalink
fix: 修改文案
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenXiaowei committed Jan 26, 2024
1 parent eb4f995 commit ea65ddf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions docs/webjs/initSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ gdp('init', accountId, datasourceId, {
});
```

**<font color="#FC5F3A">注意:</font>**使用多实例能力时,仅主实例设值生效,子实例设值无效且与主实例表现一致。

### dataCollect

默认情况下,数据采集开关默认开启。如果您需要初始化时暂时关闭数据采集(例如隐私协议的场景),可以通过指定 `dataCollect: false` 关闭。
Expand Down Expand Up @@ -72,6 +74,8 @@ gdp('init', accountId, datasourceId, {

您也可以通过调用动态修改配置接口来修改它。[参考文档](/docs/webjs/commonlyApi#动态修改配置接口setoption)

**<font color="#FC5F3A">注意:</font>**使用多实例能力时,仅主实例设值生效,子实例设值无效且与主实例表现一致。

### forceLogin

默认情况下,SDK 会自动生成访问用户 ID 来标识访问用户。如您是在微信公众号H5中集成且需要使用 openId 或 unionId 标识访问用户,可以通过指定 `forceLogin: true` 来打开强制登录模式。
Expand All @@ -93,7 +97,7 @@ gdp('identify', openId / unionId);

**<font color="#FC5F3A">注意:</font>**<br/>
**<font color="#FC5F3A">1、非微信公众号H5的站点慎用,可能会导致你的站点没有数据上报。</font>**<br/>
**<font color="#FC5F3A">2、使用多实例能力时,该配置项以主实例为准,当且仅当主实例调用 `identify` 后,所有实例才会开始发数。</font>**
**<font color="#FC5F3A">2、使用多实例能力时,仅主实例设值生效,子实例设值无效且与主实例表现一致。当且仅当主实例调用 `identify` 后,所有实例才会开始发数。</font>**

### idMapping

Expand All @@ -117,7 +121,7 @@ gdp('init', accountId, datasourceId, {
});
```

**<font color="#FC5F3A">注意:</font>**使用多实例能力时,仅主实例生效,子实例设置无效
**<font color="#FC5F3A">注意:</font>**使用多实例能力时,仅主实例设值生效,子实例设值无效且与主实例表现一致

### ignoreFields

Expand Down Expand Up @@ -151,6 +155,8 @@ gdp('init', accountId, datasourceId, {
});
```

**<font color="#FC5F3A">注意:</font>**使用多实例能力时,仅主实例设值生效,子实例设值无效且与主实例表现一致。

### platform

默认情况下,SDK的平台取值为`Web`,当您的站点为微信内嵌页等其他场景时,可指定平台。
Expand Down Expand Up @@ -229,7 +235,7 @@ gdp('init', accountId, datasourceId, {
});
```

**<font color="#FC5F3A">注意:</font>**使用多实例能力时,仅主实例生效,子实例设置无效
**<font color="#FC5F3A">注意:</font>**使用多实例能力时,仅主实例设值生效,子实例设值无效且与主实例表现一致

### trackBot

Expand Down
2 changes: 1 addition & 1 deletion docs/webjs/plugins/multipleInstances.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ gdp('g1.track', xxx, xxx);

1、主实例与子实例共享同一个 `deviceId`。因此,`forceLogin` 配置项**仅主实例设值生效**,当且仅当主实例调用 `identify` 后,所有实例才会开始发数。

2、`cookieDomain``debug``forceLogin``hashtag``performance``storageType` 配置项**仅主实例设值生效**,即子实例的表现与主实例相同。因此您无法为子实例单独设置这些配置项。
2、`cookieDomain``debug``forceLogin``hashtag``originalSource``performance``storageType` 配置项**仅主实例设值生效**,即子实例的表现与主实例相同。因此您无法为子实例单独设置这些配置项。

3、除了以上3个初始化配置项子实例无法使用以外,其他初始化配置项均可单独为子实例进行配置。

Expand Down

0 comments on commit ea65ddf

Please sign in to comment.