Google Analytics · Schema

User

Contains information to identify a particular user uniquely.

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

Properties

Name Type Description
type string Type of the user in the request. The field `userId` is associated with this type.
userId string Unique Id of the user for which the data is being requested.
View JSON Schema on GitHub

JSON Schema

google-analytics-user-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/User",
  "title": "User",
  "description": "Contains information to identify a particular user uniquely.",
  "properties": {
    "type": {
      "description": "Type of the user in the request. The field `userId` is associated with this type.",
      "enum": [
        "USER_ID_TYPE_UNSPECIFIED",
        "USER_ID",
        "CLIENT_ID"
      ],
      "type": "string"
    },
    "userId": {
      "description": "Unique Id of the user for which the data is being requested.",
      "type": "string"
    }
  },
  "type": "object"
}