sforgcompare
sforgcompare copied to clipboard
Make google analytics accounts a variable
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.