mirror of
https://github.com/Kugelschieber/marvinblum.git
synced 2026-01-18 06:40:27 +00:00
Added active pages, visitor count per page and referer.
This commit is contained in:
6
main.go
6
main.go
@@ -154,12 +154,15 @@ func serveTracking() http.HandlerFunc {
|
||||
TotalVisitorsLabels template.JS
|
||||
TotalVisitorsDps template.JS
|
||||
PageVisits []tracking.PageVisits
|
||||
Pages []pirsch.VisitorPage
|
||||
Languages []pirsch.VisitorLanguage
|
||||
Referer []pirsch.VisitorReferer
|
||||
HourlyVisitorsLabels template.JS
|
||||
HourlyVisitorsDps template.JS
|
||||
HourlyVisitorsTodayLabels template.JS
|
||||
HourlyVisitorsTodayDps template.JS
|
||||
ActiveVisitors int
|
||||
ActiveVisitorPages []pirsch.PageVisitors
|
||||
}{
|
||||
start,
|
||||
startDate,
|
||||
@@ -167,12 +170,15 @@ func serveTracking() http.HandlerFunc {
|
||||
totalVisitorsLabels,
|
||||
totalVisitorsDps,
|
||||
tracking.GetPageVisits(startDate, endDate),
|
||||
tracking.GetPages(startDate, endDate),
|
||||
tracking.GetLanguages(startDate, endDate),
|
||||
tracking.GetReferer(startDate, endDate),
|
||||
hourlyVisitorsLabels,
|
||||
hourlyVisitorsDps,
|
||||
hourlyVisitorsTodayLabels,
|
||||
hourlyVisitorsTodayDps,
|
||||
tracking.GetActiveVisitors(),
|
||||
tracking.GetActiveVisitorPages(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user