I have to send Analytics4 events from php backend. The API require to send client_id
In some Php code samples, I see this id is randomely generated. But in official Google JS documentation, it is get from gtag
So, I suppose GA4 generate this id by itself.
My question is: Isn't it better to send client_id from GA4 instead of generating another one ? For example, when an user makes a pageview with classic JS tag, I suppose that if I use the same client_id to send event from my backend, Analytics will be able to know this is the same user for the two events...
Well wath is the good practice ? Thanks