Analytics
2.7K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Duplicated data in custom report -> wrong response from my API request

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Can someone explain me why in graph I got correct data value  (red lines), but in report I got the double?

 

I'm from brazil, so translating the screenshot, I have my custom dimension called Store ID, and the metrics are Page Views and Users. The correct values for this report (checked in others ga reports) are exactly half of these.

 

I am using analytics reporting v4 to get page views and unique visitors in my API, but I receive wrong data too, here is the json that I use in request:

 

    request = {
                 "report_requests": [{
                    "metrics": [{
                        "expression": "ga:users"
                      },{
                        "expression": "gaSmiley TongueageViews"
                      }],
                    "dimensions": [{
                        "name": "ga:dimension2"  (Represents the Store ID)
                      }],
                    "date_ranges": [{

                        "start_date": some start date,
                        "end_date": some final date
                      }],
                    "view_id": ga:XXXXXXXXX
                  }]
              }

 

aqui.png

 

 

 

 

Duplicated data in custom report -> wrong response from my API request

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Hey!

 

This is something i experience as well. In my case when i use a custom dimension the number in the graph is almost double the value as it is in the table. It seems to work like a filter but i cannot figure out what value is filtered out.

In any case the custom dimension seems to affect the values displayed or requested from the API. Does someone have a probable cause or explanation for this?

 

Regards,
Uwe

Duplicated data in custom report -> wrong response from my API request

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Any news so far?