cwilson1031 / analytics-issues

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

rt:userType will return error #424

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Real Time Reporting API

Issue summary:
Request to the rt API using rt:userType as dimension will return an error 400. 
rt:visitorType still works

Steps to reproduce issue:
1. Open Query Explorer 
https://developers.google.com/analytics/devguides/reporting/realtime/v3/referenc
e/data/realtime/get

2.Enter 
id: ga:64472440
metrics: rt:activeUsers
dimension: rt:userType

3. Execute

Expected output:
...
 "rows": [
  [
   "NEW",
   "x"
  ],
  [
   "RETURNING",
   "y"
  ]
 ]
}

Actual results:

400 Bad Request

- Show headers -

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "badRequest",
    "message": "Unknown dimension(s): rt:userType"
   }
  ],
  "code": 400,
  "message": "Unknown dimension(s): rt:userType"
 }
}

Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

Original issue reported on code.google.com by marco.ha...@gmail.com on 23 Apr 2014 at 7:26

GoogleCodeExporter commented 8 years ago
Try rt:visitorType instead,
although it says that visitorType is deprecated use userType instead 
(https://developers.google.com/analytics/devguides/reporting/realtime/v3/changel
og) I have fix my issue when I used rt:visitorType

Original comment by mohamed....@gmail.com on 21 May 2014 at 7:55