chengwl 4 år sedan
förälder
incheckning
f4ae66e7b6
1 ändrade filer med 4 tillägg och 3 borttagningar
  1. 4 3
      controllers/IndexController.php

+ 4 - 3
controllers/IndexController.php

@@ -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);
           }