Zubby AI
  • Pricing
Sign inStart free trial
  • Welcome
  • Widget overview
  • Designer & themes
  • Audience rules
  • Embed codes
  1. Docs
  2. Widget overview
  3. Audience rules

Audience rules

Audience rules decide who sees what variant of the widget, and on which pages. They’re evaluated server-side every time the widget boots, so the visitor only ever downloads the variant they’re routed to. Rules combine with simple AND/OR logic, and conflicts resolve by priority order.

Available conditions

ConditionOperatorsExample
Page URLequals, contains, starts with, regexcontains "/products/" — show on product pages only.
Referrercontains, starts withstarts with "https://www.tiktok.com"
UTM source / medium / campaignequals, in listutm_campaign = "spring-sale"
Deviceis, is notdevice is "mobile"
Localeequals, in listlocale in ["fr-FR", "fr-CA"]
Cart valuegreater than, less than, betweencart_value > 100 USD
Customer segmentis, is notsegment is "VIP"
Lifecycle stageis, is notstage is "first_time_visitor"
Time on sitegreater than (sec)time_on_site > 30
Scroll depthgreater than (%)scroll_depth > 60
Exit intenttrue / falseexit_intent = true on cart page → popup mode.
A/B splitpercentage50% get variant A, 50% get B.

Combining rules

Inside a single rule, all conditions are joined by AND. Multiple rules are evaluated top-down — the first match wins. Put the most-specific rules near the top.

text
Rule 1 (priority 1)
  IF page URL contains "/products/holiday-bundle"
  AND device is "desktop"
  THEN render variant "Holiday hero (inline)"

Rule 2 (priority 2)
  IF segment is "VIP"
  THEN render variant "VIP concierge (launcher)"

Rule 3 (default, priority 99)
  Render variant "Default (launcher)"

Suppression rules

Sometimes the right call is to not show the widget. Suppression rules render nothing when they match. Common uses:

  • Hide on the checkout page so the widget doesn’t compete with the payment form.
  • Hide for staff logged in via Shopify’s preview cookie.
  • Hide on legal pages (Privacy, Terms) where the AI shouldn’t be a distraction.

Out-of-hours mode

On Dashboard → Widget → Schedule you can configure business hours. Outside those hours, the widget either:

  • Keeps running with the same AI behavior (default).
  • Switches to “We’ll reply in the morning” mode — the AI still answers product questions but routes anything ambiguous to your inbox with a delayed-reply expectation set.
  • Hides entirely.

Audience rules vs. journey rules

Audience rules decide who sees the widget. Recovery journey rules (covered separately) decide who gets an email after they leave. Don’t conflate them — a shopper can match a rescue journey without ever having seen the widget.

Testing rules

Each rule has a Preview button that simulates what the rule would do for a fake visitor matching the criteria you set (device, locale, segment). Use it before publishing — it’s much faster than hot-reloading a real browser.

You can also tag yourself into a segment manually:

js
// In the browser console on your storefront
window.Zubby.devSetSegment("VIP");
window.Zubby.reload();

Limits

Trial workspaces support up to 5 active rules. Growth and Pro support 25 and 100 respectively. Enterprise is unlimited. Rules that are paused (toggle off the eyeball) don’t count against the limit.

Was this page helpful?

Still stuck? Contact support with the URL of this page (/docs/widget/audience-rules).

PreviousDesigner & themesNextEmbed codes

Footer

Zubby AI

The AI sales agent for Shopify and WooCommerce. Learns your store, guides shoppers in real time, and recovers the revenue you would have otherwise lost.

System status

Product

  • All Features
  • AI Sales Agent
  • Cart Rescue
  • Widget Designer
  • Multi-Language
  • Pricing
  • Changelog

Solutions

  • Solutions Hub
  • Cart Recovery
  • Product Discovery
  • 24/7 Support
  • Upsell + Cross-sell
  • Conversion Optimization

Industries

  • Fashion & Apparel
  • Beauty & Cosmetics
  • Electronics
  • Jewelry & Accessories
  • Food & Beverage
  • Health & Wellness

Integrations

  • Shopify
  • WooCommerce
  • All integrations
  • vs Rep AI
  • vs Tidio
  • vs Klaviyo
  • vs Gorgias

Resources

  • Documentation
  • Guides
  • ROI Calculator
  • Glossary
  • Answers (AI Q&A)
  • Blog
  • Case Studies

Company

  • About
  • Careers
  • Contact
  • Trust
  • Security
  • Status
  • Privacy
  • Terms

© 2026 Zubby AI, Inc. All rights reserved.

Built for merchants.Made with care.