Klaviyo Lists & Segments
Target campaigns at any of your Klaviyo lists or segments or prevent them from seeing them.
Klaviyo Lists & Segments is an OptiMonk targeting condition that lets you show or hide campaigns based on a visitor's membership in any of your existing Klaviyo lists or segments — using the segmentation you have already built in Klaviyo as targeting intelligence for on-site campaigns. If your store is connected to Klaviyo and Klaviyo's onsite tracking code is present on your site, OptiMonk can check in real time whether the current visitor is a recognized Klaviyo profile and — if so — whether they belong to a specific list or segment you have defined. This unlocks two powerful use cases: targeting a campaign exclusively at a Klaviyo segment (for example, showing a loyalty offer only to your VIP segment, or a winback offer only to your lapsed purchasers segment), and excluding all recognized Klaviyo profiles from a campaign (for example, suppressing a newsletter opt-in popup for visitors already on your email list). The condition requires the Klaviyo integration to be set up in OptiMonk and Klaviyo's onsite tracking script to be active. On Shopify, WooCommerce, and Magento, this script is added automatically when the Klaviyo integration is installed.
Key benefits
- Turn Klaviyo's segmentation into on-site targeting intelligence. If you have already invested in building detailed Klaviyo segments — VIP customers, first-time buyers, lapsed purchasers, subscribers who clicked a specific email, customers in a specific product category — those segments are immediately available as targeting conditions in OptiMonk without any additional data work. The segmentation you maintain in Klaviyo for email flows becomes the same segmentation that controls which visitors see which on-site campaigns.
- Suppress opt-in campaigns for visitors already on your list. One of the most common and impactful uses of this condition is excluding all Klaviyo profiles from newsletter or lead-capture campaigns. Visitors who are already subscribed to your email list gain nothing from seeing a popup asking them to subscribe — and seeing it anyway signals that your site does not recognize them, which is a trust and personalization failure. A single "don't show to any Klaviyo profile" condition on your opt-in campaigns eliminates this entirely.
- Target non-subscribers and subscribers differently with the same campaign infrastructure. By combining Klaviyo list/segment targeting with OptiMonk's Experiences feature, you can serve completely different messages to different Klaviyo segments from a single campaign — a discount for non-subscribers, a loyalty reward for your VIP list members, and a reactivation offer for lapsed purchasers — all triggered on the same page, each displayed only to the correct segment, without building separate campaigns for each group.
How it works
Before using this condition, confirm that your Klaviyo integration is set up in OptiMonk (Settings → Integrations → Klaviyo) and that Klaviyo's onsite tracking JavaScript is present on your website. On Shopify, WooCommerce, and Magento, the tracking code is added automatically. On BigCommerce and Wix, enable the "Automatically add Klaviyo onsite JavaScript" option during Klaviyo integration setup. For other platforms, the tracking code must be added manually following Klaviyo's onsite tracking guide.
In your campaign's targeting settings, click Add new condition and look for "Klaviyo lists and segments." If you have multiple Klaviyo integrations configured (for different domains or stores), select the appropriate one. Then choose your targeting mode: either "don't show to any Klaviyo profiles" (to exclude all recognized email subscribers) or "show only to visitors in a specific list or segment" (to target a defined Klaviyo audience). For the latter, select one or more lists or segments from the dropdown — your Klaviyo lists and segments populate automatically once the integration is connected.
After saving the targeting condition, scroll to the campaign's integration section and confirm that your Klaviyo integration is also listed as the destination for lead data from this campaign. This ensures both that the targeting condition evaluates correctly and that new opt-ins from this campaign are sent to the correct Klaviyo list. Click Next and publish the campaign.
Frequently asked questions
What is Klaviyo Lists & Segments targeting in OptiMonk?+
Klaviyo Lists & Segments targeting is an OptiMonk targeting condition that shows or hides campaigns based on whether a visitor is a recognized Klaviyo profile and whether they belong to a specific Klaviyo list or segment. It requires the Klaviyo integration to be set up in OptiMonk and Klaviyo's onsite tracking code to be present on the site. Two modes are available: excluding all Klaviyo profiles from a campaign, or targeting only visitors who belong to a specific list or segment.
Does Klaviyo Lists & Segments targeting work for anonymous visitors?+
Anonymous visitors — those who have recently cleared their cookies, are browsing on a new device, or are using incognito mode — are not recognized as Klaviyo profiles even if their email address is in your Klaviyo account. Because Klaviyo's onsite tracking identifies visitors through browser cookies, these visitors will be treated as unknown by the targeting condition. A "don't show to any Klaviyo profiles" rule will show the campaign to anonymous visitors, and a "show only to a specific segment" rule will not match them.
Which platforms support automatic Klaviyo onsite tracking setup?+
Klaviyo's onsite tracking JavaScript is added automatically when the Klaviyo integration is installed on Shopify, WooCommerce, and Magento stores. For BigCommerce and Wix, the tracking code can be enabled during Klaviyo integration setup by activating the "Automatically add Klaviyo onsite JavaScript" option. For all other platforms, the tracking code must be added manually to your site's source code — Klaviyo's onsite tracking documentation provides the steps for this.
Can I target multiple Klaviyo lists or segments in a single condition?+
Yes. When selecting the "show only to a specific list or segment" mode, the dropdown allows you to select multiple lists or segments within a single condition. The condition uses OR logic — the campaign will display to visitors who belong to any of the selected lists or segments, rather than requiring membership in all of them simultaneously. This lets you target a combined audience (for example, your VIP segment plus your high-frequency buyers list) with a single targeting rule.
Can I use Klaviyo segment targeting together with other OptiMonk targeting conditions?+
Yes. The Klaviyo Lists & Segments condition works with AND logic alongside all other OptiMonk targeting conditions. For example, you can show a loyalty campaign only to visitors who are in your VIP Klaviyo segment AND have a cart value above $50 AND are on a product page. Each additional condition narrows the audience further, allowing you to create highly specific campaign configurations that combine Klaviyo's email segmentation intelligence with OptiMonk's behavioral and page-context targeting.
Try OptiMonk for free
Launch your first campaign, learn what works, then scale what converts.