Common Issues
window.shoplift is undefined
window.shoplift is undefinedfunction waitForShoplift(callback, maxAttempts = 50) {
let attempts = 0;
function check() {
if (window.shoplift) {
callback();
} else if (attempts < maxAttempts) {
attempts++;
setTimeout(check, 100);
} else {
console.warn('Shoplift did not load within the expected time.');
}
}
check();
}isHypothesisActive() always returns false
isHypothesisActive() always returns falseVariant shows briefly then disappears (flicker)
Test data not appearing in analytics
Consent integration not working
Last updated
Was this helpful?