Commit 600c51e6083183a76e22c917b49560afcae35a41

Authored by Alex Savenko
1 parent af8f2385

ga output

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/library/App/Controllers/GaController.php
... ... @@ -79,9 +79,9 @@ class GaController extends CrudResourceController {
79 79 $response = $analytics->reports->batchGet($body);
80 80  
81 81 /** @var \Google_Service_AnalyticsReporting_Report $report */
82   - $report = $response->getReports();
  82 + $report = $response->getReports()[0];
83 83  
84   - $data = $report[0]->getData();
  84 + $data = $report->getData();
85 85  
86 86 return var_dump($data);
87 87  
... ...