$startDate = '2010-01-01';
$endDate = '2011-01-01';
$ga->setDateRange($startDate, $endDate);
$dimensions = 'ga:pagePath';
$metrics = 'ga:pageviews';
$filters = '';
$sortBy = '-ga:pageviews';
// get the report for date and country filtered by Australia,
showing pageviews and visits
$report = $ga->getReport(
array('dimensions'=>urlencode($dimensions),
'metrics'=>urlencode($metrics),
'filters'=>urlencode($filters),
'sort'=>$sortBy
)
);
The pageviews for the particular pages don't match. They end up being
in the same ballpark, but the larger the views, the larger the gap
between the script return and the GUI.
Thanks for your help,
Andy