Updated pirsch and added country statistics to tracking page.

This commit is contained in:
Marvin Blum
2020-09-20 13:38:43 +02:00
committed by Marvin Blum
parent 388997a678
commit b6e14ed1aa
9 changed files with 104 additions and 3 deletions

View File

@@ -140,6 +140,7 @@ func serveTracking() http.HandlerFunc {
Referrer []pirsch.ReferrerStats
Browser []pirsch.BrowserStats
OS []pirsch.OSStats
Countries []pirsch.CountryStats
Platform *pirsch.VisitorStats
HourlyVisitorsTodayLabels template.JS
HourlyVisitorsTodayDps template.JS
@@ -159,6 +160,7 @@ func serveTracking() http.HandlerFunc {
tracking.GetReferrer(startDate, endDate),
tracking.GetBrowser(startDate, endDate),
tracking.GetOS(startDate, endDate),
tracking.GetCountry(startDate, endDate),
tracking.GetPlatform(startDate, endDate),
hourlyVisitorsTodayLabels,
hourlyVisitorsTodayDps,