analytics/test/plausible_web/controllers
Karl-Aksel Puulmann 1909743b90
Move conversion_rate logic from elixir to clickhouse (#3887)
* Separate out query building from pagination/execution logic.

* Refactor pageview_goals breakdown query, removing index column from results

* Remove zip_columns logic

* Use common pagination util

* Do everything in a single query for breakdowns for goals

* Order in DB

* Make sure column order is identical

* Calculate CR within the goal breakdown query

* Calculate CR for property breakdowns

* WIP: Calculate group CR

* CR with order_by

* Compatibility fix

* Import Ecto.Query and cleanup

* handle total_visitors the same way as add_percentage

* Handle conversion_rate in aggregate.ex

* Solve rebase fail

* Simplify maybe_add_group_conversion_rate

* Add conversion_rate defaults to 0 test

* Add test for conversion_rate should not be calculated with imported data (failing here and on master)

* Dont include imported data when breakdown by prop or goal

* Remove revenue_nils
2024-03-21 09:38:44 +02:00
..
api Move conversion_rate logic from elixir to clickhouse (#3887) 2024-03-21 09:38:44 +02:00
auth_controller Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
CSVs Set exit_page only on pageviews (#3870) 2024-03-18 11:11:15 +02:00
site Allow inviting users who are members already (#3797) 2024-02-19 12:12:31 +01:00
admin_auth_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
admin_controller_test.exs New admin route for displaying usage (#3577) 2023-12-06 10:07:07 +00:00
auth_controller_sync_test.exs Always enable e-mail verification on full build (#3666) 2024-01-04 10:14:25 +01:00
auth_controller_test.exs Implement UI for multiple imports (#3727) 2024-02-28 09:34:04 +01:00
avatar_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
billing_controller_test.exs Make hello@plausible.io clickable (#3746) 2024-02-01 09:43:21 +01:00
error_report_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
invitation_controller_test.exs Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
page_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
site_controller_test.exs Implement UI for multiple imports (#3727) 2024-02-28 09:34:04 +01:00
stats_controller_test.exs Move add_percentage logic into clickhouse (#3854) 2024-03-06 11:08:25 +02:00
unsubscribe_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00