Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › How to create a user ID for GA4 to BigQuery › Reply To: How to create a user ID for GA4 to BigQuery
-
The person is trying to create a
user_idin Google Analytics 4 (GA4) that is linked to Google BigQuery. They’ve used Google Tag Manager (GTM) to enhance GA4’s performance, linked GA4 and BigQuery, and successfully gathered site data in BigQuery. Then, they tried to passuser_idtodataLayerby adding a certain bit of code to theHEADERsection abovegtm.js. However, they’re unsure if using a string (USER_ID) at this stage may lead to incorrect results. They’ve also created a dataLayer variable and adjusted the GTM code accordingly.Yet, the results they’ve received aren’t as expected. For instance, while they hoped to generate a specific comparison, the results turned out differently. They also anticipated the addition of a new
user_idcolumn in BigQuery, which hasn’t happened. It’s unclear whether they could be missing a step or overseeing something, or if it’s even feasible to pass theuser_idfrom the frontend to the backend in the way they had envisioned.They are seeking advice to clarify these concerns and any insights into their process would be highly appreciated.