Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #3940 Adding '&format=php' to ensure the data within the bulk r…
…equest, is converted only once and is valid JSON. Also works in XML (not in CSV). I updated the bulk request doc at: http://piwik.org/docs/analytics-api/reference/#toc-advanced-users-send-multiple-api-requests-at-once
- Loading branch information
Showing
5 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits__API.getBulkRequest.xml
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.../PHPUnit/Integration/expected/test_OneVisitorTwoVisits_bulk_json__API.getBulkRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"nb_uniq_visitors":1,"nb_visits":2,"nb_actions":8,"nb_visits_converted":2,"bounce_count":1,"sum_visit_length":1621,"max_actions":7,"bounce_rate":"50%","nb_actions_per_visit":4,"avg_time_on_site":811},[{"label":"0-10s","nb_visits":"1"},{"label":"11-30s","nb_visits":"0"},{"label":"31-60s","nb_visits":"0"},{"label":"1-2 min","nb_visits":"0"},{"label":"2-4 min","nb_visits":"0"},{"label":"4-7 min","nb_visits":"0"},{"label":"7-10 min","nb_visits":"0"},{"label":"10-15 min","nb_visits":"0"},{"label":"15-30 min","nb_visits":"1"},{"label":"30+ min","nb_visits":"0"}]] |
57 changes: 57 additions & 0 deletions
57
tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits_bulk_xml__API.getBulkRequest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<result> | ||
<row> | ||
<nb_uniq_visitors>1</nb_uniq_visitors> | ||
<nb_visits>2</nb_visits> | ||
<nb_actions>8</nb_actions> | ||
<nb_visits_converted>2</nb_visits_converted> | ||
<bounce_count>1</bounce_count> | ||
<sum_visit_length>1621</sum_visit_length> | ||
<max_actions>7</max_actions> | ||
<bounce_rate>50%</bounce_rate> | ||
<nb_actions_per_visit>4</nb_actions_per_visit> | ||
<avg_time_on_site>811</avg_time_on_site> | ||
</row> | ||
<row> | ||
<row> | ||
<label>0-10s</label> | ||
<nb_visits>1</nb_visits> | ||
</row> | ||
<row> | ||
<label>11-30s</label> | ||
<nb_visits>0</nb_visits> | ||
</row> | ||
<row> | ||
<label>31-60s</label> | ||
<nb_visits>0</nb_visits> | ||
</row> | ||
<row> | ||
<label>1-2 min</label> | ||
<nb_visits>0</nb_visits> | ||
</row> | ||
<row> | ||
<label>2-4 min</label> | ||
<nb_visits>0</nb_visits> | ||
</row> | ||
<row> | ||
<label>4-7 min</label> | ||
<nb_visits>0</nb_visits> | ||
</row> | ||
<row> | ||
<label>7-10 min</label> | ||
<nb_visits>0</nb_visits> | ||
</row> | ||
<row> | ||
<label>10-15 min</label> | ||
<nb_visits>0</nb_visits> | ||
</row> | ||
<row> | ||
<label>15-30 min</label> | ||
<nb_visits>1</nb_visits> | ||
</row> | ||
<row> | ||
<label>30+ min</label> | ||
<nb_visits>0</nb_visits> | ||
</row> | ||
</row> | ||
</result> |