For GA4 via Tag Manager
Pass the parameter to dataLayer
On every page load after login, pass the relevant parameter
user_id to your dataLayer.For GA4 using gtag.js
Pass a unique user ID after login to track users across sessions on different devices using theuser_id config parameter.

