Use Intelligems to A/B test the impact of Candy Rack’s upsell offers on conversion, AOV, and revenue, or experiment with different upsell offers to see which perform better.
The integration also ensures that price tests configured in Intelligems are reflected in Candy Rack’s offers.
💡 The integration is currently in beta and can be enabled by our support team on request.
Price tests
If you have active price tests in Intelligems, Candy Rack will automatically display the correct price for the customer’s Intelligems group in the Candy Rack UI.
Please note that the checkout and post‑purchase offer placements are excluded from testing.
A/B test offers
How it works
Intelligems splits traffic between control and variant(s).
A short script runs per variant to toggle Candy Rack offers on/off.
Setup steps
1. Prepare your offers in Candy Rack
Make sure your desired pre‑purchase offers (e.g., product page/cart) are set up and active.
2. Create an experiment in Intelligems
In Intelligems, create a new experiment.
3. Add variant scripts
In the experiment configuration, open to the Modifications tab, then the Styles & Javascript section.
Select a test group and paste your script into the JavaScript field. Repeat for each test group.
Candy Rack script
Use the following script in Intelligems to control which Candy Rack offers appear for each test group.
window.CANDYRACK_INTELLIGEMS_FILTERS = {
add_to_cart: {
mode: 'include',
offerIds: []
},
checkout_button: {
mode: 'exclude',
offerIds: []
},
product_page_placement: {
mode: 'exclude',
offerIds: []
}
};
Configuration notes:
By offer placement:
add_to_cart:
for the pop‑up shown on product pages.checkout_button:
for the pop‑up shown in the cart.product_page_placement:
for embedded offers on product pages.
Modes:
exclude:
exclude specific offers from the test group.include:
include specific offers in the test group.
OfferIds:
Add the offerIds (numbers) that should be included in or excluded from the test group.
You can find an offerId in the URL of the upsell offer in Candy Rack.
To include or exclude multiple offers, separate the IDs with a comma.
To show all active offers for a placement, use mode: ‘exclude’ with an empty offerIds array.
To turn off all offers for a placement, use mode: ‘include’ with an empty offerIds array,
Checkout and post‑purchase offers cannot be tested at the moment.
Examples
Turn on 3 offers for the product-page pop-up in a test group:
window.CANDYRACK_INTELLIGEMS_FILTERS = {
add_to_cart: {
mode: 'include',
offerIds: [347288, 321899, 313900]
}
};
Turn off all embedded offers on product pages for a test group:
window.CANDYRACK_INTELLIGEMS_FILTERS = {
product_page_placement: {
mode: 'include',
offerIds: []
}
};
Turn on 1 offer for the in‑cart pop‑up and allow all active embedded offers on product pages to run:
window.CANDYRACK_INTELLIGEMS_FILTERS = {
checkout_button: {
mode: 'include',
offerIds: [347288]
},
product_page_placement: {
mode: 'exclude',
offerIds: []
}
};
Need help or want us to enable the integration? Contact our support team via the in‑app chat or at [email protected].