chengwl 4 years ago
parent
commit
ac0bfa051c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/GA.php

+ 1 - 1
lib/GA.php

@@ -145,7 +145,7 @@ class GA{
             }
             }
         }
         }
         if(!empty($segment)){
         if(!empty($segment)){
-            $request->setSegments(array($segment));
+            $request->setSegments($segment);
         }
         }
         if(isset($config['orderBy'])&&!empty($config['orderBy'])){
         if(isset($config['orderBy'])&&!empty($config['orderBy'])){
             $orderBy=new \Google_Service_AnalyticsReporting_OrderBy();
             $orderBy=new \Google_Service_AnalyticsReporting_OrderBy();