Skip to content

Commit

Permalink
Add the visits field to MetricsResult (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz authored Sep 29, 2022
1 parent c17a4a5 commit 71c3e8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plausible/timeseries_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 71c3e8a

Please sign in to comment.