Javascript API
For ease of use, Intelligems adds an object to the global window scope when the page loads. It primarily acts as a read interface for configurations and session-specific A/B tests.
Overview
Load Timing
Event-based Ready Detection
window.addEventListener('ig:ready', () => {
const experiments = window.igData?.user.getExperiments();
if (experiments.length) console.log("I have live experiments");
})Callback-based Ready Detection
Last updated