diff --git a/config/custom-environment-variables.yaml b/config/custom-environment-variables.yaml index a6a69f231c..0bd0c5e621 100644 --- a/config/custom-environment-variables.yaml +++ b/config/custom-environment-variables.yaml @@ -19,8 +19,3 @@ algolia: apiKey: ALGOLIA_API_KEY indexName: ALGOLIA_INDEX_NAME libraryIndexName: ALGOLIA_LIBRARY_INDEX_NAME - -# Posthog Analytics tracking config -posthog: - apiKey: CONFIG_POSTHOG_API_KEY - appUrl: CONFIG_POSTHOG_APP_URL diff --git a/docusaurus.config.js b/docusaurus.config.js index 4291c6de07..02db0d29c2 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -12,11 +12,6 @@ const { redirects } = require("./src/redirects.js") const algoliaConfig = cfg.has("algolia") ? cfg.get("algolia") : undefined -const posthogConfig = cfg.has("posthog") ? cfg.get("posthog") : undefined - -// 10-6-2025 - disabling posthog in docusaurus config as we deploy it to the page via Google Tag Manager instead -const enablePosthog = false //posthogConfig && posthogConfig.apiKey - const googleAnalyticsConfig = cfg.has("googleAnalytics") ? cfg.get("googleAnalytics") : undefined @@ -35,10 +30,6 @@ const buildVersion = cfg.has("app.buildVersion") const plugins = ["plugin-image-zoom"] -if (enablePosthog) { - plugins.push("posthog-docusaurus") -} - const redirectPlugin = [ "@docusaurus/plugin-client-redirects", { @@ -449,12 +440,6 @@ async function createConfig() { } : undefined, zoomSelector: ".markdown :not(em) > img:not(.no-zoom)", - posthog: enablePosthog - ? { - apiKey: posthogConfig.apiKey, - appUrl: posthogConfig.appUrl, - } - : undefined, metadata: [ // https://docusaurus.io/docs/2.x/seo#global-metadata // This would become in the generated HTML diff --git a/package.json b/package.json index bd366264d3..30b87180b3 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "file-loader": "^6.2.0", "path": "^0.12.7", "plugin-image-zoom": "ataft/plugin-image-zoom", - "posthog-docusaurus": "^1.0.3", "prism-react-renderer": "^2.1.0", "raw-loader": "^4.0.2", "react": "^18.2.0", diff --git a/scripts/push-to-s3-prod.sh b/scripts/push-to-s3-prod.sh index 7ccd7dcdf1..77b42f5961 100755 --- a/scripts/push-to-s3-prod.sh +++ b/scripts/push-to-s3-prod.sh @@ -9,8 +9,6 @@ export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="GTM-5TTJJGTL" export ALGOLIA_INDEX_NAME="docs_site_prod" export ALGOLIA_API_KEY="49a495ba4c210780a28feed306d05522" # This is a search only key. It is safe to check in. -export CONFIG_POSTHOG_API_KEY="phc_ktdClyvZqCHAYrs5dIf1QmKKdswYqCknfrolP83cPjS" - yarn && yarn build aws s3 sync build/ s3://docs.gruntwork.io --delete # Delete option ensures deleted files get removed from the bucket diff --git a/yarn.lock b/yarn.lock index e63b451b21..81c7b64bf0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13835,11 +13835,6 @@ postcss@^8.4.21, postcss@^8.4.24, postcss@^8.4.26, postcss@^8.4.33, postcss@^8.4 picocolors "^1.1.0" source-map-js "^1.2.1" -posthog-docusaurus@^1.0.3: - version "1.0.5" - resolved "https://registry.yarnpkg.com/posthog-docusaurus/-/posthog-docusaurus-1.0.5.tgz#836ae512521bbc6b81f8a54df74ab70deac7afab" - integrity sha512-XmNB3VkiSiiOIWfI5K140kPraN3aqwLu6uWcoYH3smYkrGuAYOw+kGm0ozMNaZlmDBaWENK7yy9SLVgl8i5bcg== - prepend-http@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"