Skip to content

Commit 953668f

Browse files
author
Andrew Ellison
authored
switch to tag manager (#909)
* switch to tag manager * remove unsupported option * fix build issue
1 parent d638a11 commit 953668f

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

config/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ algolia:
77
libraryIndexName: dev_docs_sourcer-library-reference
88

99
googleAnalytics:
10-
trackingID: UA-154792164-4
10+
trackingID: GTM-W4BW9J9

docusaurus.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@ const config = {
7171
theme: {
7272
customCss: require.resolve("./src/css/custom.css"),
7373
},
74-
googleAnalytics: enableGoogleAnalytics
74+
googleTagManager: enableGoogleAnalytics
7575
? {
76-
trackingID: googleAnalyticsConfig.trackingID,
77-
anonymizeIP: true,
76+
containerId: googleAnalyticsConfig.trackingID,
7877
}
7978
: undefined,
8079
},

scripts/push-to-s3-prod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
export CONFIG_SITE_URL="https://docs.gruntwork.io"
66

7-
export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="UA-76462621-5"
7+
export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="GTM-5HV93CR"
88

99
export ALGOLIA_INDEX_NAME="docs_site_prod"
1010
export ALGOLIA_API_KEY="49a495ba4c210780a28feed306d05522" # This is a search only key. It is safe to check in.

scripts/push-to-s3-stage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
export CONFIG_SITE_URL="https://docs.dogfood-stage.com"
66

7-
export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="UA-154792164-2"
7+
export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="GTM-WPZJH6M"
88

99
export ALGOLIA_INDEX_NAME="docs_site_stage"
1010
export ALGOLIA_API_KEY="8487ee2b8a8d59dfd7597854d562a38b" # This is a search only key. It is safe to check in.

0 commit comments

Comments
 (0)