Skip to content

Commit 31267d5

Browse files
authored
Update index.md
1 parent fa2eb44 commit 31267d5

File tree

1 file changed

+5
-2
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+5
-2
lines changed

src/connections/sources/catalog/libraries/website/javascript/index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,16 @@ analytics.load('writekey', { highEntropyValuesClientHints: ['architecture', 'bit
578578
```
579579

580580
#### Disabling
581-
For testing or staging environments, it can be useful to disable your SDK to ensure no events get sent.
581+
For testing or staging environments, it can be useful to disable your SDK to ensure no events send.
582+
582583
If `disable: true` is passed, all analytics method calls will be a no-op, and no network calls will be initiated.
584+
583585
```ts
584586
analytics.load('writekey', { disable: true })
585587
```
586588

587-
For wrapper/plugin authors: if you have an **advanced** use case where you need special access to the CDN Settings (for example, consent management), you can also pass a function. This API will wait for `cdnSettings` to be fetched. Warning: `cdnSettings` is an _unstable_ object.
589+
For wrapper/plugin authors: if you have a use case where you need special access to the CDN Settings (for example, consent management), you can also pass a function. This API waits for `cdnSettings` to be fetched. Keep in mind that `cdnSettings` is an _unstable_ object.
590+
588591
```ts
589592
analytics.load('writekey', { disable: (cdnSettings) => true })
590593
```

0 commit comments

Comments
 (0)