title: How to get unique visists per day using GAPI and Google Analytics?
body: <p>I have a very simple custom report in Google Analytics that lists Date, Visits, Unique Visitors and Pageviews for a certain month.</p>
  
  <p>I am trying to duplicate this very simple report using GAPI, but I cannot find a simple way to add Unique Visitors to my table. </p>
  
  <p>See my code below. How can I modify this code to show Unique Visitors?</p>
  
  <pre><code>$profile_id = "xxxxxxxx";
  $report_id = "xxxxxxxx";
  $dimensions = array('date');
  $metrics = array('pageviews','visits');
  $sort_metric = array('date'); 
  $filter = null;
  $start_date = '2013-02-01';
  $end_date = '2013-02-28';
  $start_index = 1;
  $max_results = 10000;
  
  echo '&lt;table&gt;';
  echo '&lt;tr&gt;';
  echo '&lt;th&gt;Date&lt;/th&gt;';
  echo '&lt;th&gt;Visits&lt;/th&gt;';
  echo '&lt;th&gt;Unique Visitors&lt;/th&gt;';
  echo '&lt;th&gt;Page Views&lt;/th&gt;';      
  echo '&lt;/tr&gt;';   
  
  $ga = new gapi('xx@xxxxxxxxx.com','xxxxxxxx'); 
  
  $ga-&gt;requestReportData($profile_id, $dimensions, $metrics, $sort_metric, $filter, $start_date, $end_date, $start_index, $max_results); 
  
  foreach($ga-&gt;getResults() as $result)
  {
      echo '&lt;td&gt;' . $result-&gt;getDate() . '&lt;/td&gt;';
      echo '&lt;td&gt;' . $result-&gt;getVisits() . '&lt;/td&gt;';
      echo '&lt;td&gt;' . '?' . '&lt;/td&gt;';  
      echo '&lt;td&gt;' . $result-&gt;getPageviews() . '&lt;/td&gt;';  
      echo '&lt;/tr&gt;';  
  }
  echo "&lt;/table&gt;";
  </code></pre>