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

View File

@@ -33,6 +33,10 @@ func setIndexViewData(c *middleware.Context) error {
c.Data["AppUrl"] = setting.AppUrl
c.Data["AppSubUrl"] = setting.AppSubUrl
if setting.GoogleAnalyticsId != "" {
c.Data["GoogleAnalyticsId"] = setting.GoogleAnalyticsId
}
return nil
}