Analytics
6.2K 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

inaccurate data returned by analytics API for a certain account

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

we have 3 account for analytics purpose, but recently one of the account's data is returned differently from the other 2 accounts. Strangely this affects the whole data for that certain account. We are currently using the V3 reporting API but I have tried using the V4 API and it was a fruitless effort since the data returned is also not the same as the dashboard.

 

The service that we used:

  • realtime active user
  • daily active users
  • site page load

 

This is the data returned which I mentioned above, it's impossible to have a 0 active user while I checked through analytics dashboard the data shows different numbers.

 

{
  "kind": "analytics#realtimeData",
  "totalResults": 0,
  "totalsForAllResults": {
    "rt:activeUsers": "0"
  },
  "columnHeaders": [
    {
      "dataType": "INTEGER",
      "columnType": "METRIC",
      "name": "rt:activeUsers"
    }
  ],
  "query": {
    "metrics": [
      "rt:activeUsers"
    ],
    "max-results": 1000,
    "ids": "ga:[accountId]"
  },
  "profileInfo": {[accountObject]
  },
  "id": "https://www.googleapis.com/analytics/v3/data/realtime?ids=ga:[profileId]&metrics=rt:activeUsers",
  "selfLink": "https://www.googleapis.com/analytics/v3/data/realtime?ids=ga:[profileId]&metrics=rt:activeUsers"
}

 

this is the other account data which is accurate:

{
  "kind": "analytics#realtimeData", 
  "rows": [
    [
      "1243"
    ]
  ], 
  "totalResults": 1, 
  "totalsForAllResults": {
    "rt:activeUsers": "1243"
  }, 
  "columnHeaders": [
    {
      "dataType": "INTEGER", 
      "columnType": "METRIC", 
      "name": "rt:activeUsers"
    }
  ], 
  "query": {
    "metrics": [
      "rt:activeUsers"
    ], 
    "max-results": 1000, 
    "ids": "ga:[profileId]"
  }, 
  "profileInfo": {[accountObject]
  }, 
  "id": "https://www.googleapis.com/analytics/v3/data/realtime?ids=ga:[profileId]&metrics=rt:activeUsers", 
  "selfLink": "https://www.googleapis.com/analytics/v3/data/realtime?ids=ga:[profileId]&metrics=rt:activeUsers"
}

 


the source code for both data above is the same which confuse me about how I should handle the error.

 

Thanks