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

straight-whale-38038

09/18/2023, 1:00 PM
This message contains interactive elements.
p

prehistoric-beard-84272

09/18/2023, 1:19 PM
When you load the library (e.g. from jsdeliver), did you assign that script tag the id "growthbook-sdk"? (This is something I overlooked myself) Also it looks like that the entire gb code is inside the gtag function. I think the gtag code should be inside the gb trackingCallback function.
s

straight-whale-38038

09/18/2023, 1:22 PM
I'm not loading in the same way as Dan did. I load it asynchronously.
the init config
The only thing that I don't get is that it stopped working suddenly. I was making tests through the whole app and then it just stopped sending the experiments
p

prehistoric-beard-84272

09/18/2023, 1:31 PM
Hmm, sorry, no idea.
s

straight-whale-38038

09/18/2023, 7:28 PM
Update: I started the trial and suddenly it started working with visual tests, but feature flag tests still doesn't work
f

fresh-football-47124

09/19/2023, 3:05 AM
Hi Pedro - do you have a screen shot of the rules you’ve added to the feature?
s

straight-whale-38038

09/19/2023, 9:21 AM
Hi @fresh-football-47124, I managed to discover what was Happening. Apparently feature flag tests can only be started by calling
growthbook.isOn
method even if the user is elligible to participate in the page load. I think this information is kind of unclear in the docs, as someone who is migrating from Optimize, we usually trigger tests on page load
And a feature suggestion: Init experiments created on the platform via custom triggers such as optimize's dataLayer triggers. Manually running tests require via
gb.run
require the whole test to be coded inline.
f

fresh-football-47124

09/20/2023, 8:48 PM
i’ll share this feedback