analytics: support multiple tracking IDs, document UA -> GA4 switch (#1029)

* Issue #1023 - note that GA4 properties are supported

* Issue #1023 - parameterize Google Analytics property script

* Issue #1023 - support a list of multiple Google Analytics tracking IDs in config

* Issue #1023 - update Google Analytics configuration doc

* Fix configuration of multiple Google Analytics properties and simplify type checking

* simplify unnecessary code repetition

* tweak Google Analytics config documentation wording
This commit is contained in:
Michelle Blanchette
2022-12-18 02:43:55 -05:00
committed by GitHub
parent b799ea8eaf
commit 9bccf07faa
3 changed files with 20 additions and 7 deletions

View File

@@ -147,7 +147,7 @@ callouts:
color: red
# Google Analytics Tracking (optional)
# e.g, UA-1234567-89
# Supports a CSV of tracking ID strings (eg. "UA-1234567-89,G-1AB234CDE5")
ga_tracking: UA-2709176-10
ga_tracking_anonymize_ip: true # Use GDPR compliant Google Analytics settings (true/nil by default)