Add HTML-attribute condition to Targeting & display behavior
Problem: B2C and B2B customers share the same domain in Shopify. Signup popups built for B2C discount offers currently also show to B2B visitors, because targeting only supports URL patterns and Klaviyo profile status — there's no way to distinguish the two customer types when they're on identical URLs. The workaround (custom trigger) disables several popup features, so it isn't a real substitute.
Proposed solution: Let targeting conditions check attributes on any DOM element, most usefully <html>, e.g. data-customergroup="b2b". Since virtually many CMS (including Shopify via Liquid/theme customization) lets merchants inject data attributes into the <html> tag based on logged-in customer type, this becomes a reliable, first-class targeting signal — no custom trigger, no feature trade-offs.
Why it matters: Avoids B2B customers seeing B2C-only discounts, keeps full popup functionality (which custom triggers currently sacrifice), and generalizes beyond this use case to any merchant segmenting by page-level metadata.

