Install Sam free

★ 4.9 (107 reviews) Built for Shopify Free plan available

Guides

Targeting Promo Bars and Notifications to Specific Shopify Pages

TL;DR

A built-in Shopify theme announcement bar lives inside the global header section group and shows on every template. To display a page targeted promo bar, hide offers on excluded products, or trigger popups on specific products and collections, use page visibility and product exclusion rules in an app like Sam FOMO, or place an inline app block on a custom Online Store 2.0 template.

To set up a product specific announcement bar or a page targeted promo bar on Shopify, you have to work around a built-in theme constraint: your theme’s default announcement bar lives inside the global header section group and displays the exact same message on every URL. To control which pages show an offer, use page-type targeting and product exclusions in a promo bar and social proof app, target email popups to specific products or collections, or place an inline section or app block inside a custom Shopify template.

Not every promotion applies to your entire catalog. A clearance discount code should not appear on full-price flagship items, a low stock alert makes no sense on your home page, and an email sign-up modal should never interrupt a shopper on the cart page. This guide explains why Shopify themes broadcast banners globally, maps out which notifications belong on which page types, and walks through configuring page and product targeting in Sam FOMO. For how announcement bars work alongside recent order notifications and scarcity signals, see our social proof guide for Shopify.

Why does a built-in Shopify announcement bar show on every page?

In Shopify’s Online Store 2.0 theme architecture, the page layout is split into two distinct layers: global section groups and page-specific templates (Shopify Developer Docs: Section groups).

Your theme’s base layout file (layout/theme.liquid) renders the header section group (usually sections/header-group.json) at the top of the store and the footer section group at the bottom. Because your theme’s built-in announcement bar sits inside that header section group, any message you type into the announcement bar in the theme editor is shared across every page of your store—from the home page and blog articles to gift cards and excluded brand pages.

Meanwhile, individual page types are controlled by JSON templates such as product.json, collection.json, and cart.json (Shopify Developer Docs: Templates). Sections added inside a template only appear on pages assigned to that template, sitting below the header group rather than above your navigation bar.

That architecture leaves you with three practical ways to run a page targeted promo bar, a category specific banner on Shopify, or product-filtered notifications:

ApproachHow it worksGranularityBest use case
1. App Promo Bar & Notifications with Page / Product RulesRenders at the top/bottom edge or screen corner via a theme app embed, filtered by page type, device, and excluded productsPage type (Home, Product, Collection list, Collection, Cart) + Exclude productsShowing a coupon bar only on shopping pages while hiding it on gift cards or excluded SKUs; running corner popups only where relevant
2. App Email Popup with Specific Product / Collection TargetingRenders as a lightbox modal or corner slide-in with resource-level inclusion or exclusion listsPage type + Specific products, Specific collections, or Exclude specific productsShowing a category-specific discount or lead capture offer only on selected collections or high-margin product pages
3. Custom Online Store 2.0 Template + App Block or Banner SectionDuplicate product.json or collection.json in the theme editor and add an inline banner or Countdown timer app blockAssigned per product or per collection in Shopify AdminPlacing a product-specific deadline timer or announcement block directly inside the layout of a single product or collection

When do you need a product specific announcement bar or page targeted promo bar?

Showing every banner and popup on every page creates two expensive problems: shoppers try to apply discount codes to excluded merchandise, and visitors tune out your widgets before they ever reach a product page.

Four store scenarios call for page-level or product-level targeting:

1. Protecting MAP-restricted, low-margin, or gift card products

If you run a top promo bar announcing "Take 15% off with code SAVE15", shoppers viewing a gift card, a pre-order item, or a third-party brand subject to Minimum Advertised Price (MAP) rules will naturally expect the code to work on that page. Even if you exclude those items in Shopify Admin > Discounts, advertising the code at the top of an excluded product page leads to checkout frustration and support tickets. Using Exclude products hides the promo bar (and any coupon badge) whenever a shopper views those specific product handles.

2. Running a category specific banner or collection promotion

When a promotion only applies to shoppers browsing your catalog—such as a collection sale or a multi-item threshold offer—showing the promo bar on blog posts or policy pages wastes impressions on low-intent readers. Targeting your promo bar to Collection page and Product page (or using an email popup set to Specific collections) keeps the offer in front of active buyers.

3. Keeping the cart page free of exit distractions

