Hi I am using google analytics api gapi
to find 'average session duration' and 'Average pages viewed per visit' of site
I had created a dashboard for that and the values are 00:02:30
and 4.58
respectively ...
I use the following code to find it
$ga->requestReportData(ga_profile_id,array('browserVersion'),array('sessions','sessionDuration','avgSessionDuration'), $sort_metric=NULL, $filter=NULL, $fromDate, $toDate,1,50);
echo $ga->getSessionDuration(); echo '<pre>';
echo $ga->getAvgSessionDuration();
exit;
But the values returned is 104409
154.45118343195
any idea how to get the correct value