diff --git a/backend/views/report/index.php b/backend/views/report/index.php index a6c67ef..59838f0 100644 --- a/backend/views/report/index.php +++ b/backend/views/report/index.php @@ -44,6 +44,7 @@ if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { $param[] = ['metric' => 'ga:sessions', 'alias' => 'Сессии']; $param[] = ['metric' => 'ga:users', 'alias' => 'Пользователи']; $param[] = ['metric' => 'ga:CTR', 'alias' => 'CTR']; + $param[] = ['metric' => 'ga:goal1Value', 'alias' => 'цель "Корзина"']; foreach ($param as $item) { $response = getReport($analytics, $item['metric'], $item['alias']); @@ -109,7 +110,7 @@ function printResults($reports) { //print("Metric type: " . $entry->getType() . "\n" ); for ( $valueIndex = 0; $valueIndex < count( $values->getValues() ); $valueIndex++ ) { $value = $values->getValues()[ $valueIndex ]; - print($entry->getName() . ": " . $value . PHP_EOL); + print("" . $entry->getName() . ": " . $value . '
'); } } } -- libgit2 0.21.4