This message was deleted.
# ask-questions
w
This message was deleted.
b
Hi Erik, welcome to GrowthBook! Thanks for reaching out with these JS SDK questions.
I'll return to answer your questions as soon as I can!
j
Appreciate it, thanks!
b
Hi Erik, I apologize I wasn't able to answer your questions today. Your support request is still on my radar! I'll ask my colleague in Europe to reply when he comes online tomorrow (I'm in the US) but if he is unable to I'll work on this tomorrow morning.
h
I'll try to answer some of these. 1. A new instance of the SDK per experiment? No, you typically only need one SDK instance to run multiple experiments (of course this may change if you have multiple environments or projects). 2. That's probably best left up to you to rig up using your site code / javascript rather than using GrowthBook targeting attributes. GB attributes are typically used to target specific users (i.e. "US based", "pro members", etc) rather than anything based on the current page being browsed. 3. Yeah, any sort of flag linked to an experiment needs to be evaluated to trigger. IsOn() is one of the ways to do this.
j
Thanks for the responses. We're just getting everything set up and I hadn't seen much for these. I'll probably have some more questions in the very near future (today probably haha).
We're using GA4/BigQuery as our data warehouse. What is the best practice for setting the ID attribute to target users?
What I mean is using the
id
when "Assign variation based on attribute" is used.
h
I'm not a GA4 expert, but we do have a tutorial for this that is worth a look if you haven't seen it already: https://docs.growthbook.io/guide/GA4-google-analytics
j
Thanks, I'll read those.
142 Views