mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-27 07:47:02 -05:00
docs: refactor gtag
This commit is contained in:
parent
f06830ec1a
commit
b2e99af86c
@ -23,9 +23,11 @@ async function createConfig() {
|
|||||||
|
|
||||||
// scripts
|
// scripts
|
||||||
scripts: [
|
scripts: [
|
||||||
{ src: 'https://plausible.io/js/plausible.js', async: true, defer: true, 'data-domain': 'docs.edgeless.systems' },
|
{
|
||||||
{ id: "Cookiebot", src: "https://consent.cookiebot.com/uc.js", "data-cbid": "a0cc864f-0b67-49be-8d65-9ed354de2ee6", "data-blockingmode": "auto" },
|
src: '/constellation/gtagman.js',
|
||||||
{ id: "CookieDeclaration", src: "https://consent.cookiebot.com/a0cc864f-0b67-49be-8d65-9ed354de2ee6/cd.js" }
|
async: true,
|
||||||
|
"data-cookieconsent": "ignore",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
// Even if you don't use internalization, you can use this field to set useful
|
// Even if you don't use internalization, you can use this field to set useful
|
||||||
@ -59,10 +61,6 @@ async function createConfig() {
|
|||||||
theme: {
|
theme: {
|
||||||
customCss: require.resolve('./src/css/custom.css'),
|
customCss: require.resolve('./src/css/custom.css'),
|
||||||
},
|
},
|
||||||
gtag: {
|
|
||||||
trackingID: 'G-3DVYB2CHLG',
|
|
||||||
anonymizeIP: true,
|
|
||||||
}
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
1
docs/package-lock.json
generated
1
docs/package-lock.json
generated
@ -10,7 +10,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cmfcmf/docusaurus-search-local": "1.2.0",
|
"@cmfcmf/docusaurus-search-local": "1.2.0",
|
||||||
"@docusaurus/core": "3.6.2",
|
"@docusaurus/core": "3.6.2",
|
||||||
"@docusaurus/plugin-google-gtag": "3.6.2",
|
|
||||||
"@docusaurus/preset-classic": "3.6.2",
|
"@docusaurus/preset-classic": "3.6.2",
|
||||||
"@docusaurus/theme-mermaid": "3.6.2",
|
"@docusaurus/theme-mermaid": "3.6.2",
|
||||||
"@mdx-js/react": "3.1.0",
|
"@mdx-js/react": "3.1.0",
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cmfcmf/docusaurus-search-local": "1.2.0",
|
"@cmfcmf/docusaurus-search-local": "1.2.0",
|
||||||
"@docusaurus/core": "3.6.2",
|
"@docusaurus/core": "3.6.2",
|
||||||
"@docusaurus/plugin-google-gtag": "3.6.2",
|
|
||||||
"@docusaurus/preset-classic": "3.6.2",
|
"@docusaurus/preset-classic": "3.6.2",
|
||||||
"@docusaurus/theme-mermaid": "3.6.2",
|
"@docusaurus/theme-mermaid": "3.6.2",
|
||||||
"@mdx-js/react": "3.1.0",
|
"@mdx-js/react": "3.1.0",
|
||||||
|
5
docs/static/gtagman.js
vendored
Normal file
5
docs/static/gtagman.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
|
})(window,document,'script','dataLayer','GTM-NF9NM7V');
|
Loading…
x
Reference in New Issue
Block a user