https://www.growthbook.io/ logo
#announcements
Title
# announcements
c

calm-dream-71211

07/20/2023, 2:48 PM
Hi! I'm having some problems with my GrowthBook setup. I was able to configure the client (React SDK and node for some experiments), my test experiment is running on 100% of the audience, 50/50, and the experiment is live, however, people are not getting assigned automatically to each one of the variants and I'm only seeing traffic in one of them. I'm wondering if could be related to this step in the CSP and if that step is crucial to assign the experiments in production
w

white-fireman-22476

07/20/2023, 2:50 PM
I can't see your link. However this can happen for a number of different reasons. Do you have the Growthbook Dev extension installed? That is the best way to debug what is going on.
c

calm-dream-71211

07/20/2023, 2:53 PM
Thanks! just updated the link! and yes, I have the extension installed and i'm able to preview both variants!
w

white-fireman-22476

07/20/2023, 2:53 PM
Does your website have a CSP?
c

calm-dream-71211

07/20/2023, 2:55 PM
Yes, and already configured the connect-src, but not sure if this step is also required for production to assigned each variant: https://docs.growthbook.io/app/visual#csp-requirements-for-global-javascript
w

white-fireman-22476

07/20/2023, 2:55 PM
You can open the developer tools console. If your website has a CSP implemented and a violation occurs, you will see a message in the console indicating a CSP violation. This message will typically start with something like "Content Security Policy violation."
c

calm-dream-71211

07/20/2023, 3:00 PM
None CSP violation so far
w

white-fireman-22476

07/20/2023, 3:01 PM
How is it that you are seeing both variations?
by changing the attributes?
c

calm-dream-71211

07/20/2023, 3:05 PM
Exactly, using the visual editor or with the query params I can switch between variants and preview them properly
s

swift-helmet-3648

07/20/2023, 3:08 PM
Hi Edgar, the custom JS feature isn't involved when assigning users to variants in production. The GrowthBook app is responsible for this, based on the hash attribute in the experiment setting
c

calm-dream-71211

07/20/2023, 3:32 PM
great, wanted to make sure it wasn't required to work on production.
15 Views