Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docusaurus/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,26 @@ const config: Config = {
locales: ['en'],
},

// OneTrust Cookies Consent Notice for couchbase.com
headTags: [
{
tagName: 'script',
attributes: {
src: 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js',
type: 'text/javascript',
charset: 'UTF-8',
'data-domain-script': '748511ff-10bf-44bf-88b8-36382e5b5fd9',
Comment on lines +33 to +41
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The OneTrust data-domain-script ID (748511ff-10bf-44bf-88b8-36382e5b5fd9) and the associated comment refer to couchbase.com. However, this site is configured for ruby-cb-orm.com (line 11). OneTrust IDs are domain-specific; using an ID from a different domain will likely cause the cookie banner to fail to load or function incorrectly. Please verify and use the correct ID for the target domain.

},
},
{
tagName: 'script',
attributes: {
type: 'text/javascript',
},
innerHTML: 'function OptanonWrapper() {}',
},
],

presets: [
[
'classic',
Expand All @@ -43,6 +63,13 @@ const config: Config = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleTagManager: {
containerId: 'GTM-MVPNN2',
},
gtag: {
trackingID: 'G-CVKKEY0D6B',
anonymizeIP: true,
},
Comment on lines +66 to +72
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Configuring both googleTagManager and gtag simultaneously is generally discouraged. This setup results in both tracking scripts being loaded, which can lead to duplicate event tracking (such as double page views) and negatively impact site performance. You should choose one tracking method. If you prefer GTM, you can manage your GA4 property within the GTM container and remove the gtag block.

Comment on lines +69 to +72
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The anonymizeIP option is unnecessary for Google Analytics 4 (GA4) properties (IDs starting with G-). GA4 anonymizes IP addresses by default, and this setting is ignored by the script.

        gtag: {
          trackingID: 'G-CVKKEY0D6B',
        },

} satisfies Preset.Options,
],
],
Expand Down
Loading