Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky authored Aug 29, 2023
1 parent 73f130f commit 05aa3b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/consent/consent-wrapper-onetrust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ withOneTrust(analytics).load({ writeKey: '<MY_WRITE_KEY'> })

<!--
Add / Modify Segment Analytics Snippet
* Find and replace: analytics.load() -> withOneTrust(analytics).load()
* Find and replace: analytics.load('<MY_WRITE_KEY'>) -> withOneTrust(analytics).load('<MY_WRITE_KEY'>)
-->
<script>
!function(){var analytics=window.analytics...
....
withOneTrust(analytics).load() // replace analytics.load()
withOneTrust(analytics).load('<MY_WRITE_KEY'>) // replace analytics.load()
</script>
</head>
```
#### ⚠️ Reminder: _delete_ `analytics.load('....')` from the original Segment snippet so that only .load() is only called after `withOneTrust` is called. See comment in example above.
#### ⚠️ Reminder: _you must modify_ `analytics.load('....')` from the original Segment snippet. See markup comment in example above.
## Other examples:
Expand Down

0 comments on commit 05aa3b0

Please sign in to comment.