Merge pull request #349 from btat/enable-analytics

Enable Analytics and Cookie Consent
This commit is contained in:
Billy Tat
2022-12-19 10:04:21 -08:00
committed by GitHub
4 changed files with 28 additions and 0 deletions
+21
View File
@@ -136,6 +136,12 @@ module.exports = {
],
],
plugins: [
[
require.resolve('docusaurus-gtm-plugin'),
{
id: 'GTM-57KS2MW', // GTM Container ID
}
],
[
'@docusaurus/plugin-client-redirects',
{
@@ -669,4 +675,19 @@ module.exports = {
},
],
],
scripts: [
{
src: 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js',
type:'text/javascript',
charset: 'UTF-8',
'data-domain-script': '0f98beb0-fc4c-417d-a42e-564e2cae42d2',
async: true
},
{
src: '/scripts/optanonwrapper.js',
type:'text/javascript',
async: true
},
// "/scripts/optanonwrapper.js"
],
};
+1
View File
@@ -19,6 +19,7 @@
"@docusaurus/preset-classic": "^2.2.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1",
"docusaurus-gtm-plugin": "^0.0.2",
"prism-react-renderer": "^1.3.3",
"react": "^17.0.2",
"react-dom": "^17.0.2"
+1
View File
@@ -0,0 +1 @@
function OptanonWrapper() { }
+5
View File
@@ -3418,6 +3418,11 @@ dns-packet@^5.2.2:
dependencies:
"@leichtgewicht/ip-codec" "^2.0.1"
docusaurus-gtm-plugin@^0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/docusaurus-gtm-plugin/-/docusaurus-gtm-plugin-0.0.2.tgz#f39864b54ca594e3281902c23b6df0763761602b"
integrity sha512-Xx/df0Ppd5SultlzUj9qlQk2lX9mNVfTb41juyBUPZ1Nc/5dNx+uN0VuLyF4JEObkDRrUY1EFo9fEUDo8I6QOQ==
dom-converter@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768"