Hello GrowthBook team! I have a question regardin...
# ask-questions
g
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
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
Thanks for the reply Ryan! So, it is not mandatory to pass deviceId (GrowthBook attribute) to GoogleAnalytics. Correct?
r
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
Got it. The last question about is about id. Is there any benefits/preference to use id over deviceId in the experiments?