UpendraSingh / analytics-issues

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

API returns different data for custom segment compared to the interface #900

Open GoogleCodeExporter opened 8 years ago

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

Issue summary:
The revenue for all of our segments is off. In the UI, for January 1st - 31st 
we see a transactionRevenue of €2663,39 but requesting the revenue for this 
same segment through the Core Reporting API results in a transactionRevenue of 
€3316,21. The query used is: 
https://www.googleapis.com/analytics/v3/data/ga?ids=ga:[profile_id]&metrics=ga:t
ransactionRevenue&start-date=2016-01-01&end-date=2016-01-31&segment=gaid::[segme
nt_id]

The oddest part is that when recreating the segment (so using the source, 
medium and campaigns filtered through the segment), we do get the correct 
amount as seen for the segment in the interface returned. But when we use the 
segment ID, the data is incorrect.

Steps to reproduce:
1. Go to Analytics interface and fetch data for segment
2. Fetch data for segment's ID through API using the query as mentioned above
3. See different amounts returned from the API in comparison to the Analytics 
interface

4. Recreate segment filters in API request
5. See same amounts returned from API as seen in the Analytics interface

Expected output:
All three results to be the same

Actual results:
The result using the segment's ID is incorrect

Original issue reported on code.google.com by ti...@swydo.com on 4 Mar 2016 at 10:36