0

I want to extract client_id for a visit from google analytics and send it to hidden fields within the application forms. I know in Universal Analytics, we can extract it from ga cookie. But how about Google Analytics 4? Do I need to extract it from GA4 API?

Thank you in advance,

1 Answers1

0

GA4 uses the same cookie for client id as GA3. The same old answers apply very well to GA4: how to get the Google analytics client ID

Not marking this as duplicate because the old question does reference GA4, but I will try and edit the old question and answer to include GA4 there.

BNazaruk
  • 1,809
  • 3
  • 14
  • 16