From 71c3e8a0eea1b2f107d2dc22c9de478b6284d910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20de=20Metz?= Date: Thu, 29 Sep 2022 22:14:24 +0200 Subject: [PATCH] Add the visits field to MetricsResult (#3) --- plausible/timeseries_query.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plausible/timeseries_query.go b/plausible/timeseries_query.go index 2242342..cc35b9b 100644 --- a/plausible/timeseries_query.go +++ b/plausible/timeseries_query.go @@ -79,6 +79,10 @@ type MetricsResult struct { // Visitors contains information about the number of visitors. // This field must only be used if the query requested the visitors metric. Visitors int `json:"visitors"` + + // Visits contains information about the number of visits per session. + // This field must only be used if the query requested the visits metric. + Visits int `json:"visits"` } // BounceRate returns the bounce rate associated with this result.