From 8c7d284047f3271ad29f1fe3f11dffd3f0c67885 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 10 Feb 2017 17:02:22 +0200 Subject: [PATCH] ga response --- app/library/App/Controllers/GaController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index 28e62d0..f267b8e 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -46,8 +46,9 @@ class GaController extends CrudResourceController { // Создание объекта Metrics. $metrics = new Google_Service_AnalyticsReporting_Metric(); - $metrics->setExpression($item['metric'].',ga:pageviewsPerSession'); - //$sessions->setAlias($item['alias']); + $metrics->setExpression($item['metric'].'/ga:pageviewsPerSession'); + //$metrics->setExpression('ga:pageviewsPerSession'); + ///$sessions->setAlias($item['alias']); // Создание объекта ReportRequest. -- libgit2 0.21.4