sforgcompare icon indicating copy to clipboard operation
sforgcompare copied to clipboard

Make google analytics accounts a variable

Open wilsonmar opened this issue 6 years ago • 0 comments

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.

wilsonmar avatar May 08 '19 10:05 wilsonmar