diff --git a/config/default.yaml b/config/default.yaml index d1b00e0fae..181e4d6909 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -7,4 +7,4 @@ algolia: libraryIndexName: dev_docs_sourcer-library-reference googleAnalytics: - trackingID: UA-154792164-4 + trackingID: GTM-W4BW9J9 diff --git a/docusaurus.config.js b/docusaurus.config.js index d4b74e294c..29ec1c8d45 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -66,10 +66,9 @@ const config = { theme: { customCss: require.resolve("./src/css/custom.css"), }, - googleAnalytics: enableGoogleAnalytics + googleTagManager: enableGoogleAnalytics ? { - trackingID: googleAnalyticsConfig.trackingID, - anonymizeIP: true, + containerId: googleAnalyticsConfig.trackingID, } : undefined, }, diff --git a/scripts/push-to-s3-prod.sh b/scripts/push-to-s3-prod.sh index 27e899c124..5f64d6a0dd 100755 --- a/scripts/push-to-s3-prod.sh +++ b/scripts/push-to-s3-prod.sh @@ -4,7 +4,7 @@ set -e export CONFIG_SITE_URL="https://docs.gruntwork.io" -export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="UA-76462621-5" +export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="GTM-5HV93CR" export ALGOLIA_INDEX_NAME="docs_site_prod" export ALGOLIA_API_KEY="49a495ba4c210780a28feed306d05522" # This is a search only key. It is safe to check in. diff --git a/scripts/push-to-s3-stage.sh b/scripts/push-to-s3-stage.sh index a81d3b5fc5..66cdf796cb 100755 --- a/scripts/push-to-s3-stage.sh +++ b/scripts/push-to-s3-stage.sh @@ -4,7 +4,7 @@ set -e export CONFIG_SITE_URL="https://docs.dogfood-stage.com" -export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="UA-154792164-2" +export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="GTM-WPZJH6M" export ALGOLIA_INDEX_NAME="docs_site_stage" export ALGOLIA_API_KEY="8487ee2b8a8d59dfd7597854d562a38b" # This is a search only key. It is safe to check in.