On the cart page (/cart), the shopper has already chosen their items. A corner notification that says “Emma in Austin bought Linen Shirt” with a clickable link to another product page can pull the buyer out of the cart before they pay. By contrast, a top promo bar reminding them of a free shipping threshold or a cart-page countdown timer supports checkout completion. For a full breakdown of how to coordinate bars, toasts, and modals across a session, see layering a promo bar, email popup, and sales toast without overload.

4. Matching social proof to the shopper’s stage of research

Different notifications answer different doubts depending on the template:

Shopify templatePrimary shopper questionWidgets to show hereWidgets to hide here
Home page“Is this store active and trustworthy?”Store-wide Promo Bar, Product Reviews popup, or welcome Email PopupLow Stock Alert, Sold Count, inline product timers
Collection list / Collection page“Which products are popular right now?”Promo Bar with sale code/threshold, Recent Sales popup, or collection-targeted Email PopupLow Stock Alert (stock varies by item/variant), Cart Summary
Product page“Should I buy this item today?”Promo Bar (unless product is excluded), Low Stock Alert, Live Visitors, Sold Count, inline Countdown TimerCompeting popups that cover the mobile Add to Cart button
Cart page“Do I qualify for free shipping or a deal before paying?”Promo Bar (free shipping threshold) or Cart page Countdown TimerRecent Sales popups linking to other products, Email Popup modals
Blog page“Is this guide helpful?”Scroll-triggered Email Popup (or corner slide-in)Sales toasts, Low Stock Alert, urgency countdowns

For where each widget should sit on the screen itself, read where to place social proof on a Shopify store.

How does page and product targeting work across Sam FOMO modules?

Sam FOMO is free to install, carries the Built for Shopify badge, and is rated 4.6★ from 17 reviews on the Shopify App Store (Oct 2026). Because the app includes a Promo Bar, 10 other notification types (such as Recent Sales, Low Stock Alert, Live Visitors, and Countdown Timer), and a separate Email Popups module, each tool provides targeting controls matched to how it renders on your storefront.

Here is an exact breakdown of the page, device, product, and collection targeting rules available in each module:

Sam FOMO featureWhere targeting lives in the editorPage-type optionsProduct & collection targetingDevice targeting
Promo BarVisibility sectionAll pages or Specific pages (Home page, Product page, Collection list, Collection page, Cart page)Exclude products (Select products): hides the bar on chosen product pagesDesktop, Mobile
Corner Notifications (Recent Sales, Live Visitors, Recent Visitors, Product Reviews, Sold Count, Cart Notification, Cart Summary, Flashing Tab)Placement > Show on and More placement optionsAll pages or Specific pages (Home page, Product page, Collection list, Collection page, Cart page)Exclude products (Select products): hides popup on those product pages and filters them out of Recent Sales / Cart Notification feedsDesktop, Mobile (plus separate phone edge & offset)
Low Stock AlertPlacement > Show on and More placement optionsProduct page only (other page types are disabled because it reads live product/variant stock)Exclude products (Select products): hides low stock alerts on selected productsDesktop, Mobile
Countdown TimerTimer > Placement and Visibility sectionProduct page (below add to cart), Top bar (all pages), Bottom bar (all pages), Cart page, or Landing page (theme app block); bars also filter by Show on page typesExclude products (Select products); inline block can also be placed on specific templates via Countdown IDDesktop, Mobile
Email PopupsTriggers & Placement > TargetingAll pages, All pages except…, or Specific pages (Home page, Product page, Collection list, Collection page, Cart page, Blog page)Exclude specific products (under All pages except…), or Specific products and Specific collections (under Specific pages)Desktop, Mobile

How do you set up a page-targeted Promo Bar with product exclusions?

First, install Sam FOMO and enable the Sam Boost Sales app embed in your Shopify theme editor (install and enable guide). Then follow these steps from the promo bar guide:

  1. In the Sam FOMO menu, open Notifications, click Create notification, scroll to Promotions, and click Add on Promo Bar.
  2. Open Bar and choose your Placement: Top bar (all pages) or Bottom bar (all pages). (The label says “all pages” to distinguish a full-width viewport bar from an inline block, while the Visibility section below controls which pages actually display it.)
  3. Write your Message (up to 120 characters of visible text), using bold formatting or links as needed.
  4. Optionally open Countdown to enable a timer (Ends at a fixed date & time, Ends every day at midnight, or Per visitor, starts at first visit), and open Button & coupon to add a CTA button (up to 20 characters) or a click-to-copy coupon code (Use Shopify Discounts code or Custom code, with Apply the code when shoppers click the button). For top versus bottom bar trade-offs, see promo bars on Shopify: top, bottom and sticky.
  5. Open Visibility to target the bar:
    • Change Show on from All pages to Specific pages.
    • Click the Search pages field and select the page types where you want the bar to appear: Home page, Product page, Collection list, Collection page, or Cart page. Each selected page type appears as a removable tag.
    • Under Devices, keep both Desktop and Mobile checked, or uncheck one to make the bar device-specific.
    • Under Exclude products, click Select products (or Edit products) to open the Shopify product picker. Select every product page where the promo bar must stay hidden—such as gift cards, wholesale items, or MAP-restricted products.
  6. Open Colors to match your store palette (the editor warns you if text and background contrast drops below 4.5:1), add any store language translations under Translations, and click Save.

