Fixed bounce/session statistics and updated pirsch to dev version.

This commit is contained in:
Marvin Blum
2020-09-14 21:46:38 +02:00
committed by Marvin Blum
parent 5469b3722a
commit 61685488cd
5 changed files with 34 additions and 9 deletions

View File

@@ -168,11 +168,11 @@ func getLabelsAndData(visitors []pirsch.Stats) (template.JS, template.JS, templa
labelsStr := labels.String()
dataStr := dp.String()
sessionsStr := sessions.String()
bouncesStr := sessions.String()
bouncesStr := bounces.String()
return template.JS(labelsStr[:len(labelsStr)-1]),
template.JS(dataStr[:len(dataStr)-1]),
template.JS(sessionsStr[:len(sessionsStr)-1]),
template.JS(bouncesStr[:len(sessionsStr)-1])
template.JS(bouncesStr[:len(bouncesStr)-1])
}
func getLabelsAndDataHourly(visitors []pirsch.VisitorTimeStats) (template.JS, template.JS) {