Skip to content

Commit c0c3a82

Browse files
authored
Update OneTrust README (#1104)
1 parent aee18d2 commit c0c3a82

File tree

1 file changed

+2
-1
lines changed
  • packages/consent/consent-wrapper-onetrust

1 file changed

+2
-1
lines changed

packages/consent/consent-wrapper-onetrust/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ withOneTrust(analytics).load({ writeKey: '<MY_WRITE_KEY'> })
9595
This wrapper uses the `OneTrust.getDomainData()` API to get the consent model for a given geolocation. Default behavior can be overridden by doing:
9696
9797
```ts
98-
withOneTrust(analytics).load(..., { consentModel: () => 'opt-in' | 'opt-out' })
98+
withOneTrust(analytics, { consentModel: () => 'opt-in' | 'opt-out' })
99+
.load({ writeKey: '<MY_WRITE_KEY>' })
99100
```
100101
101102
## Environments

0 commit comments

Comments
 (0)