2011-12-16 31 views

回答

3

尺寸不是強制性的。

用途:

公制:GA:遊客和做提起始日期結束日期以獲得在期望範圍內,這是需要的數據。 。 您將獲得所需的總(附註:calculation:遊客已更改爲跨日期範圍返回唯一訪客數量)

1
$analytics = new Google_Service_Analytics($client); 

$profileId = 'UA-00000000-1'; 

$yesterday=$startDate=$endDate=date("Y-m-d", time() - 60 * 60 * 24); 

$metrics = 'sessions'; 

$results = $analytics->data_ga->get('ga:'.$profileId, $startDate, $endDate, 'ga:'.$metrics); 

需要 - https://github.com/google/google-api-php-client

相關問題