-
Effective methods for including session_id when sending events to GA4 through Measurement protocol
Hey folks, here’s the scoop: when sending GA4 purchase events from the client server via the measurement protocol, we’re hitting a snag. We’re missing a session_id parameter in the queries and as a result, our source and medium info goes MIA. We tried to throw the session_id parameter into the MP request, but ended up catching zero, zilch, nada.
Here’s what we’ve been tossing over the net:
{ "timestamp_micros": "1664522406546590", "non_personalized_ads": false, "events": [ { "name": "purchase_balance_top_up", "params": { "user_id": "11111111", "crm_id": "11111111", "balance": 990, "payment_method": "paymore" } } ], "client_id": "1119492379.1652295143", "session_id": "1664522264", "user_id": "11111111" }
Catch a glimpse of the raw data direct from BigQuery about events sent by the MP.
Peep the BigQuery snapshotSeeking some wisdom here, how do we deliver the session_id like a champ? Or how do we ensure our events don’t drop the source param ball?
Log in to reply.