1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add google analytics

This commit is contained in:
Dylan Bartels 2019-07-17 22:26:46 +02:00
parent 375c296f56
commit 4f8a4c9dc2

View File

@ -19,6 +19,7 @@ import (
"github.com/wtfutil/wtf/modules/github"
"github.com/wtfutil/wtf/modules/gitlab"
"github.com/wtfutil/wtf/modules/gitter"
"github.com/wtfutil/wtf/modules/googleanalytics"
"github.com/wtfutil/wtf/modules/gspreadsheets"
"github.com/wtfutil/wtf/modules/hackernews"
"github.com/wtfutil/wtf/modules/hibp"
@ -114,6 +115,9 @@ func MakeWidget(
case "gitter":
settings := gitter.NewSettingsFromYAML(widgetName, moduleConfig, globalConfig)
widget = gitter.NewWidget(app, pages, settings)
case "googleanalytics":
settings := googleanalytics.NewSettingsFromYAML(widgetName, moduleConfig, globalConfig)
widget = googleanalytics.NewWidget(app, settings)
case "gspreadsheets":
settings := gspreadsheets.NewSettingsFromYAML(widgetName, moduleConfig, globalConfig)
widget = gspreadsheets.NewWidget(app, settings)