Skip to content

Commit b549bf4

Browse files
Merge pull request #12 from Couchbase-Ecosystem/Add-cookie-banner
Add Cookie Banner
2 parents e190829 + 4e2a8fd commit b549bf4

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docusaurus.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,24 @@ const config = {
2525
onBrokenLinks: 'warn',
2626
onBrokenMarkdownLinks: 'warn',
2727

28+
// OneTrust Cookies Consent Notice for couchbase.com
2829
headTags: [
30+
{
31+
tagName: 'script',
32+
attributes: {
33+
src: 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js',
34+
type: 'text/javascript',
35+
charset: 'UTF-8',
36+
'data-domain-script': '748511ff-10bf-44bf-88b8-36382e5b5fd9',
37+
},
38+
},
39+
{
40+
tagName: 'script',
41+
attributes: {
42+
type: 'text/javascript',
43+
},
44+
innerHTML: 'function OptanonWrapper() {}',
45+
},
2946
{
3047
tagName: 'script',
3148
attributes: {},

0 commit comments

Comments
 (0)