Skip to content

Commit

Permalink
docs: refactor gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasten committed Nov 22, 2024
1 parent 5a41b74 commit c945e5b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
12 changes: 5 additions & 7 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ const config = {
theme: {
customCss: './src/css/custom.css',
},
gtag: {
trackingID: 'G-3DVYB2CHLG',
anonymizeIP: true,
},
}),
],
],
Expand Down Expand Up @@ -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",
},
],
};

Expand Down
1 change: 0 additions & 1 deletion docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions docs/static/gtagman.js
Original file line number Diff line number Diff line change
@@ -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');

0 comments on commit c945e5b

Please sign in to comment.