Use a coupon code announcement bar when you want every shopper to see and use a public discount right away, without stopping to fill out a form. Use an email popup when the coupon is a welcome offer in exchange for an email address. Both formats can show a coupon code on your Shopify store, but they solve different problems and carry different margin costs.
This guide compares a promo code banner and an email popup side by side, shows how each affects your profit per order, and walks through how to set up either option in Shopify. For how bars and popups fit with recent order notifications and stock alerts, see our social proof guide for Shopify.
Announcement bar or popup: how do they compare for coupon codes?
The core trade-off is visibility versus lead capture. A coupon code announcement bar sits at the top or bottom of the page for everyone to see, while an email popup holds the code behind a sign-up form.
| Feature | Coupon code announcement bar | Email discount popup |
|---|---|---|
| Primary goal | Drive immediate checkout during a sale | Grow your email list from new visitors |
| Who sees the code | Every visitor on the page right away | Only visitors who submit the form |
| Browsing friction | Low; sits at the top or bottom edge | Medium; opens over the page or in a corner |
| How shoppers get the code | Read, click to copy, or click a link to apply | Revealed on the After Submit screen (and by email) |
| Margin impact | Higher, because returning buyers also see the code | Lower, if limited to one use per new subscriber |
| Mobile footprint | Thin horizontal strip | Centered modal (or floating launcher button) |
Neither format replaces the other. Stores often switch between them depending on the calendar: an email popup during regular weeks to build the list, and a promo code banner during store-wide sales when speed to checkout matters most.
When should you use a coupon code announcement bar?
A coupon code announcement bar works best when your offer is public and you want as many visitors as possible to use it today. Because the bar never covers the product photo or the Add to Cart button, shoppers can keep browsing with the code in view on every page.
Use an announcement bar to show a coupon code on site in these situations:
- Store-wide or seasonal sales. During a weekend promo, holiday event, or clearance sale, hiding the sale code behind a popup adds an unnecessary step. Every visitor—including email subscribers who clicked through from a campaign—needs the code in plain sight.
- Collection promotions. When a code applies to one collection, a bar with a direct button to that collection sends shoppers straight to the eligible items.
- Spend-threshold offers. Promotions like “$15 off orders over $100 with code SAVE15” help shoppers plan their cart as they browse.
- Mobile-heavy traffic. Google’s search guidance advises against intrusive interstitials that obstruct content and recommends using a small banner that takes up a fraction of the screen instead (Google Search Central). A top or bottom promo bar stays out of the way on phones.
If you need copy examples for seasonal sales, thresholds, or launches, see our announcement bar ideas for Shopify.
When should you show a coupon code in an email popup instead?
An email popup is the better choice when the discount is a trade, not a broadcast. Most first-time visitors leave without buying; giving away a discount in a public bar lets them leave with nothing captured, while a popup gives you permission to follow up by email.
Use a popup for your coupon code when:
- You are running an evergreen welcome offer. A “10% off your first order” code should not sit in a permanent top bar where repeat customers use it on every order. Showing it on the popup’s After Submit screen keeps the offer tied to signing up.
- You want to wait for engagement. Unlike a bar that loads immediately, a popup can wait until a visitor has spent several seconds on the page, scrolled down a product page, or moved their cursor toward the browser bar on desktop (exit intent).
- You want to follow up by email. When sign-ups sync to Shopify Customers or a Klaviyo list, your welcome email can remind the shopper of their code if they do not buy in the first session.
To compare percentage discounts, free shipping, and free gifts for a sign-up form, read our guide to email popup discount offers.
How does showing a coupon code on site affect your margins?
Where you place a coupon code changes how many orders use it—including orders that would have happened at full price.
Consider a hypothetical example where 100 shoppers are ready to buy an $80 item at full price today:
- In a public announcement bar: Every shopper sees the code at the top of the cart and product pages. Most of those 100 ready-to-buy shoppers will copy or click the code, so you give up the discount on nearly every order during the promo window.
- In an exit-intent or delayed email popup: Shoppers who head straight to checkout or who already subscribe are less likely to trigger or fill out the form. Only visitors who pause, trigger the popup, and enter an email see the code on the confirmation screen.
To protect your margin in either format, set rules on the code in Shopify Discounts first (Shopify Help Center):
- Limit to one use per customer so a welcome or single-sale code cannot be reused.
- Set a minimum purchase amount to protect your margin on small carts.
- Restrict the code to specific collections or products to exclude low-margin items.
- Set an exact end date and time so sale codes expire on schedule.
If every shopper qualifies for a public sale and you do not need them to type a code, an automatic discount applies in the cart on its own. Our comparison of automatic discounts vs discount codes explains when to use each.
How do you set up a promo code banner or popup on Shopify?
You can show a coupon code on site using your theme’s built-in announcement bar, or with an app that includes both a promo bar and an email popup.
Option 1: Your Shopify theme’s built-in announcement bar
Most Shopify themes include an announcement bar in the theme editor. Go to Online Store > Themes, click Edit theme, select Announcement bar, click Add Announcement, enter your text, and add an optional link (Shopify Help Center).
A theme bar displays plain text and a link—it does not have a click-to-copy coupon badge or a countdown timer. To make the link apply your discount code automatically:
- In your Shopify admin, go to Discounts, click your discount code, and click Promote > Get a shareable link (Shopify Help Center).
- Append a redirect parameter to send shoppers to a sale page, such as
/discount/CODE?redirect=/collections/sale. - Paste that link into the announcement bar’s Link field and save.
Option 2: Promo Bar and Email Popup in Sam FOMO
If you want a click-to-copy coupon box, an optional countdown timer, or an email popup in one app, Sam FOMO includes both modules. It is free to install and rated 4.6★ from 17 reviews on the Shopify App Store (Oct 2026).
First, install the app and turn on the app embed in your theme (install guide).
To set up a Promo Bar with a coupon code:
- Open Notifications, click Create notification, scroll to Promotions, and click Add on Promo Bar.
- Under Bar, choose Top bar (all pages) or Bottom bar (all pages) and write your message.
- Open Button & coupon. Add button text and a link, then check Show coupon code so shoppers can click the code to copy it.
- Under Coupon code type, choose Use Shopify Discounts code to pick an active code from your store (which hides the code automatically when the discount ends or is turned off), or choose Custom code to type one manually.
- Check Apply the code when shoppers click the button (when linking to a store page) so clicking opens
/discount/CODEand applies the discount at checkout. - Set page, device, and product exclusions under Visibility, adjust Colors, and click Save (promo bar guide). For a full timer setup, see how to add an announcement bar with a countdown and coupon code.
To set up an Email Popup with a coupon code:
- Open Popups and click Create popup.
- On Content & Design, pick a template, fill in the headline and form fields under Content, and scroll to After Submit.
- Check Show coupon code, choose Use Shopify Discounts code or Custom code, and select or enter the code shown on the confirmation screen after sign-up.
- Optionally turn on Show Floating Button so visitors who close the popup can reopen it from a small launcher badge.
- On Triggers & Placement, choose the position (Center, Bottom left, or Bottom right on desktop; centered on mobile), pick the trigger (After delay, On scroll, or On exit intent on desktop), and set page and device targeting (email popup guide).
Can you run an announcement bar and a popup at the same time?
Yes, as long as they do not pitch two competing coupon codes on the same page. Seeing AUTUMN15 in the top bar and WELCOME10 in a popup five seconds later makes shoppers pause to wonder which code is better or whether they stack.
Follow three rules when running both:
- Give only one of them a coupon code. Pair a non-code announcement bar—such as a free shipping threshold or shipping cutoff—with a first-order coupon code in the email popup.
- Pause the welcome discount popup during store-wide sales. If your promo bar offers 25% off everything with a public code, pause the 10% off welcome popup or switch it to collect emails for restock and launch alerts without a competing code.
- Exclude the cart page from your email popup. Under Targeting, exclude the cart page so shoppers who already copied a bar code are not interrupted before checkout. See our email popup setup guide for more targeting tips.
How do you test which format works better for your store?
Compare a promo code banner and an email popup by what each leaves you in profit and subscribers, not just how many times the code was used.
- Check redemptions in Shopify Discounts. Look at total orders and total sales using the announcement bar code versus the popup code over comparable time windows.
- Compare clicks and impressions. In Sam FOMO, open Analytics to see Impressions, Visitors, Clicks, and Click-through rate, and check Performance by popup type for the mobile and desktop breakdown (analytics guide).
- Check subscriber growth under Popups > Subscribers. Count how many new email sign-ups the popup collected and how many of those subscribers placed an order later through your welcome emails.
- Watch customer support questions. If shoppers message you asking where to find the code they saw earlier, either turn on the popup’s Floating Button so they can reopen the offer, or move time-sensitive sale codes into a persistent announcement bar.
Frequently asked questions
Should I put my coupon code in an announcement bar or a popup?
Match the format to what you want in return. Put the code in an announcement bar when the goal is immediate orders from a public sale and you want zero friction. Put the code in an email popup when the discount is a welcome offer in exchange for an email sign-up.
Does a coupon code announcement bar hurt mobile SEO?
A thin banner at the top or bottom of the screen takes up only a small fraction of the viewport and lets shoppers read the page right away. Google Search Central advises avoiding full-page intrusive interstitials that obstruct content and recommends small banners instead.
Can shoppers copy or auto-apply a coupon code from an announcement bar?
In a built-in Shopify theme announcement bar, you can type the code as plain text and link the bar to a Shopify shareable discount link (/discount/CODE) so the discount applies on click. With an app such as Sam FOMO's Promo Bar, shoppers can click the code badge to copy it or click the button to apply the code to checkout.
What happens if I show a coupon code in both a bar and an email popup?
Showing two different discount codes at the same time confuses shoppers about which offer is better and whether they stack. If you run both, give each a clear, separate role—for example, a free shipping threshold in the announcement bar and a first-order discount code in the email popup.
Sources
Part of our guide: Social proof →