Added googla analytics id setting

This commit is contained in:
Torkel Ödegaard
2015-03-27 17:13:44 +01:00
parent 6bd2736116
commit 80c771c945
7 changed files with 72 additions and 15 deletions
+5 -2
View File
@@ -97,7 +97,8 @@ var (
configFiles []string
ReportingEnabled bool
ReportingEnabled bool
GoogleAnalyticsId string
)
func init() {
@@ -235,7 +236,9 @@ func NewConfigContext(config string) {
ImagesDir = "data/png"
PhantomDir = "vendor/phantomjs"
ReportingEnabled = Cfg.Section("").Key("reporting-enabled").MustBool(true)
analytics := Cfg.Section("analytics")
ReportingEnabled = analytics.Key("reporting_enabled").MustBool(true)
GoogleAnalyticsId = analytics.Key("google_analytics_ua_id").String()
readSessionConfig()
}