GA4 unassigned trafic from webhook

Hi, I am sending a purchase event to GA4 from the server with a webhook. Howerver im getting unassigned traffic in GA4 with it.

These are the parameters im sending with the event

What do i need to send to not get unassigned traffic from the webhook? Also is it possible to gclid manually to GA4 if i have it aviable?

Thank you!

This means that you are not sending the same client_id or session_id that the client had on the web events.
You need to check that you are sending these parameters correctly, you may not have formatted the values of the cookies from where you get this data correctly.

ahh I see.

I am sending it like this: I cannot seem to find any documentation on the formatting tho
image

This is similar to the _ga cookie value you use for client_id. When server side tracking GA4 uses FPID cookie for client_id. So you need to use the value from there.

ahh that makes sense! thank you alot!

Do i have to parse the whole FPID value with the hashed part as well? or just the numbers at the end?

And ga_session_id can i take that from the event data and parse that? or is that in some ga cookie as well?

If I remember correctly - the hash without numbers at the end is used, but you can check how it is sent in web tracking in the outgoing GA request from the server container.

Session id is stored in the cookie ga_{your measurement id}

Thank you!

Looks like the whole string is getting send when looking in the outgoing request
image

1 Like