|
@@ -72,16 +72,17 @@ class IndexController extends Controller
|
|
|
'transactionsPerSession'=>"ga:transactionsPerSession",
|
|
|
'transactionRevenue'=>"ga:transactionRevenue",
|
|
|
'totalValue'=>"ga:totalValue",
|
|
|
- 'productCheckouts'=>"ga:productCheckouts",
|
|
|
'itemQuantity'=>"ga:itemQuantity",
|
|
|
'productAddsToCart'=>"ga:productAddsToCart",
|
|
|
+ 'productCheckouts'=>"ga:productCheckouts",
|
|
|
+ 'productDetailViews'=>"ga:productDetailViews",
|
|
|
];
|
|
|
$i=1;
|
|
|
$datas=array_chunk($metrics,2,true);
|
|
|
foreach($datas as $data){
|
|
|
- // $response = $this->getReport($analytics,$data);
|
|
|
+ $response = $this->getReport($analytics,$data);
|
|
|
// $this->printResults($response);
|
|
|
- // $res=$this->getResults($response);
|
|
|
+ $res=$this->getResults($response);
|
|
|
echo "<pre>";
|
|
|
print_r($data);
|
|
|
}
|