-
Why is the GA4 Measurement Protocol Tag redirecting events to a different endpoint?
“Hey there! I’ve been playing around with GA4’s Measurement Protocol to send event data to this GTM Server-Side thing and then onto GA4 again. Usually, everything goes as planned, but this time something odd’s happened. Check this out:
When I give GTMS Client a certain event, it looks like this:
`
{
“client_id”:”ND+VxzSadb1BmLKxlzHZiLidLj6X6kyM2mTNewDRSIc=.1675251033″… //And so on
}
`
And I’d expect GA4 to pass this onto this URL right here: http://www.google-analytics.com/mp/collect. But nope, what it’s doing is sending it to this place instead:
`
https://www.google-analytics.com/g/collect?cid=ZjceIJMKEZPkhLBLd1%2BzF0ekLIINdDre%2FJO1UF0RvMM%3D.1675344158… //And so on
`
Now, isn’t that weird? You’d think the body of this request would contain the same old JSON I sent to GTM in the first place, but that’s not the case. It could only be me, but I reckon this is why GA4 is misunderstanding the session_id and creating all sorts of problems. So, is this how it’s supposed to work, or am I missing something here?”
Log in to reply.