Added sessions and bounces to tracking page.

This commit is contained in:
Marvin Blum
2020-09-13 20:04:31 +02:00
committed by Marvin Blum
parent 7b2a4dad51
commit 0e96dff816
3 changed files with 63 additions and 18 deletions

View File

@@ -234,12 +234,26 @@
type: "line",
data: {
labels: [{{.TotalVisitorsLabels}}],
datasets: [{
backgroundColor: "rgba(127, 127, 127, 0.05)",
borderColor: "#7f7f7f",
label: "Total Visitors",
data: [{{.TotalVisitorsDps}}]
}]
datasets: [
{
backgroundColor: "rgb(43, 180, 0, 0.02)",
borderColor: "#289800",
label: "Total Visitors",
data: [{{.TotalVisitorsDps}}]
},
{
backgroundColor: "rgb(0, 63, 197, 0.02)",
borderColor: "#00359f",
label: "Sessions",
data: [{{.SessionsDps}}]
},
{
backgroundColor: "rgba(194, 0, 0, 0.02)",
borderColor: "#980000",
label: "Bounces",
data: [{{.BouncesDps}}]
}
]
}
});
@@ -263,12 +277,26 @@
type: "line",
data: {
labels: [{{$data.Labels}}],
datasets: [{
backgroundColor: "rgba(127, 127, 127, 0.05)",
borderColor: "#7f7f7f",
label: "Page Visits",
data: [{{$data.Data}}]
}]
datasets: [
{
backgroundColor: "rgb(43, 180, 0, 0.02)",
borderColor: "#289800",
label: "Page Visits",
data: [{{$data.Data}}]
},
{
backgroundColor: "rgb(0, 63, 197, 0.02)",
borderColor: "#00359f",
label: "Sessions",
data: [{{$data.Sessions}}]
},
{
backgroundColor: "rgba(194, 0, 0, 0.02)",
borderColor: "#980000",
label: "Bounces",
data: [{{$data.Bounces}}]
}
]
}
});
{{end}}