Help

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). One page rule can list several page types, 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).

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

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/sale page
  • New Arrivals — the /collections/new page
  • 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.

Step 4 · Show on several kinds of page

When you choose the moment yourself (I'll choose the moment), your rules sit in three cards:

  • Show to shoppers who match all of these: who sees it, including which pages. Every rule here must match.
  • Only on these days/times (all must match): dates and hours. Every rule here must match too.
  • Show when any of these happens: the moment it appears, such as exit intent or scrolling. Any one of these is enough.

Page rules go in the first card, so every page rule must match. Two separate rules, "Page Type is Product Page" and "Page Type is Cart Page", can never both be true, and the popup never shows. Instead, add one Page Type rule, set it to is any of, and pick every page type you want:

In Show to shoppers who match all of these, add a Page Type rule, choose is any of, and select each page type, for example Product Page and Cart Page.

A few patterns merchants use a lot:

  • Decision-stage popup. Page Type is any of Product Page, Cart Page. Shows anywhere a shopper is deciding.
  • Browse-stage popup. Page Type is any of Home Page, Collection Page. Catches shoppers exploring the store.
  • Sale-only campaign. One URL Pattern rule for Sale Collection, so the popup only shows on /collections/sale.

The rule editor flags rules that can never be true together, and gives you a Fix conflict button (and Remove duplicate when the same rule is in the list twice).

Typing your own page address

When no preset fits, type part of the address into Page address contains, for example /pages/black-friday. The popup shows on any page whose address contains that text. You can paste a full link: Nudgesmart keeps just the page part. Leave it empty to show on all pages.

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.

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:

  1. Visit your homepage — popup should appear or not appear, depending on whether Home Page is in your rules.
  2. Visit a product page — same check.
  3. 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. Save again: Nudgesmart now warns you before saving a campaign that would show everywhere. Page rules take effect on the next storefront page load.
  • Popup never shows after adding two page rules. Page rules must all match. Combine them into one Page Type rule set to is any of (see Step 4).
  • Targeting Cart Page but the popup never shows. Many themes use a cart drawer (a slide-out panel) instead of the /cart page, 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), type that into Page address contains.

Does page targeting work with behavior triggers like exit intent?

Yes, they layer. Page rules (in Show to shoppers who match all of these) decide where the popup is allowed; triggers (in Show when any of these happens) decide when. A typical setup: Page Type = Product Page, trigger = Exit Intent. The popup never fires off product pages, and on product pages it only fires when the shopper is about to leave.