Added time of day to tracking page.

This commit is contained in:
Marvin Blum
2020-09-24 19:55:22 +02:00
committed by Marvin Blum
parent 991ff57254
commit b6eb05e90c
4 changed files with 93 additions and 41 deletions

View File

@@ -142,6 +142,7 @@ func serveTracking() http.HandlerFunc {
OS []pirsch.OSStats
Countries []pirsch.CountryStats
Platform *pirsch.VisitorStats
TimeOfDay []pirsch.TimeOfDayVisitors
HourlyVisitorsTodayLabels template.JS
HourlyVisitorsTodayDps template.JS
ActiveVisitors int
@@ -162,6 +163,7 @@ func serveTracking() http.HandlerFunc {
tracking.GetOS(startDate, endDate),
tracking.GetCountry(startDate, endDate),
tracking.GetPlatform(startDate, endDate),
tracking.GetVisitorTimeOfDay(startDate, endDate),
hourlyVisitorsTodayLabels,
hourlyVisitorsTodayDps,
activeVisitors,