Skip to content

Commit 40d133e

Browse files
Add cookie banner
1 parent e190829 commit 40d133e

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

docusaurus.config.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,23 @@ const config = {
2525
onBrokenLinks: 'warn',
2626
onBrokenMarkdownLinks: 'warn',
2727

28+
// OneTrust Cookies Consent Notice for couchbase.com
2829
headTags: [
2930
{
3031
tagName: 'script',
31-
attributes: {},
32-
innerHTML: `!function(){var e,t,n;e="${process.env.REO_CLIENT_ID}",t=function(){Reo.init({clientID:"${process.env.REO_CLIENT_ID}"})},(n=document.createElement("script")).src="https://static.reo.dev/"+e+"/reo.js",n.async=!0,n.onload=t,document.head.appendChild(n)}();`,
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() {}',
3345
},
3446
],
3547

0 commit comments

Comments
 (0)