How to show a popup only on specific pages
Target popups to product pages, collections, the cart, the homepage, or any URL pattern — and combine multiple page rules in one campaign.
Where a popup fires matters more than what it says. A discount popup on a blog post annoys readers; the same popup on a cart page rescues sales. Page targeting is the difference.
TL;DR
Open your campaign's targeting panel, add a page rule, and pick either a Shopify page type (Home Page, Product Page, Cart Page, Collection Page, and seven others) or a URL pattern preset (All Product Pages, Cart Page, Specific Collection, and others). You can stack multiple page rules in the same campaign so a single popup runs on, say, the cart page and every product page — without firing on your homepage or blog. Preview on your storefront before publishing.
When page targeting wins
Most popup mistakes are targeting mistakes. Three patterns where page targeting transforms a campaign:
- Cart-page-only abandonment popups. A "Wait — get free shipping" popup on the cart catches shoppers who've already decided to buy. The same popup on the homepage hits people who haven't even browsed yet, and converts at a fraction of the rate.
- Product-page-only upsells. Showing "Bundle this with X" on a product detail page keeps the message relevant. On a blog post, that same prompt feels like spam.
- Blog-and-content-page email capture. Readers on your blog or About page aren't shopping — they're learning. A soft email-capture nudge works there; a discount popup doesn't.
The rule: match the popup's intent to where the shopper is in the journey.
Step 1 · Open the campaign's targeting panel
Open the campaign you want to scope, then go to the Targeting panel. You'll see a section for page rules where you can choose between Page Type (Shopify's built-in page categories) and URL Pattern (matching against the page address).
The Targeting panel inside a campaign showing the page-rule section with Page Type and URL Pattern as the two scoping options.
Screenshot coming soon
You can use either Page Type or URL Pattern — or both, in the same campaign. Page Type is usually simpler; URL Pattern gives you finer control when you need to target a specific collection or landing page.
Step 2 · Pick a page type (the simple path)
Add a page rule, set the Condition to a page type, and pick from the dropdown. There are ten page types covering every standard Shopify storefront page.
The full list of page types Nudgesmart recognizes:
- Home Page — your storefront's front page
- Product Page — any product detail page
- Collection Page — any collection or category page
- Cart Page — the standalone cart page (not the cart drawer)
- Checkout Page — checkout flow pages
- Blog Page — blog articles and the blog index
- About Page — your About / About Us page
- Contact Page — your Contact page
- Search Results — the storefront search results page
- 404 Page — pages that didn't load
The page-type picker dropdown showing all ten Shopify page-type options like Home Page, Product Page, Collection Page, Cart Page.
Screenshot coming soon
Step 3 · Or pick a URL pattern preset (the precise path)
When you need to target something more specific than a whole page type — like a single collection or only your sale pages — switch the page rule to URL Pattern and pick a preset from the dropdown.
Page Type covers "all product pages" or "all collections," but URL Pattern presets handle the cases in between. Common presets:
- All Product Pages — every product detail page on the store
- Specific Product — a single product by its handle
- All Collections — every collection page
- Sale Collection — the
/collections/salepage - New Arrivals — the
/collections/newpage - Cart Page — the cart only
- Search Results — the search-results page
- Landing Pages — pages under
/landing/ - Promo Pages — pages under
/promo/
There are nineteen URL pattern presets in total — covering specific collections, account pages, FAQ and help pages, thank-you pages, and more. Pick the one that matches your campaign's intent.
URL pattern preset dropdown showing options including All Product Pages, Cart Page, Sale Collection, New Arrivals, Landing Pages, Promo Pages.
Screenshot coming soon
Step 4 · Combine multiple page rules in one campaign
Need a popup that fires on the cart page and every product page, but nowhere else? Add two page rules to the same campaign. Both will be checked, and the popup fires when at least one matches.
Stacking rules is how you build precise campaigns without spawning a separate one for every page. A few patterns merchants use a lot:
- Decision-stage popup. One rule for Product Page, one for Cart Page. Fires anywhere a shopper is in decision mode.
- Browse-stage popup. One rule for Home Page, one for Collection Page. Catches shoppers exploring the store.
- Sale-only campaign. One URL Pattern rule for Sale Collection. The popup only fires on
/collections/sale— perfect for a "20% off everything" banner that shouldn't appear on full-price products.
The same campaign can mix Page Type and URL Pattern rules — Nudgesmart treats them as alternatives, so any one match shows the popup. To layer in something stricter (like "product pages on mobile only"), combine page rules with the campaign's device or behavior triggers in the same panel.
Step 5 · Verify on your storefront
Save and publish the campaign, then open your live storefront in a private/incognito window and visit each page where you expect the popup to fire. Confirm it shows on the right pages — and just as important, that it does not show on the wrong ones.
A merchant's storefront in an incognito window showing a popup correctly firing on the cart page after page-targeting rules were configured.
Screenshot coming soon
Why incognito? Your own browser may have already seen and dismissed the popup, or hit its frequency cap, so the popup won't reappear. A private window starts fresh.
A quick sanity check after publishing:
- Visit your homepage — popup should appear or not appear, depending on whether Home Page is in your rules.
- Visit a product page — same check.
- Visit a blog post — if you didn't target Blog Page, the popup shouldn't fire here. If it does, double-check your URL Pattern rule.
For a refresher on how Shopify structures storefront URLs (which is what URL Pattern matches against), see Shopify's online store documentation or read the MDN URL Pattern API reference for the underlying pattern-matching standard.
Common pitfalls
- Popup fires everywhere even though you set a page rule. The rule probably wasn't saved — double-check the campaign was republished. Page rules only take effect on the next storefront page load.
- Targeting Cart Page but the popup never shows. Many themes use a cart drawer (a slide-out panel) instead of the
/cartpage, so shoppers never visit the cart page itself. Use a behavior trigger (like cart value or items added) instead, or pair with a Product Page rule. - Two campaigns target the same page and race each other. If two popups match the cart page, the same shopper sees two popups in a row. Pick one campaign per page (or stagger with frequency caps).
- A "specific collection" rule isn't matching. URL Pattern presets depend on the collection's handle, not its display name. A collection called "Sale" might have a handle of
sale-2026— verify the handle in Products → Collections in your Shopify admin.
Frequently asked questions
Can I show a popup on every page except checkout?
Yes — but you build it from inclusion, not exclusion. Add a page rule for each page type you want (Home Page, Product Page, Collection Page, Cart Page, Blog Page, and so on). The popup fires on those and skips Checkout Page because you didn't include it. Nudgesmart allow-lists pages; it doesn't have an "exclude" rule.
How do I target one specific product?
Switch the page rule to URL Pattern and pick Specific Product, then enter the product's handle (the slug at the end of the URL — for example, blue-cotton-tee from /products/blue-cotton-tee).
Will my popup fire on the homepage if my homepage URL is /?
Yes. The Home Page page type and the Homepage URL Pattern preset both match the root storefront URL. Pick whichever feels clearer.
Can I target a popup to a custom landing page?
Yes. Most landing pages live under /landing/ or /promo/, and Nudgesmart has presets for both. If your landing page sits somewhere else (like /pages/black-friday), check whether one of the existing presets covers it, or use a Page Type rule.
Does page targeting work with behavior triggers like exit intent?
Yes — they layer. Page rules decide where the popup is allowed to fire; behavior triggers decide when. A typical setup: page rule = Product Page, behavior trigger = Exit Intent. The popup never fires off product pages, and on product pages it only fires when the shopper is about to leave.