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_web/controllers/api
RobertJoonas 7b39328d6c
Props details view (#3196)
* make (none) value in custom prop breakdown add +1 to pagination limit

This is needed because the (none) value is always added to the
breakdown_results **after** fetching those from ClickHouse.

* only include (none) values on the first page of results

* fix percentage metric calculation for paginated results

Instead of summing up the number of visitors from the breakdown results
to get the total, we have to make a separate query to `Stats.aggregate`.
Otherwise, the percentages for each results page will wrongly add up to 100%.

Since imported data for aggregated visitors and other properties (such as
browsers, OSs, etc) live in different tables, we have to tweak the tests to
also include the same number of visitors in the `imported_visitors` table.

* add details view for props

* changelog

* exclude imported data from total
3 years ago
..
external_controller.ex derive jason encoder for request (#3182) 3 years ago
external_sites_controller.ex Clean up after V2 migration (#2868) 4 years ago
external_stats_controller.ex Enable sampling in the Stats API (#2985) 4 years ago
helpers.ex Block Stats API for locked sites (#2302) 4 years ago
internal_controller.ex Prevent robots from looking too much into public dashboards (#3118) 3 years ago
paddle_controller.ex Wrap paddle actions with DB transactions (#2558) 4 years ago
stats_controller.ex Props details view (#3196) 3 years ago