print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors')->getTotalsForAllResults());
print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors', array('dimensions' => 'ga:visitorType'))->getTotalsForAllResults());
print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors', array('dimensions' => 'ga:operatingSystem'))->getTotalsForAllResults());
print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors', array('dimensions' => 'ga:browser'))->getTotalsForAllResults());
print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors', array('dimensions' => 'ga:networkLocation'))->getTotalsForAllResults());
print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors', array('dimensions' => 'ga:city'))->getTotalsForAllResults());
returns
Array ( [ga:visitors] => 120 ) Array ( [ga:visitors] => 123 ) Array ( [ga:visitors] => 121 ) Array ( [ga:visitors] => 121 ) Array ( [ga:visitors] => 128 ) Array ( [ga:visitors] => 131 )
Why are the results inconsistent? Everything is the same except for the dimensions.
As requested, I have tried with "ga:visits" instead of ga:visitors. The results are consistent here. Even more confusion.
Array ( [ga:visits] => 184 ) Array ( [ga:visits] => 184 ) Array ( [ga:visits] => 184 ) Array ( [ga:visits] => 184 ) Array ( [ga:visits] => 184 ) Array ( [ga:visits] => 184 )
After some thought, is it because during that time frame, a new visitor may have revisited the site again at a later date still within the time frame, thus flagging them as a returning visitor? (for second line of code. Similar logic for the other lines?)