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

numerous-optician-45585

04/03/2023, 2:07 PM
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

fresh-football-47124

04/03/2023, 2:43 PM
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

numerous-optician-45585

04/03/2023, 3:01 PM
thanks for the reply. Im not getting the parent exp Id. I tried Namespaces, but it is not helping
f

fresh-football-47124

04/03/2023, 3:02 PM
how are you nesting the experiments
?
n

numerous-optician-45585

04/03/2023, 3:30 PM
They are independent exp, but please check the screenshot
Green one is parent, Blue is child
f

fresh-football-47124

04/03/2023, 3:31 PM
ya, but code wise
n

numerous-optician-45585

04/03/2023, 3:35 PM
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

fresh-football-47124

04/03/2023, 3:36 PM
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

numerous-optician-45585

04/03/2023, 3:38 PM
yes, the green one is also an exp
f

fresh-football-47124

04/03/2023, 3:38 PM
How are you implementing the nesting then?
n

numerous-optician-45585

04/03/2023, 3:39 PM
Im not doing anything in GB, but in the code, im using the useFeatureIsOn,
f

fresh-football-47124

04/03/2023, 3:40 PM
why did you say they are nested?
n

numerous-optician-45585

04/03/2023, 3:41 PM
I mean they will be shown one inside other
f

fresh-football-47124

04/03/2023, 3:41 PM
ok
n

numerous-optician-45585

04/03/2023, 3:42 PM
code wise, the child is called in the parent component
f

fresh-football-47124

04/03/2023, 3:42 PM
can you share the screen shot of the rules youve added per experiment?
n

numerous-optician-45585

04/03/2023, 3:43 PM
sure
image.png
f

fresh-football-47124

04/03/2023, 3:45 PM
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

numerous-optician-45585

04/03/2023, 3:47 PM
ok
f

fresh-football-47124

04/03/2023, 3:47 PM
as the text there says, rules go in order, and first matching rule is served
n

numerous-optician-45585

04/03/2023, 3:48 PM
ok, thank you
I'll check
image.png
Im getting the same issue with the above also
f

fresh-football-47124

04/03/2023, 3:55 PM
is this the green one or yellow?
blue*
n

numerous-optician-45585

04/03/2023, 3:55 PM
green one, prod env
f

fresh-football-47124

04/03/2023, 4:04 PM
Are you sure you’re using the production SDK end point for that?
n

numerous-optician-45585

04/03/2023, 4:09 PM
Where can I check that?
f

fresh-football-47124

04/03/2023, 4:10 PM
it will be in the SDK implementation - the key you’re using
n

numerous-optician-45585

04/03/2023, 4:11 PM
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

fresh-football-47124

04/04/2023, 2:43 AM
did you publish the rule?