You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/stats
RobertJoonas 7641c66a2b
Stats api time on page (#3858)
* add metric validation + support in aggregate

* add a test ensuring comparison works

* disallow time_on_page with a goal filter

* Return time_on_page as `nil` from aggregate API

In case time_on_page cannot be calculated, we'll return it as `nil` from
the Stats API.

This is to make the behaviour consistent between breakdown and aggregate
endpoints. As for the UI, we'll still continue to report time_on_page as
0 - not changing any UI behaviour as discussed with Marko.

* add tests for time_on_page in event:page breakdown

* update changelog

* invalidate time_on_page with event:name filter

* add the ability to only query time_on_page in page breakdown

We'll need the visitors metric to get the list of pages to calculate the
time_on_page for.
3 years ago
..
filters Reapply conversion rate into Stats API + bugfixes (#3805) 3 years ago
aggregate.ex Stats api time on page (#3858) 3 years ago
base.ex Move `add_percentage` logic into clickhouse (#3854) 3 years ago
breakdown.ex Stats api time on page (#3858) 3 years ago
clickhouse.ex Implement UI for multiple imports (#3727) 3 years ago
compare.ex Stats api time on page (#3858) 3 years ago
comparisons.ex Generalize Cache/Warmers - extract only specifics to `Site.Cache` (#3716) 3 years ago
current_visitors.ex Clean up after V2 migration (#2868) 4 years ago
custom_props.ex Add `event:goal` property to Stats API (#3718) 3 years ago
email_report.ex Small bugfix + refactor email reports (#3642) 3 years ago
filter_suggestions.ex Filtering by multiple custom properties (#3719) 3 years ago
fragments.ex Remove ARRAY JOINs (#3708) 3 years ago
imported.ex Move `add_percentage` logic into clickhouse (#3854) 3 years ago
interval.ex Add multiple imports per site (#3724) 3 years ago
props.ex Add `event:goal` property to Stats API (#3718) 3 years ago
query.ex Experimental session count (#3786) 3 years ago
timeseries.ex Reapply conversion rate into Stats API + bugfixes (#3805) 3 years ago
util.ex Stats api time on page (#3858) 3 years ago