chengwl 4 年之前
父節點
當前提交
0396b9778c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      lib/GA.php

+ 4 - 2
lib/GA.php

@@ -493,7 +493,7 @@ class GA{
         $analytics=self::getInstance($dp);
         $dimensionArr=[
             // 'date'=>'ga:date',
-            'sessionCount'=>'ga:sessionCount',
+            // 'sessionCount'=>'ga:sessionCount',
         ];
        
         $VIEW_ID = $this->getViewId($dp);//
@@ -525,6 +525,8 @@ class GA{
         $reports= $analytics->reports->batchGet( $body );
 
         $result=$this->getResults($reports);
+        echo "<pre>";
+        print_r($reports);exit;
          return $result;
 
     }
@@ -587,7 +589,7 @@ class GA{
         $body = new \Google_Service_AnalyticsReporting_GetReportsRequest();
         $body->setReportRequests( array( $request) );
         $reports= $analytics->reports->batchGet( $body );
-
+        
         $result=$this->getResults($reports);
          return $result;
     }