mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 12:38:05 +00:00
Merge pull request #349 from btat/enable-analytics
Enable Analytics and Cookie Consent
This commit is contained in:
@@ -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"
|
||||
],
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
function OptanonWrapper() { }
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user