diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 124d9c1..b084200 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -46,10 +46,6 @@ const config = { theme: { customCss: './src/css/custom.css', }, - gtag: { - trackingID: 'G-3DVYB2CHLG', - anonymizeIP: true, - }, }), ], ], @@ -234,9 +230,11 @@ const config = { ], 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" }, - { id: "CookieDeclaration", src: "https://consent.cookiebot.com/a0cc864f-0b67-49be-8d65-9ed354de2ee6/cd.js" } + { + src: '/ego/gtagman.js', + async: true, + "data-cookieconsent": "ignore", + }, ], }; diff --git a/docs/package-lock.json b/docs/package-lock.json index ee08b04..5bf6eaf 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -10,7 +10,6 @@ "dependencies": { "@cmfcmf/docusaurus-search-local": "^1.2.0", "@docusaurus/core": "^3.5.2", - "@docusaurus/plugin-google-gtag": "^3.5.2", "@docusaurus/preset-classic": "^3.5.2", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", diff --git a/docs/package.json b/docs/package.json index 01062da..6663e29 100644 --- a/docs/package.json +++ b/docs/package.json @@ -16,7 +16,6 @@ "dependencies": { "@cmfcmf/docusaurus-search-local": "^1.2.0", "@docusaurus/core": "^3.5.2", - "@docusaurus/plugin-google-gtag": "^3.5.2", "@docusaurus/preset-classic": "^3.5.2", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", diff --git a/docs/static/gtagman.js b/docs/static/gtagman.js new file mode 100644 index 0000000..57bf671 --- /dev/null +++ b/docs/static/gtagman.js @@ -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');