Hi! I'm having some problems with my GrowthBook se...
# announcements
c
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
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
Thanks! just updated the link! and yes, I have the extension installed and i'm able to preview both variants!
w
Does your website have a CSP?
c
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
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
None CSP violation so far
w
How is it that you are seeing both variations?
by changing the attributes?
c
Exactly, using the visual editor or with the query params I can switch between variants and preview them properly
s
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
great, wanted to make sure it wasn't required to work on production.