incalculable-elephant-73095
10/12/2023, 10:09 AMtrackingCallback: (experiment, result) => {
// TODO: Use your real analytics tracking system
console.log("Viewed Experiment", {
experimentId: experiment.key,
variationId: result.key
});
}
});
happy-autumn-40938
10/12/2023, 8:12 PMenableDevMode: true
in the SDK constructor and set window._growthbook.debug = true
.incalculable-elephant-73095
10/13/2023, 11:07 AMenableDevMode: true
in the SDK constructor and set window._growthbook.debug = true
To overcome this problem we tried to push data to the data layer with a visual editor (but this is definitely not how it should be)
"js":"window.dataLayer = window.dataLayer || [];\n dataLayer.push(\n { \n event: 'experiment_viewed', \n eventCategory: 'experiment',\n experiment_id: 'black CTA',\n variation_id: 'show'\n }\n )"
Please, help us to understand:
1. Why callback function can fail to launch?
2. When it should be launched (what trigger initiates it)
3. How can we force it to launch?
If necessary I can send all the information you need to check it from your sidehappy-autumn-40938
10/13/2023, 9:35 PMincalculable-elephant-73095
10/16/2023, 11:52 AM