Hey! Is it normal that the chrome extension says 5...
# ask-questions
m
Hey! Is it normal that the chrome extension says 50/50 split while I set it up as 80/20 ?
👀 1
w
No that is not normal. Did you perhaps not publish the changes?
After making changes you should see a "review and publish" button on the top of the page.
m
I did review and publish
w
hmm
m
maybe there is something wrong with my set up somehow because I created this feature
show-fees
with experiment in it such as
show-fees-1
,
show-fees-2
,... But when I call
useFeature('show-fees')
I get no Experiment. I have to useExperiment to get it.
w
Maybe it is some kind of cached version that you are seeing. In the network control panel you can filter by "api" click the sdk endpoint and preview the output. One of the attributes is dateUpdated.
m
looks recent
w
yeah. Your setup is not quite right. Having the first override rule include 100% of users in the experiment means that none of the other override rules will get used.
I would not expect that to cause the growthbook dev console to get the wrong percentages listed though...
m
but shouldn't at least see the first experiment?
w
yes the response should have a "rules" attribute in the "show-fees" property
if you are in production
perhaps you are looking at staging?
which shows 0 override rules?
m
I am doing evrything locally for now
w
well which environment is the sdk key that you are using in your local running app and growthbook dev extension use?
I assume it must be the "staging" one. You can click "staging" by the override rules and put in some experiments there.
m
Yes good point it's staging
aaaaaah
okayyyyy
thanks for clearing that out I feel stupid 😅
w
no worries. We should probably make it clearer what environment you are looking at within the dev tools.
m
thanks again anyway I will keep my eye open for different environment
👍 1
One more question: Any reason why my log is different from what the devtools says ? value is false on my logs but true in the chrome extension
w
What is it you are outputing?
in your logs?
m
Copy code
const feature = useFeature('show-fees');
console.log(feature)
w
Are you using the same sdk key in your app, and within the dev extension?
m
I could not find anything about which sdk only api key. Do you know where I should look ?
w
sdk key = api key. Are they both using the same api key?
m
chrome extension needs an api secret that I don't use within my sdk set up.
here right ?