Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Aug 24, 2023
1 parent 65b2493 commit d4ec7e5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/consent/consent-wrapper-onetrust/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
This package is for the OneTrust integration for analytics consent

Try our Playground!
See: [Next.js CodeSandbox using npm initialization](https://codesandbox.io/p/sandbox/focused-bhaskara-jysqr5)

# Quick Start

## Configure OneTrust + Segment
Expand Down Expand Up @@ -78,7 +81,7 @@ withOneTrust(analytics).load({ writeKey: '<MY_WRITE_KEY'> })
## Configuration
### `data-segment-ot-autoload`
### Autoload
This attribute, if detected on the script tag, will wrap window.analytics and call "load" if it detects it in the environment.
Expand All @@ -100,3 +103,11 @@ To disable autoload, do not pass the `data-segment-ot-autoload` attribute in the
withOneTrust(analytics).load('<YOUR_WRITEKEY>')
</script>
```
## Other examples:
> Note: Playgrounds are meant for experimentation / testing, and as such, may be a bit overly complicated.
> We recommend you try to follow the documentation for best practice.
- [Standalone playground with autoload (normal)](/examples/standalone-playground/pages/index-consent.html)
- [Standalone playground (without autoload)](/examples/standalone-playground/pages/index-consent-no-autoload.html)

0 comments on commit d4ec7e5

Please sign in to comment.