https://www.growthbook.io/ logo
m

most-plumber-30247

09/11/2023, 10:23 AM
Hey! Is it normal that the chrome extension says 50/50 split while I set it up as 80/20 ?
👀 1
w

white-fireman-22476

09/11/2023, 10:30 AM
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

most-plumber-30247

09/11/2023, 10:32 AM
I did review and publish
w

white-fireman-22476

09/11/2023, 10:32 AM
hmm
m

most-plumber-30247

09/11/2023, 10:38 AM
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

white-fireman-22476

09/11/2023, 10:38 AM
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

most-plumber-30247

09/11/2023, 10:39 AM
looks recent
w

white-fireman-22476

09/11/2023, 10:41 AM
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

most-plumber-30247

09/11/2023, 10:41 AM
but shouldn't at least see the first experiment?
w

white-fireman-22476

09/11/2023, 10:44 AM
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

most-plumber-30247

09/11/2023, 10:46 AM
I am doing evrything locally for now
w

white-fireman-22476

09/11/2023, 10:48 AM
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

most-plumber-30247

09/11/2023, 10:50 AM
Yes good point it's staging
aaaaaah
okayyyyy
thanks for clearing that out I feel stupid 😅
w

white-fireman-22476

09/11/2023, 10:51 AM
no worries. We should probably make it clearer what environment you are looking at within the dev tools.
m

most-plumber-30247

09/11/2023, 10:52 AM
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

white-fireman-22476

09/11/2023, 1:02 PM
What is it you are outputing?
in your logs?
m

most-plumber-30247

09/11/2023, 1:03 PM
Copy code
const feature = useFeature('show-fees');
console.log(feature)
w

white-fireman-22476

09/11/2023, 1:05 PM
Are you using the same sdk key in your app, and within the dev extension?
m

most-plumber-30247

09/11/2023, 1:16 PM
I could not find anything about which sdk only api key. Do you know where I should look ?
w

white-fireman-22476

09/11/2023, 1:17 PM
sdk key = api key. Are they both using the same api key?
m

most-plumber-30247

09/11/2023, 1:30 PM
chrome extension needs an api secret that I don't use within my sdk set up.
here right ?