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

Make google analytics accounts a variable #8

Open
wilsonmar opened this issue May 8, 2019 · 0 comments
Open

Make google analytics accounts a variable #8

wilsonmar opened this issue May 8, 2019 · 0 comments

Comments

@wilsonmar
Copy link

Google-assigned account code within html page such as https://github.com/benedwards44/sforgcompare/blob/master/sforgcompare/templates/base.html are specific for a specific website:

ga('create', 'UA-18288189-22', 'auto');

Another organization which uses this code would need to change it.
This means if someone forks this for their own use, it would confuse Google Analytics for this website.

So if the code is converted to a variable, this code base would be less error-prone to modify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant