Commit 3bec53cb5834348530ecca7ed0d259db3ef969f2

Authored by Alex Savenko
1 parent ea5f8cd7

test google lib

Showing 1 changed file with 1 additions and 7 deletions   Show diff stats
app/library/App/Bootstrap/RouteBootstrap.php
... ... @@ -52,15 +52,9 @@ class RouteBootstrap implements BootstrapInterface
52 52 $client->setDeveloperKey($api_key);
53 53 $analytics = new Google_Service_AnalyticsReporting($client);
54 54  
55   - $param[] = ['metric' => 'ga:sessions', 'alias' => 'Сессии'];
56   - $param[] = ['metric' => 'ga:users', 'alias' => 'Пользователи'];
57   - $param[] = ['metric' => 'ga:CTR', 'alias' => 'CTR'];
58   - $param[] = ['metric' => 'ga:goal1Value', 'alias' => 'цель "Корзина"'];
  55 + $response = $this->getReport($analytics, '', '');
59 56  
60   - foreach ($param as $item) {
61   - $response = $this->getReport($analytics, $item['metric'], $item['alias']);
62 57  
63   - }
64 58  
65 59 $var_2 = var_dump($response);
66 60  
... ...