Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Google analytics tag tracking to separate environments #3015

Open
kepae opened this issue Aug 12, 2024 · 0 comments
Open

Refactor Google analytics tag tracking to separate environments #3015

kepae opened this issue Aug 12, 2024 · 0 comments
Labels
Priority: Medium This should eventually get assigned Stack: Front End The issue pertains to the front end Type: Enhancement New feature or request

Comments

@kepae
Copy link
Collaborator

kepae commented Aug 12, 2024

Currently, we use gatsby-plugin-google-gtag to configure our site with the given Google Analytics tag.

At the moment, this always ends up instrumenting the site in all environments (local, CI/CD, staging, production) with the same tag. To identify production traffic in the analytics we have to filter by host name to incidentdatabase.ai -- but this restricts access to some analytics features or makes them harder to use.

We should refactor so that either the tag is only present in production environments.
Alternatively, if there are better ways to separate environments for the sake of analytics, we can do that.

resolve: `gatsby-plugin-google-gtag`,

@kepae kepae added Type: Enhancement New feature or request Priority: Medium This should eventually get assigned Stack: Front End The issue pertains to the front end labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium This should eventually get assigned Stack: Front End The issue pertains to the front end Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant