-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Unticketed] clean up messy GA env var situation (#3025)
* Cleans up after bug introduced in https://github.com/HHS/simpler-grants-gov/pull/3001/files and fixed in #3013 * Adds some more detail to the documentation and a diagram
- Loading branch information
1 parent
21e5c05
commit a805bea
Showing
5 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Google Analytics | ||
|
||
The Next app uses the Next third party Google library to add the necessary scripts for instantiating Google Analytics (GA) on the site. To control reporting to different Google Analytics properties, we point the site at a Google Tag Manager (GTM) account ID, which manages the creation of the correct GA tags based on hostname. | ||
|
||
- When the hostname matches PROD (simpler.grants.gov), data will be reported to the production GA account | ||
- If the hostname matches Staging or DEV hostnames, data will be reported to the dev GA account | ||
- Otherwise a placeholder ID is used, and data will effectively be routed into the abyss | ||
|
||
See the "GA IDs By Hostname" variable in our GTM account for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters