Google Analytics · Schema

Segment

JSON template for an Analytics segment.

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

Properties

Name Type Description
created string Time the segment was created.
definition string Segment definition.
id string Segment ID.
kind string Resource type for Analytics segment.
name string Segment name.
segmentId string Segment ID. Can be used with the 'segment' parameter in Core Reporting API.
selfLink string Link for this segment.
type string Type for a segment. Possible values are "BUILT_IN" or "CUSTOM".
updated string Time the segment was last modified.
View JSON Schema on GitHub

JSON Schema

google-analytics-segment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Segment",
  "title": "Segment",
  "description": "JSON template for an Analytics segment.",
  "properties": {
    "created": {
      "description": "Time the segment was created.",
      "format": "date-time",
      "type": "string"
    },
    "definition": {
      "description": "Segment definition.",
      "type": "string"
    },
    "id": {
      "description": "Segment ID.",
      "type": "string"
    },
    "kind": {
      "default": "analytics#segment",
      "description": "Resource type for Analytics segment.",
      "type": "string"
    },
    "name": {
      "description": "Segment name.",
      "type": "string"
    },
    "segmentId": {
      "description": "Segment ID. Can be used with the 'segment' parameter in Core Reporting API.",
      "type": "string"
    },
    "selfLink": {
      "description": "Link for this segment.",
      "type": "string"
    },
    "type": {
      "description": "Type for a segment. Possible values are \"BUILT_IN\" or \"CUSTOM\".",
      "type": "string"
    },
    "updated": {
      "description": "Time the segment was last modified.",
      "format": "date-time",
      "type": "string"
    }
  },
  "type": "object"
}