proud-motorcycle-25668
08/19/2024, 10:16 PM(function(s) {
s=document.createElement('script'); s.async=true;
s.dataset.clientKey="dev_###";
s.src="<https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.min.js>";
s.dataset.apiHost="<https://gbapi.columbian.com>"
s.onload = () => {
console.log('Growthbook Loaded');
}
document.head.appendChild(s);
})()
however, I cannot get any tracking results. The page updates with the feature flag changes for each version... but zero tracking. I have tried adding both
window.GROWTHBOOK_CONFIG = {
// Impression tracking callback (e.g. Segment, Mixpanel, GA)
track: function(experimentId, variationId) {
push_GA4_event("Experiment Viewed", {
experimentId,
variationId
})
}
}
and
const FEATURES_ENDPOINT = "<https://gbapi.columbian.com/api/features/dev_###>";
fetch(FEATURES_ENDPOINT)
.then((res) => res.json())
.then((json) => {
growthbook.setFeatures(json.features);
})
.catch(() => {
console.log("Failed to fetch feature definitions from GrowthBook");
});
with no success and no tracking.fresh-football-47124
proud-motorcycle-25668
08/21/2024, 3:22 PMrhythmic-agent-34208
08/21/2024, 10:01 PM