Skip to content

Commit

Permalink
Refs matomo-org#3632 Check Engagement reports are properly set when r…
Browse files Browse the repository at this point in the history
…eplaying logs
  • Loading branch information
mattab committed Mar 13, 2014
1 parent 5573506 commit aae4433
Show file tree
Hide file tree
Showing 91 changed files with 6,340 additions and 4,376 deletions.
4 changes: 2 additions & 2 deletions tests/PHPUnit/Integration/ImportLogsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public function getApiForTesting()
'testSuffix' => '_siteIdTwo_TrackedUsingLogReplay')),
);


if (getenv('MYSQL_ADAPTER') != 'MYSQLI') { // Mysqli rounds latitude/longitude
$apis[] = array('Live.getLastVisitsDetails', array(
$apiMethods = array('Live.getLastVisitsDetails', 'Actions', 'VisitorInterest');
$apis[] = array($apiMethods, array(
'idSite' => self::$fixture->idSite,
'date' => '2012-08-09,2014-04-01',
'periods' => 'range',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<results>
<result idSite="1">
<nb_uniq_visitors>38</nb_uniq_visitors>
<nb_visits>39</nb_visits>
<nb_actions>46</nb_actions>
<nb_visits_converted>36</nb_visits_converted>
<bounce_count>34</bounce_count>
<sum_visit_length>430</sum_visit_length>
<nb_uniq_visitors>27</nb_uniq_visitors>
<nb_visits>27</nb_visits>
<nb_actions>30</nb_actions>
<nb_visits_converted>25</nb_visits_converted>
<bounce_count>25</bounce_count>
<sum_visit_length>305</sum_visit_length>
<max_actions>3</max_actions>
<bounce_rate>87%</bounce_rate>
<nb_actions_per_visit>1.2</nb_actions_per_visit>
<bounce_rate>93%</bounce_rate>
<nb_actions_per_visit>1.1</nb_actions_per_visit>
<avg_time_on_site>11</avg_time_on_site>
</result>
<result idSite="2">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<results>
<result idSite="1">
<nb_visits>40</nb_visits>
<nb_actions>56</nb_actions>
<nb_visits_converted>37</nb_visits_converted>
<bounce_count>34</bounce_count>
<sum_visit_length>484</sum_visit_length>
<nb_visits>28</nb_visits>
<nb_actions>40</nb_actions>
<nb_visits_converted>26</nb_visits_converted>
<bounce_count>25</bounce_count>
<sum_visit_length>359</sum_visit_length>
<max_actions>10</max_actions>
<bounce_rate>85%</bounce_rate>
<bounce_rate>89%</bounce_rate>
<nb_actions_per_visit>1.4</nb_actions_per_visit>
<avg_time_on_site>12</avg_time_on_site>
<avg_time_on_site>13</avg_time_on_site>
</result>
<result idSite="2">
<nb_visits>1</nb_visits>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" ?>
<result />
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,4 @@
</row>
</subtable>
</row>
<row>
<label>builds.piwik.org</label>
<nb_visits>1</nb_visits>
<nb_hits>1</nb_hits>
<sum_time_spent>0</sum_time_spent>
<exit_nb_visits>1</exit_nb_visits>
<subtable>
<row>
<label>/latest.zip</label>
<nb_visits>1</nb_visits>
<nb_hits>1</nb_hits>
<sum_time_spent>0</sum_time_spent>
<exit_nb_visits>1</exit_nb_visits>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors>
<url>http://builds.piwik.org/latest.zip</url>
</row>
</subtable>
</row>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
<row>
<label>piwik.net</label>
<nb_visits>4</nb_visits>
<nb_hits>4</nb_hits>
<sum_time_spent>122</sum_time_spent>
<entry_nb_visits>2</entry_nb_visits>
<entry_nb_actions>4</entry_nb_actions>
<entry_sum_visit_length>123</entry_sum_visit_length>
<entry_bounce_count>1</entry_bounce_count>
<exit_nb_visits>2</exit_nb_visits>
<subtable>
<row>
<label>/19.pdf</label>
<nb_visits>1</nb_visits>
<nb_hits>1</nb_hits>
<sum_time_spent>0</sum_time_spent>
<entry_nb_visits>1</entry_nb_visits>
<entry_nb_actions>1</entry_nb_actions>
<entry_sum_visit_length>0</entry_sum_visit_length>
<entry_bounce_count>1</entry_bounce_count>
<exit_nb_visits>1</exit_nb_visits>
<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>
<url>http://piwik.net/19.pdf</url>
</row>
<row>
<label>/other.png</label>
<nb_visits>1</nb_visits>
<nb_hits>1</nb_hits>
<sum_time_spent>0</sum_time_spent>
<exit_nb_visits>1</exit_nb_visits>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors>
<url>http://piwik.net/other.png</url>
</row>
<row>
<label>/thing.css</label>
<nb_visits>1</nb_visits>
<nb_hits>1</nb_hits>
<sum_time_spent>61</sum_time_spent>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<url>http://piwik.net/thing.css</url>
</row>
<row>
<label>/thing.js</label>
<nb_visits>1</nb_visits>
<nb_hits>1</nb_hits>
<sum_time_spent>61</sum_time_spent>
<entry_nb_visits>1</entry_nb_visits>
<entry_nb_actions>3</entry_nb_actions>
<entry_sum_visit_length>123</entry_sum_visit_length>
<entry_bounce_count>0</entry_bounce_count>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<sum_daily_entry_nb_uniq_visitors>1</sum_daily_entry_nb_uniq_visitors>
<url>http://piwik.net/thing.js</url>
</row>
</subtable>
</row>
<row>
<label>builds.piwik.org</label>
<nb_visits>1</nb_visits>
<nb_hits>1</nb_hits>
<sum_time_spent>0</sum_time_spent>
<exit_nb_visits>1</exit_nb_visits>
<subtable>
<row>
<label>/latest.zip</label>
<nb_visits>1</nb_visits>
<nb_hits>1</nb_hits>
<sum_time_spent>0</sum_time_spent>
<exit_nb_visits>1</exit_nb_visits>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<sum_daily_exit_nb_uniq_visitors>1</sum_daily_exit_nb_uniq_visitors>
<url>http://builds.piwik.org/latest.zip</url>
</row>
</subtable>
</row>
</result>
Loading

0 comments on commit aae4433

Please sign in to comment.