From ca8d1dc7a67da567acae9deca8296a51799b6f75 Mon Sep 17 00:00:00 2001 From: Oseer Williams Date: Mon, 10 Jun 2024 09:38:22 -0400 Subject: [PATCH 1/2] fix(analytics): fix for google analytics url in content policy --- docusaurus.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 923024e392..d2bb013930 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -37,7 +37,7 @@ const config = { attributes: { 'http-equiv': 'Content-Security-Policy', content: - "default-src 'self' 'unsafe-inline' 'unsafe-eval' data: https://avatars.githubusercontent.com https://github.com https://kit.fontawesome.com/ https://ka-f.fontawesome.com/ https://fonts.googleapis.com/ https://fonts.gstatic.com/ https://*.algolia.net/;", + "default-src 'self' 'unsafe-inline' 'unsafe-eval' data: https://avatars.githubusercontent.com https://github.com https://kit.fontawesome.com/ https://ka-f.fontawesome.com/ https://fonts.googleapis.com/ https://fonts.gstatic.com/ https://www.google-analytics.com/ https://*.algolia.net/;", }, }, { @@ -89,6 +89,13 @@ const config = { path: './releases', }, ], + [ + '@docusaurus/plugin-google-gtag', + { + trackingID: 'G-RDK4Y0RE7S', + anonymizeIP: true, + }, + ], ], presets: [ From e40616bb93117e962f6fac6fb8296879ef498c95 Mon Sep 17 00:00:00 2001 From: Oseer Williams Date: Mon, 10 Jun 2024 09:39:23 -0400 Subject: [PATCH 2/2] fix(analytics): fix for google analytics url in content policy --- docusaurus.config.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index d2bb013930..0ad07a1254 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -89,13 +89,6 @@ const config = { path: './releases', }, ], - [ - '@docusaurus/plugin-google-gtag', - { - trackingID: 'G-RDK4Y0RE7S', - anonymizeIP: true, - }, - ], ], presets: [