miniature-television-64304
11/28/2023, 6:46 PMimport { GrowthBook } from "@growthbook/growthbook";
never successfully imports and always prints out Uncaught TypeError: Failed to resolve module specifier "@growthbook/growthbook". Relative references must start with either "/", "./", or "../".
. Is this something you can help me resolve?swift-helmet-3648
11/28/2023, 6:51 PMminiature-television-64304
11/28/2023, 7:09 PMminiature-television-64304
11/28/2023, 7:21 PMswift-helmet-3648
11/28/2023, 7:22 PMswift-helmet-3648
11/28/2023, 7:23 PMminiature-television-64304
11/28/2023, 7:32 PMswift-helmet-3648
11/28/2023, 7:35 PMminiature-television-64304
12/01/2023, 10:24 PMStrategy 1: Page speed optimized, inline experiments
strategy described in the GTM docs. I have it set up with a little test experiment and it appears to be working. I can grab the value from the variation that the user is assigned and create logic from there.
My 2 questions are:
1. I noticed that the apiHost
and clientKey
connection parameters aren't a requirement for this strategy. Why is that the case?
2. If I'm setting key
, variations
, weights
, and coverage
here in my code, how would it interact with the settings I set up in my features on GrowthBook?
Does it not interact with the features set up there at all? If so, does that mean it only tracks data based on the trackingCallback
? And not in any way that the results can be viewed in the experiment results tab on GrowthBook?
Thanks for any assistance!swift-helmet-3648
12/01/2023, 10:48 PMminiature-television-64304
12/01/2023, 10:52 PMStrategy 2: Flexible feature flags, less performant
does load the feature information from GrowthBook? As well as store the results for us in the results tab?miniature-television-64304
12/02/2023, 7:18 PMgb.loadFeatures().then(function() {
// 2-way test using a boolean feature flag
if (gb.isOn("green-button")) {
document.querySelector("#button-1").classList.add("green");
}
});
We have an A/B feature set up with a control set to "Off" and a variant set to "On". Default value is "Off" and it's set to include 100% of traffic.
When using the method above^, we aren't seeing any results in the results tab. We are instead seeing the error Unknown experiment assignment table - anonymous_id
. Does this have to do with our ID we're passing in the attributes? Or something else?swift-helmet-3648
12/04/2023, 5:22 PManonymous_id
miniature-television-64304
12/04/2023, 5:48 PManonymous_id
?miniature-television-64304
12/04/2023, 5:54 PManonymous_id
, but I'm still getting the error. So there must be more to it.rhythmic-agent-34208
12/04/2023, 9:39 PM