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 cad3da2 commit 33de69e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ async function createConfig() {

// 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" },
{ id: "CookieDeclaration", src: "https://consent.cookiebot.com/a0cc864f-0b67-49be-8d65-9ed354de2ee6/cd.js" }
{
src: '/marblerun/gtagman.js',
async: true,
"data-cookieconsent": "ignore",
},
],

// Even if you don't use internalization, you can use this field to set useful
Expand Down Expand Up @@ -52,10 +54,6 @@ async function createConfig() {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-3DVYB2CHLG',
anonymizeIP: true,
}
}),
],
// Redocusaurus config
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 33de69e

Please sign in to comment.