0
如何執行Google Analytics API查詢時傳遞多個維度。例如,除了ga:hostname
以外,我還會如何通過ga:pagePath
?將多個維度傳遞到Google Analytics(分析)API
return $analytics->data_ga->get(
'ga:' . $profileId,
'60daysAgo',
'today',
'ga:visits',
array(
'dimensions' => 'ga:hostname',
'metrics' => 'ga:pageviews',
'sort' => '-ga:pageviews',
'max-results' => '500'
)
);