kalnyc67 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

totalsForAllResults not respecting filters #599

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Name of affected component: Core Reporting API

Name of related library and version, if applicable: using 
https://github.com/google/google-api-ruby-client/

Issue summary:
For a query that includes filters, the totalsForAllResults value does not 
reflects the filters.

Steps to reproduce issue:
Query a profile with filters=ga:sessions<10: 

https://www.googleapis.com/analytics/v3/data/ga?ids=ga:XXX&dimensions=ga:medium&
metrics=ga:sessions&sort=-ga:sessions&filters=ga:sessions%3C10&segment=gaid::XX&
start-date=2015-02-01&end-date=2015-02-28

Expected output:
{ ...
"totalsForAllResults":{"ga:sessions":"4"},
"rows":[["directmail","3"],["PR","1"]]
}

Actual results:
{ ...
"totalsForAllResults":{"ga:sessions":"2316"},
"rows":[["directmail","3"],["PR","1"]]
}

Notes:
 totalsForAllResults is returning a value that is correct if no filters are applied to this profile. This functionality changed at some point in the past year -- it used to respect filters.

Original issue reported on code.google.com by ewi...@neboweb.com on 25 Mar 2015 at 7:03

GoogleCodeExporter commented 9 years ago
Note: It seems this was working correctly in January 2015.

Original comment by ewi...@neboweb.com on 25 Mar 2015 at 7:43