To compare Alia with another popup tool, use an outside A/B testing tool, such as Intelligems, Shoplift, or Convert, to split visitors. Alia's built-in A/B tests only split visitors between Alia popups. The testing tool decides each visitor's variant and tells Alia with a flag, so only one popup ever shows. You can use the same approach to test popups in different themes, or to keep visitors in the same variant across several tests at once.
Set up the test
Find a CSS selector for the other popup. Inspect the popup on your live site and find a class or ID that's unique to it.
In your testing tool, create a test with two variants: one that shows the other popup (control) and one that shows Alia.
In the Alia variant, hide the other popup with CSS and set the flag:
.other-popup {
display: none !important;
}window.SHOW_ALIA = true;
In the control variant, set
window.SHOW_ALIA = false;, or leave it unset.In Alia, open the campaign's targeting and add a Custom code condition:
return window.SHOW_ALIA === true;
Publish the campaign. It stays hidden for visitors whose flag isn't set.
Preview each variant and check that only one popup ever appears.
đĄ Note: Some popup tools lock page scrolling while their popup is open, so hiding them with CSS isn't always enough. See the code for each tool below.
When the test ends
If Alia wins:
Turn off the other popup tool, or make sure its popup no longer shows.
Remove the Custom code condition from the Alia campaign's targeting.
Check that the Alia campaign shows for visitors who match its other targeting.
If you leave the condition in place, the campaign keeps waiting for a flag that's never set and stops showing. If Alia doesn't win, keep the campaign unpublished, or keep the condition, until you're ready to launch it.
Code for each popup tool
Alia
window.SHOW_ALIA = true; // to show
window.SHOW_ALIA = false; // to hide
Klaviyo (JS + CSS)
.needsclick.kl-private-reset-css-Xuajs1 {
display: none !important;
}window.SHOW_ALIA = true;
setInterval(() => {
document.body.classList.remove('klaviyo-prevent-body-scrolling');
}, 500);
Attentive (CSS)
html {
overflow: unset !important;
}
div#attentive_overlay {
display: none !important;
}Postscript (JS + CSS)
window.SHOW_ALIA = true;
setInterval(() => {
document.body.classList.remove('ps-scroll-lock');
document.documentElement.classList.remove('ps-scroll-lock');
}, 100);
div#ps__widget_container {
display: none !important;
}
Setting it up in each testing tool
Intelligems
In one variant, show Alia and hide the other popup with CSS. In the other variant, show the other popup and set window.SHOW_ALIA = false;.
Create a new test.
Name your test and choose Onsite Edits or Template Test, depending on the test.
Set your test groups.
On the Modifications tab, choose the Alia variant and add the CSS that hides the other popup.
Add the JavaScript flag for each variant:
truefor the Alia variant andfalsefor the other.
Shoplift
Shoplift tests whole themes against each other.
In Shopify, duplicate your live theme.
In Shoplift, create a test and choose Test a theme, so the test covers every page.
Set theme A to your live theme (other popup) and theme B to the duplicate (Alia).
In theme A's
theme.liquid, addwindow.SHOW_ALIA = false;just above</head>. Take care, since this is your live theme.In theme B's
theme.liquid, addwindow.SHOW_ALIA = true;and the CSS that hides the other popup, just above</head>.
Convert
In your project, create a new experience and add the variants.
In the other popup's variant, add
window.SHOW_ALIA = false;to the variation JavaScript.In the Alia variant, add
window.SHOW_ALIA = true;to the variation JavaScript, and the CSS that hides the other popup.
Frequently asked questions
Can I test a popup against no popup without an outside tool?
Yes. Use a built-in A/B test with a variant that has no triggers. See How to A/B test popup vs. no popup.
My Alia campaign stopped showing after the test. Why?
The Custom code condition is probably still in its targeting. Remove it once the test ends.
My condition never matches. Why?
It has to return exactly true, and finish within a second. Check that the flag is set before Alia checks the condition.
Still have questions?
Start a chat from inside the Alia app, or use the chat in our Help Center.





