Commit 26b0f70c6bb576f157c912bd16c39a9c8d7990d3
1 parent
b5220429
ga output
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/GaController.php
... | ... | @@ -81,12 +81,12 @@ class GaController extends CrudResourceController { |
81 | 81 | $obj = $response->toSimpleObject(); |
82 | 82 | $obj = $obj->reports[0]['data']['rows']; |
83 | 83 | |
84 | - return ($obj); | |
84 | + //return ($obj); | |
85 | 85 | |
86 | 86 | $result = []; |
87 | 87 | |
88 | 88 | foreach ($obj as $key => $value) { |
89 | - $result[$key['dimensions']][0] = $value->values; | |
89 | + $result[$key['dimensions']][0] = $value['values'][0]; | |
90 | 90 | } |
91 | 91 | |
92 | 92 | return $result; | ... | ... |