diff options
author | Peter Zhang <peter@innocraft.com> | 2022-03-26 21:11:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-26 21:11:32 +0300 |
commit | e1eea7a08911da4d8718ad9316a19bd326cf02d7 (patch) | |
tree | a8b139206fcc30a334c7cbcc57bb6a124670a601 /plugins/API | |
parent | b5b62fd5d4f2eaf5fcf59ecb4371aca2e2944568 (diff) |
Add Two New segments (#18953)
* add order revenue
add order revenue
* add order revenue
update
* Update DimensionTest.php
add 2 tests
* update cart
update cart
* update errors
update errors
* update segment, and add tests
update segment, and add tests
* update query on cart left in cart
update query on cart left in cart
* update tests
update tests
* Update Revenue.php
update type
* Update test_apiGetReportMetadata__API.getSegmentsMetadata.xml
update tests
* Update Revenue.php
update
* Update Revenue.php
update checks
* Update Revenue.php
group into functions
* Update Revenue.php
update
* Update Revenue.php
update and
* Update test_ecommerceOrderWithItems_SegmentRevenueOrder__Goals.get_day.xml
update tests
* Update Revenue.php
update support type
* Update Revenue.php
update wrong variable
* tests
Co-authored-by: sgiehl <stefan@matomo.org>
Diffstat (limited to 'plugins/API')
3 files changed, 5 insertions, 1 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index 2d7241122e..b8ff74519b 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -745,7 +745,7 @@ class API extends \Piwik\Plugin\API $segmentsNeedActionsInfo = array('visitConvertedGoalId', 'pageUrl', 'pageTitle', 'siteSearchKeyword', 'siteSearchCategory', 'siteSearchCount', 'entryPageTitle', 'entryPageUrl', 'exitPageTitle', 'exitPageUrl', - 'outlinkUrl', 'downloadUrl', 'eventUrl', 'orderId', 'productViewName', 'productViewSku', 'productViewPrice', + 'outlinkUrl', 'downloadUrl', 'eventUrl', 'orderId', 'revenueOrder', 'revenueAbandonedCart', 'productViewName', 'productViewSku', 'productViewPrice', 'productViewCategory1', 'productViewCategory2', 'productViewCategory3', 'productViewCategory4', 'productViewCategory5' ); $isCustomVariablePage = stripos($segmentName, 'customVariablePage') !== false; diff --git a/plugins/API/tests/System/expected/test_AutoSuggestAPITest_revenueAbandonedCart__API.getSuggestedValuesForSegment.xml b/plugins/API/tests/System/expected/test_AutoSuggestAPITest_revenueAbandonedCart__API.getSuggestedValuesForSegment.xml new file mode 100644 index 0000000000..addecb936b --- /dev/null +++ b/plugins/API/tests/System/expected/test_AutoSuggestAPITest_revenueAbandonedCart__API.getSuggestedValuesForSegment.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="utf-8" ?> +<result/>
\ No newline at end of file diff --git a/plugins/API/tests/System/expected/test_AutoSuggestAPITest_revenueOrder__API.getSuggestedValuesForSegment.xml b/plugins/API/tests/System/expected/test_AutoSuggestAPITest_revenueOrder__API.getSuggestedValuesForSegment.xml new file mode 100644 index 0000000000..addecb936b --- /dev/null +++ b/plugins/API/tests/System/expected/test_AutoSuggestAPITest_revenueOrder__API.getSuggestedValuesForSegment.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="utf-8" ?> +<result/>
\ No newline at end of file |