Commit b2ffc8675fd553b5811fd44b17ad723a4c9b5de7
1 parent
be12b46e
ga output
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/library/App/Controllers/GaController.php
@@ -78,6 +78,8 @@ class GaController extends CrudResourceController { | @@ -78,6 +78,8 @@ class GaController extends CrudResourceController { | ||
78 | 78 | ||
79 | $response = $analytics->reports->batchGet($body); | 79 | $response = $analytics->reports->batchGet($body); |
80 | 80 | ||
81 | + $response = $response->getReports(); | ||
82 | + | ||
81 | $obj = $response->toSimpleObject(); | 83 | $obj = $response->toSimpleObject(); |
82 | $obj = $obj->reports[0]['data']['rows']; | 84 | $obj = $obj->reports[0]['data']['rows']; |
83 | 85 |