Team, If we have couple of experiments inside anot...
# ask-questions
n
Team, If we have couple of experiments inside another experiment, the GTM is tracking the child exp, not the parent exp. Can anyone help? TIA
f
Each time an experiment is included it will fire the trackingCallback - so if you’re nesting them, you should get one for the parent as well as children
n
thanks for the reply. Im not getting the parent exp Id. I tried Namespaces, but it is not helping
f
how are you nesting the experiments
?
n
They are independent exp, but please check the screenshot
Green one is parent, Blue is child
f
ya, but code wise
n
Parent will always be there on pageload, Im doing the A/b testing, Enabling the child from Growthbook dev tool,
When I click on the parent, the exp Viewed is getting tracked with child Id
f
I think there is some confusion
with how growthbook works
when a user is placed into an experiment, we fire the trackingCallback method
but these arent actually nested if one is always shown
so is the green text an experiment?
n
yes, the green one is also an exp
f
How are you implementing the nesting then?
n
Im not doing anything in GB, but in the code, im using the useFeatureIsOn,
f
why did you say they are nested?
n
I mean they will be shown one inside other
f
ok
n
code wise, the child is called in the parent component
f
can you share the screen shot of the rules youve added per experiment?
n
sure
image.png
f
So here, rule 1 will always return ‘on’ and no users will make it to the A/B test
so it is not running as an ab test
n
ok
f
as the text there says, rules go in order, and first matching rule is served
n
ok, thank you
I'll check
image.png
Im getting the same issue with the above also
f
is this the green one or yellow?
blue*
n
green one, prod env
f
Are you sure you’re using the production SDK end point for that?
n
Where can I check that?
f
it will be in the SDK implementation - the key you’re using
n
Thank you, Im using the staging key
I'll check
Appreciate your time
Graham, I still has the issue
I removed the namespace also
f
did you publish the rule?