code/panels/DashboardGoogleAnalyticsPanel.php
public function PageResults() {
		if(!$this->isValid()) return false;
		try {
			$this->api()->requestReportData(
				self::config()->profile, 
				'pagePath', 
				array('pageviews', 'uniquePageviews', 'exitRate', 'avgTimeOnPage', 'entranceBounceRate'), 
				null, 
				$this->getPath() ? "pagePath == {$this->getPath()}" : null,
				date('Y-m-d',$this->getStartDateStamp())
			);
		}
		catch(Exception $e) {
			$this->error = $e->getMessage();
			
			return false;
		}
		$set = ArrayList::create(array());
		if(!$this->getPath()) {
			$metrics = $this->api()->getMetrics();
			if($metrics) {
				$set->push(ArrayData::create(array(
					'FormattedPageViews' => number_format($metrics['pageviews']),
					'FormattedUniquePageViews' => number_format($metrics['uniquePageviews']),
					'AverageMinutesOnPage' => self::seconds_to_minutes($metrics['avgTimeOnPage']),
					'BounceRate' => round($metrics['entranceBounceRate'],2)."%",
					'ExitRate' => round($metrics['exitRate'],2)."%"
				)));
			}
			return $set;			
		}
		$results = $this->api()->getResults();
		if($results) {			
			foreach($results as $result) {
				$set->push(ArrayData::create(array(
					'FormattedPageViews' => number_format($result->getPageViews()),
					'FormattedUniquePageViews' => number_format($result->getUniquePageViews()),
					'AverageMinutesOnPage' => self::seconds_to_minutes($result->getAvgtimeonpage()),
					'BounceRate' => round($result->getEntrancebouncerate(), 2).'%',
					'ExitRate' => round($result->getExitrate(), 2).'%'
				)));
			}

		}		
		return $set;

	}
public function PageResults() {
		if(!$this->isValid()) return false;
		try {
			$this->api()->requestReportData(
				self::config()->profile, 
				'pagePath', 
				array('pageviews', 'uniquePageviews', 'exitRate', 'avgTimeOnPage', 'entranceBounceRate'), 
				null, 
				$this->getPath() ? "pagePath == {$this->getPath()}" : null,
				date('Y-m-d',$this->getStartDateStamp())
			);
		}
		catch(Exception $e) {
			$this->error = $e->getMessage();
			
			return false;
		}
		$set = ArrayList::create(array());
		if(!$this->getPath()) {
			$metrics = $this->api()->getMetrics();
			if($metrics) {
				$set->push(ArrayData::create(array(
					'FormattedPageViews' => number_format($metrics['pageviews']),
					'FormattedUniquePageViews' => number_format($metrics['uniquePageviews']),
					'AverageMinutesOnPage' => self::seconds_to_minutes($metrics['avgTimeOnPage']),
					'BounceRate' => round($metrics['entranceBounceRate'],2)."%",
					'ExitRate' => round($metrics['exitRate'],2)."%"
				)));
			}
			return $set;			
		}
		$results = $this->api()->getResults();
		if($results) {			
			foreach($results as $result) {
				$set->push(ArrayData::create(array(
					'FormattedPageViews' => number_format($result->getPageViews()),
					'FormattedUniquePageViews' => number_format($result->getUniquePageViews()),
					'AverageMinutesOnPage' => self::seconds_to_minutes($result->getAvgtimeonpage()),
					'BounceRate' => round($result->getEntrancebouncerate(), 2).'%',
					'ExitRate' => round($result->getExitrate(), 2).'%'
				)));
			}

		}		
		return $set;

	}
Gets a result set of aggregate values for the given date range, e.g. total pageviews.

@return ArrayList