Hello GrowthBook team!
I have a question regarding deviceId.
We do have the following setup: Next.js, GoogleAnalytics via GTM and BigQuery datasource in GB. And we don't sync deviceId (that is used in GrowthBook experiments) in any GA attributes, I mean we don't use it as an property of user and/or attribute in GA events.
So, how GrowthBook experiment attach events from BigQuery to corresponding variant to determine the results?
r
rhythmic-agent-34208
08/12/2024, 4:19 PM
GrowthBook only has access to the attributes that are set in your app (Next.js). In our Next js example, you can see that the `id` is being set and passed to GrowthBook.
g
gorgeous-printer-186
08/13/2024, 12:26 PM
Thanks for the reply Ryan!
So, it is not mandatory to pass deviceId (GrowthBook attribute) to GoogleAnalytics. Correct?
r
rhythmic-agent-34208
08/13/2024, 1:11 PM
Right. However, you do need to set some kind of unique ID as shown in the example. Of course, if you're not passing a deviceId, then you can't use it in experiments or flags, as you mentioned.
g
gorgeous-printer-186
08/15/2024, 9:46 AM
Got it. The last question about is about id. Is there any benefits/preference to use id over deviceId in the experiments?