diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index 0c39e88..be01cde 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -44,7 +44,8 @@ class GaController extends CrudResourceController { } } else { - $result = $this->sendGaRequest($view_id, $get_metrics, $get_dimensions, $get_start_date, $get_end_date); + $project = Project::find(['ga_view_id' => $view_id]); + $result = $this->sendGaRequest($project->name, $view_id, $get_metrics, $get_dimensions, $get_start_date, $get_end_date); } return $result; -- libgit2 0.21.4