The newly released Google Analytics adapter seems to have an issue with interpreting automatically collected page timing hits (t=timing).
These hits are collected automatically for 1% of page view requests (if using default settings), but can be increased to 100% of page view requests by setting the siteSpeedSampleRate field in the GA tracker.
Anyway, these hits do not have the userTimingVariableName
, userTimingCategory
, or userTimingTime
parameters set, because these are not user timings. The adapter seems to reject these hits as erroneous, because these three parameters are missing.
The Measurement Protocol Parameter Reference is annoyingly misleading here, as it claims that these variables are required if the hit type is βTimingβ, when in reality these parameters are only required for custom timing hits.
So one option would be to make these parameter completely optional, or alternatively, if possible, to make all three mandatory if at least one of the three is present.