How Sam FOMO prevents layout shift on non-targeted pages

A common problem with third-party announcement bars is Cumulative Layout Shift (CLS), where a page loads normally and then jumps downward after JavaScript checks the URL. Google defines a good CLS score as 0.1 or less (web.dev: Cumulative Layout Shift).

Sam FOMO avoids layout shift on both targeted and excluded pages because the Sam Boost Sales Liquid app embed evaluates your Top bar targeting rules—including request.page_type, device media queries (768px breakpoint), and product.handle against your Exclude products list—before the browser paints the page. On eligible pages, it reserves 56px of top body padding on desktop (72px on mobile) immediately; on non-targeted pages or excluded product handles, it reserves 0px so shoppers never see a blank gap or a jumping header.

Note that Sam FOMO displays one bar per screen edge (top or bottom). If you create two top promo bars, the editor warns you that another bar is active on that edge, and the storefront shows only the bar you saved most recently. To run two different targeted bars at the same time—for example, a store-wide free shipping bar on all pages and a collection/product coupon bar—place one at Top bar (all pages) and the second at Bottom bar (all pages).

How do you target a promo popup to specific products or collections?

When you need an offer to appear only on selected collections (such as /collections/winter-coats) or only on a shortlist of individual products, use Sam FOMO’s Email Popups module (email popup guide).

You do not have to run an email popup as a full-screen lightbox: choosing Bottom left (Corner slide-in) or Bottom right (Corner slide-in) turns it into a compact corner promo card on desktop while keeping granular product and collection targeting.

  1. In Sam FOMO, open Popups and click Create popup.
  2. On the Content & Design tab, pick a Template, add your headline and offer details under Content, and configure the After Submit screen with your category-specific or product-specific coupon code (Use Shopify Discounts code or Custom code). To compare gating a code behind a sign-up versus showing it openly in a bar, see coupon code announcement bar vs popup.
  3. Switch to the Triggers & Placement tab:
    • Under Placement, select Bottom left (Corner slide-in), Bottom right (Corner slide-in), or Center (Lightbox modal).
    • Under Display Triggers, choose After delay (1–60 seconds), On scroll (1%–100%), or On exit intent (desktop only). Google Search Central advises avoiding intrusive dialogs that cover the main content immediately on page load (Google Search Central), so a scroll trigger or delay works best on product and collection pages.
  4. Scroll to Targeting and choose your Page visibility mode:
    • To target specific collections (category-specific promo): Select Specific pages, check Collection page, choose the Specific collections radio button, and click Browse collections to pick the exact collections that should trigger the popup.
    • To target specific products: Select Specific pages, check Product page, choose the Specific products radio button, and click Browse products to select the exact items that should show the popup.
    • To show store-wide except on certain pages or products: Select All pages except…, check any page types to skip (such as Cart page), and click Browse products under Exclude specific products.
  5. Click Save.

How do you add a product-specific banner or countdown using Shopify templates?

What if you want two different inline announcement banners or deadline timers on two different groups of products—for example, a pre-order shipping notice on upcoming items and a flash-sale timer on clearance items?

You can combine Shopify’s Online Store 2.0 JSON templates with Sam FOMO’s Countdown timer app block:

  1. Create a Countdown Timer in Sam FOMO. Go to Notifications > Create notification, choose Countdown Timer under Urgency, and set Placement to Product page (below add to cart) or Landing page (theme app block) (urgency and cart guide). Write your Title and Subtitle, set the countdown end time, and click Save. Once saved, an info banner at the top of the editor displays your timer’s Countdown ID.
  2. Create an alternate product or collection template in Shopify. In your Shopify admin, go to Online Store > Themes and click Edit theme. Use the top page selector dropdown to open Products (or Collections) and click Create template (Shopify Developer Docs: Templates). Name it (for example, clearance-promo), basing it on your default template.
  3. Add the app block or custom banner section. Inside your new template, click Add block or Add section > Apps, select the Countdown timer block from Sam FOMO, and paste your Countdown ID into the block settings. (You can also add a theme Rich Text or Custom Liquid banner section right above the product information section in that template.) Click Save.
  4. Assign the template to your target products. In Shopify Admin > Products, open the products that belong to that promotion, scroll to Theme template in the right-hand sidebar, and switch them from Default product to clearance-promo. Only products using that template will display that block.

