diff --git a/tests/System/TwoVisitsWithCustomVariablesTest.php b/tests/System/TwoVisitsWithCustomVariablesTest.php index 60b43c5..1966b95 100644 --- a/tests/System/TwoVisitsWithCustomVariablesTest.php +++ b/tests/System/TwoVisitsWithCustomVariablesTest.php @@ -86,7 +86,8 @@ public function getApiForTesting() 'apiModule' => 'CustomVariables', 'apiAction' => 'getCustomVariablesValuesFromNameId', 'supertableApi' => 'CustomVariables.getCustomVariables', - 'testSuffix' => '__subtable') + // the percent of total columns changed in 6.0.0-b3 + 'testSuffix' => '__subtable' . (version_compare(Version::VERSION, '6.0.0-b3', '<') ? '_old' : '')) ); } diff --git a/tests/System/expected/test_twoVisitsWithCustomVariables__subtable__API.getProcessedReport_day.xml b/tests/System/expected/test_twoVisitsWithCustomVariables__subtable__API.getProcessedReport_day.xml index f5222e7..1ad3e14 100644 --- a/tests/System/expected/test_twoVisitsWithCustomVariables__subtable__API.getProcessedReport_day.xml +++ b/tests/System/expected/test_twoVisitsWithCustomVariables__subtable__API.getProcessedReport_day.xml @@ -28,10 +28,6 @@ The percentage of visits that triggered a conversion. The conversion rate is calculated using the number of visits that converted at least one goal. Visits converting multiple goals are only counted once in the conversion rate. The percentage of the report's total Visits that this row represents. The percentage of the report's total Actions that this row represents. - The percentage of the report's total Visits with Conversions that this row represents. - The percentage of the report's total Conversions that this row represents. - The percentage of the report's total Bounces that this row represents. - The percentage of the report's total Revenue that this row represents. Actions per Visit @@ -50,10 +46,6 @@ percent percent percent - percent - percent - percent - percent index.php?module=API&method=ImageGraph.get&idSite=1&apiModule=CustomVariables&apiAction=getCustomVariablesValuesFromNameId&period=day&date=2010-01-03&idSubtable=1 index.php?module=API&method=ImageGraph.get&idSite=1&apiModule=CustomVariables&apiAction=getCustomVariablesValuesFromNameId&period=day&date=2009-12-05,2010-01-03&idSubtable=1 @@ -62,19 +54,15 @@ Visits + Visits (%) Unique visitors Actions + Actions (%) Users Actions per Visit Avg. Time on Website Bounce Rate Conversion Rate - Visits (% of total) - Actions (% of total) - Visits with Conversions (% of total) - Conversions (% of total) - Bounces (% of total) - Revenue (% of total) @@ -84,10 +72,6 @@ 0 14.3% 16.7% - 20% - 16.7% - 0% - 0% 100% 4 00:06:04 @@ -101,10 +85,6 @@ 0 28.6% 8.3% - 20% - 33.3% - 50% - 50% 50% 1 00:03:01 diff --git a/tests/System/expected/test_twoVisitsWithCustomVariables__subtable_old__API.getProcessedReport_day.xml b/tests/System/expected/test_twoVisitsWithCustomVariables__subtable_old__API.getProcessedReport_day.xml new file mode 100644 index 0000000..f5222e7 --- /dev/null +++ b/tests/System/expected/test_twoVisitsWithCustomVariables__subtable_old__API.getProcessedReport_day.xml @@ -0,0 +1,140 @@ + + + Piwik test + Sunday, January 3, 2010 + + Visitors + Custom Variables + CustomVariables + getCustomVariablesValuesFromNameId + Custom Variable value + This report contains information about your Custom Variables. Click on a variable name to see the distribution of the values. <br /> For more information about Custom Variables in general, read the <a href="https://matomo.org/docs/custom-variables/" rel="noreferrer noopener" target="_blank">Custom Variables documentation on matomo.org</a> + https://matomo.org/docs/custom-variables/ + 1 + + Visits + Unique visitors + Actions + Users + + + If a visitor comes to your website for the first time or if they visit a page more than 30 minutes after their last page view, this will be recorded as a new visit. + The number of unduplicated visitors coming to your website. Every user is only counted once, even if they visit the website multiple times a day. + The number of actions performed by your visitors. Actions can be page views, internal site searches, downloads or outlinks. + The number of users logged in your website. It is the number of unique active users that have a User ID set (via the Tracking code function 'setUserId'). + The average number of actions (page views, site searches, downloads or outlinks) that were performed during the visits. + The average duration of a visit. + The percentage of visits that only had a single pageview. This means, that the visitor left the website directly from the entrance page. + The percentage of visits that triggered a conversion. The conversion rate is calculated using the number of visits that converted at least one goal. Visits converting multiple goals are only counted once in the conversion rate. + The percentage of the report's total Visits that this row represents. + The percentage of the report's total Actions that this row represents. + The percentage of the report's total Visits with Conversions that this row represents. + The percentage of the report's total Conversions that this row represents. + The percentage of the report's total Bounces that this row represents. + The percentage of the report's total Revenue that this row represents. + + + Actions per Visit + Avg. Time on Website + Bounce Rate + Conversion Rate + + + number + number + number + number + number + duration_s + percent + percent + percent + percent + percent + percent + percent + percent + + index.php?module=API&method=ImageGraph.get&idSite=1&apiModule=CustomVariables&apiAction=getCustomVariablesValuesFromNameId&period=day&date=2010-01-03&idSubtable=1 + index.php?module=API&method=ImageGraph.get&idSite=1&apiModule=CustomVariables&apiAction=getCustomVariablesValuesFromNameId&period=day&date=2009-12-05,2010-01-03&idSubtable=1 + CustomVariables_getCustomVariablesValuesFromNameId + + + + Visits + Unique visitors + Actions + Users + Actions per Visit + Avg. Time on Website + Bounce Rate + Conversion Rate + Visits (% of total) + Actions (% of total) + Visits with Conversions (% of total) + Conversions (% of total) + Bounces (% of total) + Revenue (% of total) + + + + + 1 + 4 + 0 + 14.3% + 16.7% + 20% + 16.7% + 0% + 0% + 100% + 4 + 00:06:04 + 0% + 0 + + + + 2 + 2 + 0 + 28.6% + 8.3% + 20% + 33.3% + 50% + 50% + 50% + 1 + 00:03:01 + 100% + 0 + + + + + 7 + 24 + 0 + 13 + 1814 + 4 + 5 + + + 5 + 5 + 2000 + + + 1 + 1 + 0 + + + 6 + 2000 + 11 + + \ No newline at end of file