Skip to content

Commit a9ddb41

Browse files
authored
@gus W-17274770 Add OneTrust Cookie Manager; update GA4 ID (#134)
1 parent cf5284e commit a9ddb41

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed

website/_analytics.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
2+
3+
if (ExecutionEnvironment.canUseDOM) {
4+
5+
// OptanonConsentNoticeStart
6+
7+
const script = document.createElement('script');
8+
9+
script.src = 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js';
10+
script.type = 'text/javascript';
11+
script.setAttribute('data-domain-script', '019321c1-4b7e-7313-9372-ddbd938f50ea')
12+
script.innerHTML="function OptanonWrapper() { }";
13+
14+
document.getElementsByTagName('head')[0].appendChild(script);
15+
16+
// OptanonConsentNoticeStart -->
17+
18+
}

website/docusaurus.config.js

+23-5
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,28 @@ const getConfig = async () => {
133133
items: [
134134
{
135135
label: 'Legal',
136-
href: 'https://www.tableau.com/en-us/legal',
136+
href: 'https://www.salesforce.com/company/legal/',
137137
},
138+
{
139+
label: 'Terms of Service',
140+
href: 'https://www.salesforce.com/company/legal/sfdc-website-terms-of-service/',
141+
},
138142
{
139143
label: 'Privacy',
140144
href: 'https://www.salesforce.com/company/privacy/'
141-
}
142-
]
143-
145+
},
146+
{
147+
label: 'Responsible Disclosure',
148+
href: 'https://www.salesforce.com/company/legal/disclosure/',
149+
},
150+
{
151+
label: 'Trust',
152+
href: 'https://trust.salesforce.com/',
153+
},
154+
{
155+
html: `<a href="#" data-ignore-geolocation="true" class="optanon-toggle-display" style="color:#FFFFFF">Cookie Preferences</a>`,
156+
}
157+
]
144158
},
145159
],
146160
copyright: `Copyright © ${new Date().getFullYear()} Salesforce, Inc. Built with Docusaurus.`,
@@ -167,11 +181,15 @@ const getConfig = async () => {
167181
[
168182
'@docusaurus/plugin-google-gtag',
169183
{
170-
trackingID: 'UA-625217-51',
184+
trackingID: '469571326',
171185
anonymizeIP: true,
172186
},
173187
],
174188
],
189+
190+
clientModules: [
191+
require.resolve('./_analytics.js'),
192+
],
175193
};
176194
}
177195

0 commit comments

Comments
 (0)