How do you keep excluded products out of corner sales popups too?

When you exclude a product in Sam FOMO—whether it is a free gift SKU, a $1 warranty add-on, an internal test listing, or a restricted brand—you usually want two things: no popup appearing on that product’s page, and no popup advertising that product on other pages.

In Sam FOMO, the Exclude products setting under Placement > More placement options handles both automatically (design, placement and timing guide):

  1. Open your Recent Sales, Cart Notification, Live Visitors, Sold Count, or Product Reviews notification in Sam FOMO.
  2. Open Placement, choose your Corner and Show on page types, and click More placement options.
  3. Scroll to Exclude products and click Select products.
  4. Pick the products you want to suppress and click Save.

On the storefront, Sam FOMO matches the excluded product handles against both the current URL (window.location.pathname) and the product_link of every item in your synced order or cart feed. When a visitor lands on an excluded product page, the notification stays hidden; when they browse your home page or collections, those excluded products are filtered out of the popup rotation. If you also need to exclude entire categories of orders (such as wholesale, b2b, or test orders), use Exclude orders with these tags and Hide test orders under Content in your Recent Sales settings (recent sales guide).

How do you audit your page targeting rules after publishing?

Before driving paid traffic to a targeted promotion, verify your visibility rules across templates and monitor how they affect your monthly impression budget:

  1. Walk through five URLs in a private browser window. Test your home page (/), an included collection (/collections/...), an included product (/products/...), an excluded product page, and your cart (/cart). Confirm that top promo bars collapse cleanly without leaving blank padding on excluded pages and that corner popups stay silent on the cart page.
  2. Check impression efficiency in Sam FOMO Analytics. Open Analytics in Sam FOMO to review Impressions, Visitors, Clicks, and Click-through rate, and check Performance by popup type for each widget’s close rate and mobile/desktop split (analytics and usage guide).
  3. Preserve your monthly impression limit. Every time a promo bar, notification, or email popup displays on a page, it counts as one impression toward the Monthly impressions counter on the Sam FOMO home page. Restricting product-specific urgency widgets to Product page and hiding sales popups on /cart and /blogs keeps your impressions focused on the pages where shoppers actually convert.

Frequently asked questions

Why does my Shopify theme announcement bar show on every page?

In Shopify Online Store 2.0 themes, the built-in announcement bar lives inside the header section group (typically header-group.json), which is rendered globally by layout/theme.liquid across every template. Changing the text in the theme announcement bar changes it store-wide unless you use an app with page targeting or add a section inside a specific page template.

How do I hide a promo bar or sales popup on specific Shopify products?

In Sam FOMO, open Visibility (for a Promo Bar or Countdown Timer) or Placement > More placement options (for corner notifications), and click Select products under Exclude products. The bar or popup stays hidden whenever a shopper visits those excluded product pages, and order feeds like Recent Sales also exclude those products from being featured on other pages.

Can I target a popup to a single collection or product on Shopify?

Yes. In Sam FOMO's Email Popups module, go to Triggers & Placement > Targeting, set Page visibility to Specific pages, and tick Product page (then choose Specific products) or Collection page (then choose Specific collections). For a Promo Bar or corner notification, you can target by page type—Home page, Product page, Collection list, Collection page, or Cart page—and exclude individual products.

Does hiding a top promo bar on certain pages cause layout shift?

Not when the app checks targeting rules before the first paint. Sam FOMO's Liquid app embed evaluates the promo bar's page type, device, and excluded product rules on the server and only reserves the 56px desktop (72px mobile) top padding on pages where the bar is eligible to appear.

Sources

  1. Shopify Developer Docs: Section groups
  2. Shopify Developer Docs: Templates
  3. Google Search Central: Avoid intrusive interstitials and dialogs
  4. web.dev: Cumulative Layout Shift (CLS)

Part of our guide: Social proof →

Turn store activity into social proof

Install Sam FOMO free and turn on your first sales pop-up in minutes.

Install free on Shopify

★ 4.6 (17 reviews) Built for Shopify Free plan available