obtain demographic data with google analytics api
<p>im trying to obtain some demographic data from the google analytics api, my intention is to integrate this on a cms  to generate reports, etc... is this possible? </p>

<p>if it is, is there someone who knows a tutorial or something? i have used the examples provided and i get some sessions that have been in the last 7 day period. But nothing besides that. If that is not possible, what kind of things i can obtain with this api? </p>

<p>here is what i have tried:</p>

<pre><code>function getResults(&amp;$analytics, $profileId) {
  return $analytics-&gt;data_ga-&gt;get(
      'ga:' . $profileId,
      '7daysAgo',
      'today',
      'ga:sessions');
}
</code></pre>

<p>thanks in advance.</p>