From 3bec53cb5834348530ecca7ed0d259db3ef969f2 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 9 Feb 2017 16:28:26 +0200 Subject: [PATCH] test google lib --- app/library/App/Bootstrap/RouteBootstrap.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/library/App/Bootstrap/RouteBootstrap.php b/app/library/App/Bootstrap/RouteBootstrap.php index b690853..9bfc87f 100755 --- a/app/library/App/Bootstrap/RouteBootstrap.php +++ b/app/library/App/Bootstrap/RouteBootstrap.php @@ -52,15 +52,9 @@ class RouteBootstrap implements BootstrapInterface $client->setDeveloperKey($api_key); $analytics = new Google_Service_AnalyticsReporting($client); - $param[] = ['metric' => 'ga:sessions', 'alias' => 'Сессии']; - $param[] = ['metric' => 'ga:users', 'alias' => 'Пользователи']; - $param[] = ['metric' => 'ga:CTR', 'alias' => 'CTR']; - $param[] = ['metric' => 'ga:goal1Value', 'alias' => 'цель "Корзина"']; + $response = $this->getReport($analytics, '', ''); - foreach ($param as $item) { - $response = $this->getReport($analytics, $item['metric'], $item['alias']); - } $var_2 = var_dump($response); -- libgit2 0.21.4