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

Google Anayltics is seeing localhost #40

Open
johlju opened this issue Jul 29, 2019 · 0 comments
Open

Google Anayltics is seeing localhost #40

johlju opened this issue Jul 29, 2019 · 0 comments
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.

Comments

@johlju
Copy link
Member

johlju commented Jul 29, 2019

When the site is run in dev environment those hits are reported to Google Analytics as well. We should make sure not report to google analytics in dev-environment.

image

This can be solved by add and change a variable in the azure pipeline so the script is only run when in production, or the script is only run when the url is not 'localhost'. Dev-environment variable is preferably since dev could potentially use another url as well.

@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

1 participant