diff options
author | Ben Burgess <88810029+bx80@users.noreply.github.com> | 2022-05-31 20:08:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 20:08:05 +0300 |
commit | 70b004c968a1850b65c71156b465d189f4692a49 (patch) | |
tree | 67694906d01d5fccb5ecddae3ceb78b161dc663b /tests/PHPUnit/System/expected/test_ImportLogs__Actions.getExitPageTitles_range.xml | |
parent | 9a7dd7d9fdce120c80dc82ea77019e8c1a489af0 (diff) |
Goals per page - new reports and metrics for tracking page conversions (#18221)
* Goals per page - added new reports and metrics for tracking page conversions
* Added top entry page statistic, added entry titles related report, adjusted percent formatting
* Added datatable filter to remove goal revenue columns if there are no values, refactored goal visualisation classes to minimise duplicate methods
* Fixed conversion query matching issue
* Added system tests for page goals reports, rework of metrics and SQL to match expected calculations
* Added UI tests
* Remove unnecessary code, merge system tests
* Fix for archiving query error on MySQL
* Fix for query to work with MySQL 5.7
* Update core/API/DocumentationGenerator.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Revert unnecessary DocumentationGenerator change
* Fix incorrect row limit config setting names
* Remove special handling of pages reports
* Update plugins/Goals/Visualizations/GoalsPages.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Update plugins/Goals/Visualizations/GoalsEntryPages.php
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* Tidy up visualization classes
* Fix for sorting
* Remove unnecessary columns from reports, fix tests
* Add new visualizations to Javascript checks
* Add BasePages parent report class to deduplicate new reports
* Reworked to add per-goal metric columns to the Actions_action and Action_action_url archives instead of generating separate page goal archives
* Added a filter to remove goal columns from Actions datatables by default and an optional parameter to include goals columns
* Improved remove goals actions filter to recurse subtables, get goals list for site
* Test fixes
* Move page goal metrics to nested column structure on actions and actions_url archives
* Fixes and updates for apiGetReportMetadata tests
* Test fixes
* Test fixes and updates
* More test updates
* Bug fix for entry page incorrectly aggregating data from different goals
* Backwards compatibility test fixes
* Test fix
* Update submodule
* Updated tests
* Updated tests
* Updated test
* built vue files
* Force sorting of scheduled reports list by unique id to avoid sorting inconsistencies between PHP7 and PHP8 tests
* Updated tests after sorting scheduled reports list
* Updated tests
* Test fixes
* Skip specific tests that pass with PHP7 but fail with PHP8
* Test updates
* Test updates
* UI test screenshot updates
* Slightly increased reasonable release total filesize test from 55mb to 56mb
* Test fix
* Disable test for PHP8
* Update submodule
* Update submodule
* Test updates
* Revert test changes
* Predictably sort scheduled reports
* Disable failing test for PHP 8
* Updated tests after conflict fix
* Update tests after conflict fix
* Update submodule
* Revert unnecessary change
* Rework to use a single goals visualisation and show goal metrics directly on the action page reports
* Update UI tests
* Update tests, fix for goals menu ordering issue
* Update tests
* Revert goal overview menu item ordering
* Do not add goal metadata to actions reports when the includeGoals API parameter is set to false
* Updated unit and UI tests
* Update UI tests
* Update submodule
* Update submodules
* Code improvements, handle ecommerce metrics for page goals, remove obsolete test expected xml files
* Remove unnecessary row properties after use
* fix phpcs
* Improve & refactor code
* Update system test
* Tweaked release reasonable size test from 55mb to 58mb to prevent test failure
* Update submodule
* Update system test
* Update UI test screenshots
* Update UI test screenshots
* Update submodule
* Update UI test screenshot
* update submodule
* test improvements
* updates expected UI files
* fix removing unused revenue columns from UI
* applies some psr12 code formatting
* Minor query optimisations
* Rework the conversions by pageview query to remove subquery and all grouping, add aggregation in code
* Test fixes, null checks for revenue metrics
* Expanded goal page tests to cover multiple goals converted in a single visit
* Updated UI test screenshots
* Expanded test to be multi-day, multi-goal, multiple conversion per visit. Fixed summary logic for multi-goal visits. Fixed calculation of viewed before page rate to get conversion total via API call
* Update system and UI screenshot tests
* Added method return type hint, ensure request parameters are blank on Goals.get filter API call
* Retrieve conversion totals from numeric archives directly instead of via API call
* Move goal conversion totals lookup from the CalculateConversionPageRate filter to the Actions API and then pass to the filter
* Tidy up unused namespaces
* Revert move of goal conversion total retrieval from filter to actions api. Included segment in archive build for goal conversions totals.
* fixes: date might be manipulated too often
* updates expected UI files
* avoid building archive too often
* updates expected test files
* fix ui tests
Co-authored-by: sgiehl <stefan@matomo.org>
Co-authored-by: bx80 <bx80@users.noreply.github.com>
Diffstat (limited to 'tests/PHPUnit/System/expected/test_ImportLogs__Actions.getExitPageTitles_range.xml')
-rw-r--r-- | tests/PHPUnit/System/expected/test_ImportLogs__Actions.getExitPageTitles_range.xml | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/tests/PHPUnit/System/expected/test_ImportLogs__Actions.getExitPageTitles_range.xml b/tests/PHPUnit/System/expected/test_ImportLogs__Actions.getExitPageTitles_range.xml index d34df83336..82c677c799 100644 --- a/tests/PHPUnit/System/expected/test_ImportLogs__Actions.getExitPageTitles_range.xml +++ b/tests/PHPUnit/System/expected/test_ImportLogs__Actions.getExitPageTitles_range.xml @@ -32,6 +32,21 @@ <entry_sum_visit_length>44</entry_sum_visit_length> <entry_bounce_count>2</entry_bounce_count> <exit_nb_visits>2</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>4</nb_conversions> + <revenue>20</revenue> + <nb_conv_pages_before>4</nb_conv_pages_before> + <nb_conversions_attrib>4</nb_conversions_attrib> + <nb_conversions_page_rate>0.078</nb_conversions_page_rate> + <nb_conversions_page_uniq>4</nb_conversions_page_uniq> + <revenue_attrib>20</revenue_attrib> + <revenue_entry>20</revenue_entry> + <nb_conversions_entry_rate>2</nb_conversions_entry_rate> + <revenue_per_entry>10</revenue_per_entry> + <nb_conversions_entry>4</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>4</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>4</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>2</sum_daily_exit_nb_uniq_visitors> @@ -80,6 +95,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>2</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>2</nb_conversions> + <revenue>10</revenue> + <nb_conv_pages_before>2</nb_conv_pages_before> + <nb_conversions_attrib>2</nb_conversions_attrib> + <nb_conversions_page_rate>0.039</nb_conversions_page_rate> + <nb_conversions_page_uniq>2</nb_conversions_page_uniq> + <revenue_attrib>10</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>2</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>2</sum_daily_exit_nb_uniq_visitors> @@ -128,6 +158,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>2</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>2</nb_conversions> + <revenue>10</revenue> + <nb_conv_pages_before>2</nb_conv_pages_before> + <nb_conversions_attrib>2</nb_conversions_attrib> + <nb_conversions_page_rate>0.039</nb_conversions_page_rate> + <nb_conversions_page_uniq>2</nb_conversions_page_uniq> + <revenue_attrib>10</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -176,6 +221,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>2</entry_bounce_count> <exit_nb_visits>2</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>2</nb_conversions> + <revenue>10</revenue> + <nb_conv_pages_before>2</nb_conv_pages_before> + <nb_conversions_attrib>2</nb_conversions_attrib> + <nb_conversions_page_rate>0.039</nb_conversions_page_rate> + <nb_conversions_page_uniq>2</nb_conversions_page_uniq> + <revenue_attrib>10</revenue_attrib> + <revenue_entry>10</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>2</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>2</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>2</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>2</sum_daily_exit_nb_uniq_visitors> @@ -224,6 +284,21 @@ <entry_sum_visit_length>242</entry_sum_visit_length> <entry_bounce_count>0</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -315,6 +390,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -363,6 +453,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -454,6 +559,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -545,6 +665,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -593,6 +728,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -641,6 +791,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -689,6 +854,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> @@ -737,6 +917,21 @@ <entry_sum_visit_length>0</entry_sum_visit_length> <entry_bounce_count>1</entry_bounce_count> <exit_nb_visits>1</exit_nb_visits> + <goals> + <row idgoal='1'> + <nb_conversions>1</nb_conversions> + <revenue>5</revenue> + <nb_conv_pages_before>1</nb_conv_pages_before> + <nb_conversions_attrib>1</nb_conversions_attrib> + <nb_conversions_page_rate>0.02</nb_conversions_page_rate> + <nb_conversions_page_uniq>1</nb_conversions_page_uniq> + <revenue_attrib>5</revenue_attrib> + <revenue_entry>5</revenue_entry> + <nb_conversions_entry_rate>1</nb_conversions_entry_rate> + <revenue_per_entry>5</revenue_per_entry> + <nb_conversions_entry>1</nb_conversions_entry> + </row> + </goals> <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors> <sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors> <sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors> |