GA4 session id constantly changes

Hi,

Every event in GA4 seems to have a different session id. I checked the cid is correctly sent on each request to the server and from the server to GA. But sid is different after each refresh or when i navigate to a new page.

I checked the Chrome network tab and after every refresh or navigation to another page there is a failed request to my server with status 0, the same sid, and

  • sec-fetch-mode: no-cors
  • sec-fetch-site: same-site

Then after a couple more requests, the same request happens again, now correctly, but with a different sid. I think this is the reason all events appear to be from different sessions.

Why is this happening? Why would the first request fail? And why would then happen again but work?

Any help is greatly appreciated.

Best,
Savvas

After further investigation the failed request is not the issue. Sometimes that request is not appearing and the sid is still different. It seems that the cookie is not getting persisted, has anyone seen this before?

Could you share the website URL?