On line 207 of Analytics.php you have
$cols[] = $col['label'];
So I had to rewrite the function as
public function parseResult($results) {
$simpleDataTable = $results->getDataTable()->toSimpleObject();
foreach ($simpleDataTable->cols as $col) {
$cols[] = $col->label;
}
foreach ($simpleDataTable->rows as $row) {
foreach ($row->c as $key => $value) {
$rowData[$cols[$key]] = $value->v;
}
$rows[] = $rowData;
unset($rowData);
}
return [
'cols' => $cols,
'rows' => $rows,
];
}
On line 207 of Analytics.php you have
$cols[] = $col['label'];So I had to rewrite the function as