Skip to content

Commit 93fc980

Browse files
Documentation for the obfuscate feature and how to use it
1 parent 786de3b commit 93fc980

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,16 @@ 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+
496506
> info ""
497507
> **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).
498508

0 commit comments

Comments
 (0)