beautyjoy / llab

Lightweight lab curriculum system
7 stars 13 forks source link

Google Analytics: Use current domain not config domain #75

Open cycomachead opened 10 years ago

cycomachead commented 10 years ago

Following #3

The domain for a Google analytics script should be the currently running domain, not just what is in the config file.

cycomachead commented 10 years ago

Additionally, there's no need for the GAUse flag. If a GA tracker ID is present, it should be used, otherwise, Analytics shouldn't be loaded.