GA4 Measurement Protocol: client_id has invalid format. It should be in <number>.<number> format
It seems that Google engineers have quietly changed another requirement and introduced a breaking change?
Update: validation_behavior (new documentation)
validation_behavior | string | Optional. Sets the validation behavior for the request. Either RELAXED or ENFORCE_RECOMMENDATIONS. Defaults to RELAXED if not specified. |
Don't specify validation_behavior when you send events to minimize the data rejected by the Measurement Protocol.
Emphasis mine. See: https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#payload_validation_info
Error regarding client_id format
validationMessages:
- fieldPath: client_id
description: client_id [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]
has invalid format. It should be in <number>.<number> format.
validationCode: VALUE_INVALID