Skip to content

Commit 11cfc16

Browse files
committed
[netlify-build]
1 parent 93fc980 commit 11cfc16

File tree

1 file changed

+11
-10
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+11
-10
lines changed

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -493,16 +493,6 @@ An example:
493493
analytics.load('writekey', { integrations: { All: false, 'Google Analytics': true, 'Segment.io': true } })
494494
```
495495

496-
You can also add an `obfuscate` property to the object taken as a second argument, which will obscure the url from which your integrations and actions are loaded. This is helpful for names that are commonly flagged by ad blockers.
497-
498-
An example:
499-
500-
```js
501-
analytics.load('writekey', { obfuscate: true })
502-
```
503-
504-
This value is `false` by default.
505-
506496
> info ""
507497
> **Note:** To use this feature, you must be on snippet version 4.1.0 or later. You can get the latest version of the snippet [here](/docs/connections/sources/catalog/libraries/website/javascript/quickstart/#step-2-copy-the-segment-snippet).
508498
@@ -514,6 +504,17 @@ onConsentDialogClosed(function(consentedTools){
514504
})
515505
```
516506

507+
#### Bundle Obfuscation
508+
You can also add an `obfuscate` property to the object in the second parameter, which obscures the URL from which your integrations and destination actions are loaded. This helps prevent words that are flagged by ad blockers to not be detected in your URL, enabling the integration to properly load.
509+
510+
An example:
511+
512+
```js
513+
analytics.load('writekey', { obfuscate: true })
514+
```
515+
516+
The `obfuscate` value is `false` by default.
517+
517518

518519
## Retries
519520

0 commit comments

Comments
 (0)