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