From 0f07449b15698b44808ee3e6d4d60ffc1ca098d8 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 19 Feb 2017 15:05:21 +0200 Subject: [PATCH] ga output --- app/library/App/Controllers/GaController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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