diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-12-07 05:28:25 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-12-07 05:28:25 +0300 |
commit | 53c4d95a4b60ee099400db8c36ac64a68ffa37a3 (patch) | |
tree | 1a6918e045fb9d5a6fe35531854be98faafeb86f /plugins/Ecommerce | |
parent | 6eb10a35e6388c62b88d77edc5055daa519de32d (diff) |
Some work on report totals (#13555)
* some work on totals
* fix graphs
* tweak rendering of totals row
* disable evolution for totals row
* let plugins configure totals row visibility
* remove metadata
* more tweaks and make it configurable
* improve code and performance
* fix some tests
* lots of improvements
* support bandwidth and other plugins
* fix tests
* add screenshot test
* also fix existing test
* add new method supportsTotalRow
* various fixes
* Updating some expected test files.
Diffstat (limited to 'plugins/Ecommerce')
4 files changed, 80 insertions, 6 deletions
diff --git a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_ItemsCategory__API.getProcessedReport_day.xml b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_ItemsCategory__API.getProcessedReport_day.xml index 697e009693..4937b4866b 100644 --- a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_ItemsCategory__API.getProcessedReport_day.xml +++ b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_ItemsCategory__API.getProcessedReport_day.xml @@ -108,8 +108,15 @@ </reportData> <reportMetadata /> <reportTotal> - <nb_visits>12</nb_visits> + <revenue>7111.22</revenue> + <quantity>18</quantity> + <price>4111.22</price> + <orders>8</orders> <nb_uniq_visitors>8</nb_uniq_visitors> + <nb_visits>12</nb_visits> <nb_actions>17</nb_actions> + <avg_price>513.9</avg_price> + <avg_quantity>2.3</avg_quantity> + <conversion_rate>66.67%</conversion_rate> </reportTotal> </result>
\ No newline at end of file diff --git a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_ItemsSku__API.getProcessedReport_day.xml b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_ItemsSku__API.getProcessedReport_day.xml index 7ec412b5c4..25b5f5768c 100644 --- a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_ItemsSku__API.getProcessedReport_day.xml +++ b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_ItemsSku__API.getProcessedReport_day.xml @@ -78,8 +78,15 @@ </reportData> <reportMetadata /> <reportTotal> - <nb_visits>6</nb_visits> + <revenue>3111.22</revenue> + <quantity>10</quantity> + <price>2111.22</price> + <orders>4</orders> <nb_uniq_visitors>3</nb_uniq_visitors> + <nb_visits>6</nb_visits> <nb_actions>11</nb_actions> + <avg_price>527.81</avg_price> + <avg_quantity>2.5</avg_quantity> + <conversion_rate>66.67%</conversion_rate> </reportTotal> </result>
\ No newline at end of file diff --git a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_VisitTime.getVisitInformationPerServerTime__API.getProcessedReport_day.xml b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_VisitTime.getVisitInformationPerServerTime__API.getProcessedReport_day.xml index f4fea49b13..1f571c5f87 100644 --- a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_VisitTime.getVisitInformationPerServerTime__API.getProcessedReport_day.xml +++ b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems_Metadata_VisitTime.getVisitInformationPerServerTime__API.getProcessedReport_day.xml @@ -394,12 +394,42 @@ </row> </reportMetadata> <reportTotal> - <nb_visits>3</nb_visits> <nb_uniq_visitors>3</nb_uniq_visitors> + <nb_visits>3</nb_visits> <nb_actions>13</nb_actions> - <nb_conversions>3</nb_conversions> + <nb_users>0</nb_users> + <max_actions>6</max_actions> + <sum_visit_length>5403</sum_visit_length> <bounce_count>0</bounce_count> + <goals> + <row idgoal="1"> + <nb_conversions>1</nb_conversions> + <nb_visits_converted>1</nb_visits_converted> + <revenue>10</revenue> + </row> + <row idgoal="ecommerceAbandonedCart"> + <nb_conversions>2</nb_conversions> + <nb_visits_converted>2</nb_visits_converted> + <revenue>5020.22</revenue> + <items>8</items> + </row> + <row idgoal="ecommerceOrder"> + <nb_conversions>2</nb_conversions> + <nb_visits_converted>1</nb_visits_converted> + <revenue>3111.11</revenue> + <revenue_subtotal>2500</revenue_subtotal> + <revenue_tax>511</revenue_tax> + <revenue_shipping>100.11</revenue_shipping> + <revenue_discount>666</revenue_discount> + <items>10</items> + </row> + </goals> + <nb_conversions>3</nb_conversions> <revenue>3121.11</revenue> <nb_visits_converted>0</nb_visits_converted> + <conversion_rate>0%</conversion_rate> + <nb_actions_per_visit>4.3</nb_actions_per_visit> + <avg_time_on_site>1801</avg_time_on_site> + <bounce_rate>0%</bounce_rate> </reportTotal> </result>
\ No newline at end of file diff --git a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems__API.getProcessedReport_day.xml b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems__API.getProcessedReport_day.xml index 8019f8be6b..5cdd1dbbc3 100644 --- a/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems__API.getProcessedReport_day.xml +++ b/plugins/Ecommerce/tests/System/expected/test_ecommerceOrderWithItems__API.getProcessedReport_day.xml @@ -87,11 +87,41 @@ </row> </reportMetadata> <reportTotal> - <nb_visits>3</nb_visits> <nb_uniq_visitors>2</nb_uniq_visitors> + <nb_visits>3</nb_visits> <nb_actions>13</nb_actions> - <nb_conversions>3</nb_conversions> + <nb_users>0</nb_users> + <max_actions>6</max_actions> + <sum_visit_length>5403</sum_visit_length> <bounce_count>0</bounce_count> + <goals> + <row idgoal="1"> + <nb_conversions>1</nb_conversions> + <nb_visits_converted>1</nb_visits_converted> + <revenue>10</revenue> + </row> + <row idgoal="ecommerceAbandonedCart"> + <nb_conversions>2</nb_conversions> + <nb_visits_converted>2</nb_visits_converted> + <revenue>5020.22</revenue> + <items>8</items> + </row> + <row idgoal="ecommerceOrder"> + <nb_conversions>2</nb_conversions> + <nb_visits_converted>1</nb_visits_converted> + <revenue>3111.11</revenue> + <revenue_subtotal>2500</revenue_subtotal> + <revenue_tax>511</revenue_tax> + <revenue_shipping>100.11</revenue_shipping> + <revenue_discount>666</revenue_discount> + <items>10</items> + </row> + </goals> + <nb_conversions>3</nb_conversions> <revenue>3121.11</revenue> + <conversion_rate>0%</conversion_rate> + <nb_actions_per_visit>4.3</nb_actions_per_visit> + <avg_time_on_site>1801</avg_time_on_site> + <bounce_rate>0%</bounce_rate> </reportTotal> </result>
\ No newline at end of file |