my web is visible that last one visits, last week visits, last month visits,
last year visits and total visits. But my total visits less than total last
year. what's problem there. and that's my code:
$ga->requestReportData(ga_profile_id,array('hour'),array('pageviews','visits'),n
ull,null,date("Y-m-d"),date("Y-m-d"));
foreach($ga->getResults() as $result):
$oneHour = $result->getVisits();
endforeach;
$ga->requestReportData(ga_profile_id,array('browser'),array('pageviews','visits'),null,null,date("Y-m-d", strtotime("-1 weeks")),date("Y-m-d"));
$lastWeek = $ga->getVisits();
$ga->requestReportData(ga_profile_id,array('browser'),array('pageviews','visits'),null,null,date("Y-m-d", strtotime("-1 months")),date("Y-m-d"));
$lastMonth = $ga->getVisits();
$ga->requestReportData(ga_profile_id,array('browser'),array('pageviews','visits'),null,null,date("Y-m-d", strtotime("-1 years")),date("Y-m-d"));
// foreach($ga->getResults() as $result){
// echo $lastYear = $result->getVisits().'</br>';
// }
$lastYear = $ga->getVisits();
$ga->requestReportData(ga_profile_id,array('browser'),array('pageviews','visits'));
// foreach($ga->getResults() as $result){
// echo $totalVisit = $result->getVisits().'</br>';
// }
$totalVisit = $ga->getVisits();
Original issue reported on code.google.com by camlinf...@gmail.com on 8 Nov 2011 at 2:40
Original issue reported on code.google.com by
camlinf...@gmail.com
on 8 Nov 2011 at 2:40