Google Analytics · Schema

MeasurementPayload

MeasurementPayload schema from Google Analytics API

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

Properties

Name Type Description
client_id string Uniquely identifies a user instance of a web client. Required for web streams.
app_instance_id string Uniquely identifies a user instance of an app. Required for app streams.
user_id string A unique identifier for a user. Enables cross-platform analysis. Must contain only UTF-8 characters.
timestamp_micros integer Unix timestamp in microseconds for the request. Used to backdate events up to 72 hours.
user_properties object User-scoped properties for the measurement.
user_data object User-provided data for enhanced measurement.
consent object
non_personalized_ads boolean Deprecated. Use consent.ad_personalization instead.
user_location object
ip_override string IP address used to derive geographic information.
device object
validation_behavior string Controls validation strictness. RELAXED only rejects malformed requests. ENFORCE_RECOMMENDATIONS also rejects invalid types and exceeded limits.
events array Array of event objects. Maximum 25 events per request.
View JSON Schema on GitHub