Skip to content

Commit 4864a06

Browse files
committed
add cookie banner
1 parent d91f190 commit 4864a06

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docusaurus/docusaurus.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,26 @@ const config = {
121121
// Scarf pixel – fires on every page view (SPA-aware)
122122
clientModules: [require.resolve('./src/scarf.js')],
123123

124+
// OneTrust Cookies Consent Notice for couchbase.com
125+
headTags: [
126+
{
127+
tagName: 'script',
128+
attributes: {
129+
src: 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js',
130+
type: 'text/javascript',
131+
charset: 'UTF-8',
132+
'data-domain-script': '748511ff-10bf-44bf-88b8-36382e5b5fd9',
133+
},
134+
},
135+
{
136+
tagName: 'script',
137+
attributes: {
138+
type: 'text/javascript',
139+
},
140+
innerHTML: 'function OptanonWrapper() {}',
141+
},
142+
],
143+
124144
plugins: [
125145
[
126146
'docusaurus-plugin-typedoc',

0 commit comments

Comments
 (0)