-
Notifications
You must be signed in to change notification settings - Fork 0
Add ga analytics #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add ga analytics #28
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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', | ||
| }, | ||
| }, | ||
| { | ||
| tagName: 'script', | ||
| attributes: { | ||
| type: 'text/javascript', | ||
| }, | ||
| innerHTML: 'function OptanonWrapper() {}', | ||
| }, | ||
| ], | ||
|
|
||
| presets: [ | ||
| [ | ||
| 'classic', | ||
|
|
@@ -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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Configuring both
Comment on lines
+69
to
+72
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } satisfies Preset.Options, | ||
| ], | ||
| ], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OneTrust
data-domain-scriptID (748511ff-10bf-44bf-88b8-36382e5b5fd9) and the associated comment refer tocouchbase.com. However, this site is configured forruby-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.