Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/System/APITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ public function getApiForTesting()
);
}

$matomo54Alpha = version_compare(Version::VERSION, '5.4.0-alpha', '<');
$apiToTest[] = array(array('API.getProcessedReport'), array(
'idSite' => self::$fixture->idSite,
'testSuffix' => '_getCustomDimensionProcessedReport',
'testSuffix' => ($matomo54Alpha ? '_54a' : '') . '_getCustomDimensionProcessedReport',
'otherRequestParameters' => array(
'apiModule' => 'CustomDimensions',
'apiAction' => 'getCustomDimension',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
<website>Piwik test</website>
<prettyDate>Wednesday, January 23, 2013</prettyDate>
<metadata>
<category>Visitors</category>
<subcategory>customdimension1</subcategory>
<name>RenamedDimVisit1</name>
<module>CustomDimensions</module>
<action>getCustomDimension</action>
<parameters>
<idDimension>1</idDimension>
</parameters>
<dimension>RenamedDimVisit1</dimension>
<metrics>
<nb_visits>Visits</nb_visits>
<nb_actions>Actions</nb_actions>
</metrics>
<metricsDocumentation>
<nb_visits>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.</nb_visits>
<nb_actions>The number of actions performed by your visitors. Actions can be page views, internal site searches, downloads or outlinks.</nb_actions>
<avg_time_on_site>The average duration of a visit.</avg_time_on_site>
<bounce_rate>The percentage of visits that only had a single pageview. This means, that the visitor left the website directly from the entrance page.</bounce_rate>
<nb_actions_per_visit>The average number of actions (page views, site searches, downloads or outlinks) that were performed during the visits.</nb_actions_per_visit>
</metricsDocumentation>
<processedMetrics>
<avg_time_on_site>Avg. Time on Website</avg_time_on_site>
<bounce_rate>Bounce Rate</bounce_rate>
<nb_actions_per_visit>Actions per Visit</nb_actions_per_visit>
</processedMetrics>
<metricTypes>
<nb_visits>number</nb_visits>
<nb_actions>number</nb_actions>
<avg_time_on_site>duration_s</avg_time_on_site>
<bounce_rate>percent</bounce_rate>
<nb_actions_per_visit>number</nb_actions_per_visit>
</metricTypes>
<actionToLoadSubTables>getCustomDimension</actionToLoadSubTables>
<imageGraphUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=CustomDimensions&amp;apiAction=getCustomDimension&amp;idDimension=1&amp;period=day&amp;date=2013-01-23</imageGraphUrl>
<imageGraphEvolutionUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=CustomDimensions&amp;apiAction=getCustomDimension&amp;idDimension=1&amp;period=day&amp;date=2012-12-25,2013-01-23</imageGraphEvolutionUrl>
<uniqueId>CustomDimensions_getCustomDimension_idDimension--1</uniqueId>
</metadata>
<columns>
<label>RenamedDimVisit1</label>
<nb_visits>Visits</nb_visits>
<nb_actions>Actions</nb_actions>
<avg_time_on_site>Avg. Time on Website</avg_time_on_site>
<bounce_rate>Bounce Rate</bounce_rate>
<nb_actions_per_visit>Actions per Visit</nb_actions_per_visit>
</columns>
<reportData>
<row>
<label>RenamedDimension1</label>
<nb_visits>1</nb_visits>
<nb_actions>8</nb_actions>
<nb_actions_per_visit>8</nb_actions_per_visit>
<avg_time_on_site>00:06:01</avg_time_on_site>
<bounce_rate>0%</bounce_rate>
</row>
</reportData>
<reportMetadata>
<row>
<segment>dimension1==genericValue1</segment>
</row>
</reportMetadata>
<reportTotal>
<nb_uniq_visitors>1</nb_uniq_visitors>
<nb_visits>1</nb_visits>
<nb_actions>8</nb_actions>
<max_actions>8</max_actions>
<sum_visit_length>361</sum_visit_length>
<bounce_count>0</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
<nb_actions_per_visit>8</nb_actions_per_visit>
</reportTotal>
</result>
Loading