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?