brave-jelly-4060
05/16/2023, 8:48 AMfresh-football-47124
brave-jelly-4060
05/17/2023, 1:47 AMfresh-football-47124
brave-jelly-4060
05/17/2023, 3:59 AMfresh-football-47124
brave-jelly-4060
05/17/2023, 4:03 AMfresh-football-47124
brave-jelly-4060
05/17/2023, 4:04 AM<script src="<https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/index.js>"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Create a GrowthBook instance
var gb = new growthbook.GrowthBook({
apiHost: "<https://cdn.growthbook.io>",
clientKey: "sdk-1234",
enableDevMode: true,
trackingCallback: function(experiment, result) {
console.log("Experiment Viewed", {
experimentId: experiment.key,
variationId: result.key,
});
},
});
// Wait for features to be available
await gb.loadFeatures({ autoRefresh: true });
});
</script>
fresh-football-47124
var gb = new growthbook.GrowthBook({
is not rightvar gb = new GrowthBook({