Skip to content

Commit

Permalink
add views_per_visit compute
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Feb 11, 2024
1 parent d5cf4c9 commit 95ea7b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stats/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func (c *Compute) Metric(ctx context.Context, m v1.Metric) (float64, error) {
return c.BounceRate(), nil
case v1.Metric_visit_duration:
return c.VisitDuration(), nil
case v1.Metric_views_per_visit:
return c.ViewsPerVisits(), nil
case v1.Metric_events:
return c.Events(), nil
default:
Expand Down

0 comments on commit 95ea7b7

Please sign in to comment.