Reputation: 133
Our webpage client (website) collects the client_id and send it to our backend-server when the user submits a form. Then on the backend we use the Measurement Protocol API to send the (conversion) event when the submitted form is confirmed.
While posting data to GA4 Measurement Protocol API, we are adding the client_id as well.
End point: www.google-analytics.com/mp/collect?measurement_id=G-XXX&api_secret=XXX
{
"client_id": "101571251.1653627906",
"events": [
{
"name": "test_event_6",
"params": {
"test_param_1": "50",
"test_param_2": 80
}
}
]
}
However, when I check the GA4 reports, even though I can see the event in the real-time reports, the event is not associated with any real client.
What could be the issue here? How can we debug it?
Upvotes: 4
Views: 1285
Reputation: 1420
Have you tried sending a session_id and engagement_time_msec?
In order for user activity to display in standard reports like Realtime, engagement_time_msec and session_id must be supplied as part of the params for an event.
Upvotes: 1