title: Daily/Weekly/Monthly Active Users on Google Analytics API
body: <p>I am creating a dashboard to show both Monthly Active Users and Weekly Active Users from Google Analytics.</p>
  
  <p>To query this data I am using the following parameters:</p>
  
  <pre><code>{
    "ids" =&gt; @account_id,
    "start-date" =&gt; start_date.to_s,
    "end-date" =&gt; end_date.to_s,
    "metrics"=&gt; "ga:users",
    "samplingLevel" =&gt; "HIGHER_PRECISION"
  }
  </code></pre>
  
  <p>For example, to get Weekly Active Users for each day I'm passing a 7 day interval and for Monthly Active Users I'm using 30 day interval.</p>
  
  <p>The point is that numbers are significantly different comparing to what I've seen in the interface at <em>Audience > Active Users</em>.</p>
  
  <p>I couldn't figure out a query to get the same data from the interface. Do you have any idea?</p>
  
  <p>thanks :)</p>