title: Get the standard Google Analytics graph with Google Analytics API
body: <p>I just want to get the basic graph that is shown on the Google Analytics frontpage.
  Number of views over the course of a month.
  This: <a href="http://i.imgur.com/0Jdpm.png" rel="nofollow">http://i.imgur.com/0Jdpm.png</a></p>
  
  <pre><code>require_once('lib/gapi.class.php');
  $ga = new gapi('asdf','qwerty');
  
  $dimensions     = array('pagePath'); 
  $metrics        = array('visits');
  $sortMetric     = null;
  $filter     = null;
  $startDate      = '2012-10-05';
  $endDate        = '2012-11-04';
  $startIndex     = 1;
  $maxResults     = 10;
  
  $ga-&gt;requestReportData('48607689', $dimensions, $metrics, $sortMetric, $filter, $startDate, $endDate, $startIndex, $maxResults);
  
  print_r($ga-&gt;getResults());
  </code></pre>
  
  <p>But this seems to return views per page and not the whole website.
  What metrics/dimensions do I have to use?</p>