Google Analytics · Schema

DynamicSegment

Dynamic segment definition for defining the segment within the request. A segment can select users, sessions or both.

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

Properties

Name Type Description
name string The name of the dynamic segment.
sessionSegment object Session Segment to select sessions to include in the segment.
userSegment object User Segment to select users to include in the segment.
View JSON Schema on GitHub

JSON Schema

google-analytics-dynamicsegment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DynamicSegment",
  "title": "DynamicSegment",
  "description": "Dynamic segment definition for defining the segment within the request. A segment can select users, sessions or both.",
  "properties": {
    "name": {
      "description": "The name of the dynamic segment.",
      "type": "string",
      "example": "Example Name"
    },
    "sessionSegment": {
      "$ref": "#/components/schemas/SegmentDefinition",
      "description": "Session Segment to select sessions to include in the segment."
    },
    "userSegment": {
      "$ref": "#/components/schemas/SegmentDefinition",
      "description": "User Segment to select users to include in the segment."
    }
  },
  "type": "object"
}