Commit 9b8fbac233e67982c8693a4c064ba939b6fc8803
1 parent
789e0fac
ga output
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/library/App/Controllers/GaController.php
| ... | ... | @@ -78,6 +78,9 @@ class GaController extends CrudResourceController { |
| 78 | 78 | |
| 79 | 79 | $response = $analytics->reports->batchGet($body); |
| 80 | 80 | |
| 81 | + $response = $response->toSimpleObject(); | |
| 82 | + $response = $response->reports[0]['data']['rows']; | |
| 83 | + | |
| 81 | 84 | $result = []; |
| 82 | 85 | |
| 83 | 86 | foreach ($response as $item) { | ... | ... |