Z O B A E R

Loading

Guide Shopify guide

Shopify Newsletter Popup: 2 Free Ways + EU Consent Tips

Two free ways to add a Shopify newsletter popup: Shopify Forms or tested no-app code, plus EU and US consent rules and a welcome discount email.
Zobaer Hossain
Zobaer H.Shopify Select Partner · 10+ years
Shopify newsletter popup: free email popup setup with Shopify Forms or no-app code, guide by Zobaer H.

A Shopify newsletter popup asks new visitors for their email, often in return for a small discount. Done well, it grows your list without annoying anyone. Done badly, it covers the page on a phone and can break EU consent rules. Your theme can’t show one on its own, but you don’t need a paid app.

In this guide I show you two free ways to add a Shopify newsletter popup: the Shopify Forms logo Shopify Forms app, and a small piece of code I tested on Dawn and Horizon. I have set this up on many client stores. This is general information, not legal advice.

Here is what you will learn:

  • What Dawn and Horizon can and can’t do without an app.
  • How to build an email popup with Shopify Forms in five steps.
  • A tested no-app email popup you can paste into your theme.
  • How to keep it friendly on phones, in line with Google logo Google’s advice.
  • Consent rules for the EU, the UK and the US, plus double opt-in.
  • How to send the welcome discount with Shopify Messaging logo Shopify Messaging.

Does Shopify have a newsletter popup built in?

No. Shopify’s free themes have a signup form you place on the page, but no Shopify newsletter popup that opens by itself. I checked both themes’ source code to be sure.

  • Dawn has an Email signup section, an Email signup banner section, and an Email signup option in the footer.
  • Horizon has an Email signup section and block, plus a Popup link block. You can put an Email signup block inside that popup, but it only opens when a shopper clicks the link.

So for an email popup that opens by itself, you have two free choices: Shopify’s Forms app, or a little code. Both send new subscribers to Customers, in the Email subscribers segment.

Way 1: Build a Shopify newsletter popup with Shopify Forms

Shopify Forms is Shopify’s own free app for popup and inline signup forms. It isn’t installed by default. On the Shopify App Store it has 4.5 stars from 786 ratings, as of November 26, 2026. Shopify’s guide to creating forms in the Shopify Forms app has the full reference.

Step 1: Install Forms and turn on the app embed

Install Shopify Forms from the App Store. Then go to Online Store, click Edit theme, and click the App embeds icon. Turn on the Forms toggle and click Save. Without this, no popup form shows on your store.

Step 2: Create a popup form

Go to Apps, then Forms, and click Create form. Select Popup form, name it, and click Create. Then pick how it looks:

  • Floating: a box in the spot you choose, while the page stays usable.
  • Overlay: the form in the middle, with a color laid over the rest of the page.

For phones, I pick Floating. The Google section below explains why.

Step 3: Write the offer and set consent

In the Form section, keep your signup form short. The title allows 50 characters, the text 100, and the button label 25. Under Marketing consent, you get three choices:

  • On form submission signs people up when they submit.
  • On form submission if a box is checked adds a checkbox they must tick.
  • Don’t subscribe customers to marketing is for contact forms.

In Consent disclaimer, say they will get marketing emails and link your privacy policy. To offer a code, pick it in the Discount setting of the Success section. Shoppers see it after they sign up.

Step 4: Choose when the email popup appears

In Behavior, Devices sets all devices, desktop only or mobile only. Pages limits it to page types, such as product pages. Trigger shows it on the first, second or third page view, right away or after a delay. You can also tick Show form when visitors attempt to leave page (Desktop only).

The Teaser is a small pop-up that opens the form when clicked. With Show set to Never, a shopper who closes it can’t get it back.

Step 5: Preview and turn it on

New forms start as Inactive. Check the preview, then click Turn form on. It is now live. You can run up to 25 forms per store.

Shopify newsletter popup in the Shopify Forms editor: popup display, marketing consent, discount and trigger settings
An illustration of the Forms editor: display, consent, discount and trigger.

Way 2: A no-app Shopify newsletter popup (tested code)

If you don’t want another app, this code adds a small email popup to every page except the cart. It uses Shopify’s own customer form, so people land in Email subscribers just like with the footer form. I tested it on Dawn and Horizon at 360, 390 and 1280 pixels wide.

Here is what it does:

  • Opens after 8 seconds or 40% of the page scrolled, whichever comes first.
  • Shows once per visitor, then stays hidden for 30 days.
  • Never shows again after someone subscribes.
  • Sits in a corner on desktop and as a short bottom bar on phones.
  • Closes with the X or the Esc key, and moves keyboard focus to the X.
  • Adds no layout shift (the test measured zero).

Step 1: Add a Custom Liquid section to the footer

  1. Go to Online Store and click Edit theme on your current theme.
  2. In the Footer group, click Add section and choose Custom Liquid (Dawn) or Custom liquid (Horizon).
  3. In Dawn, set both Top and Bottom padding to 0. Otherwise the empty section adds a gap above your footer. Horizon starts at 0.

The footer shows on every page, so the popup does too.

Step 2: Paste the code and change the text

Paste this into the Liquid code box and click Save. Change the six lines at the top to set your heading, text, button, delay, scroll point and days.

{%- liquid
  assign popup_heading = 'Get 10% off your first order'
  assign popup_text = 'Join our emails for new arrivals and offers. Unsubscribe anytime.'
  assign popup_button = 'Subscribe'
  assign popup_delay = 8
  assign popup_scroll = 40
  assign popup_days = 30
-%}
{%- unless template.name == 'cart' -%}
{%- form 'customer', id: 'NewsletterPopupForm', class: 'nl-popup__form' -%}
<dialog id="NewsletterPopup" class="nl-popup" aria-labelledby="NewsletterPopupTitle" data-delay="{{ popup_delay }}" data-scroll="{{ popup_scroll }}" data-days="{{ popup_days }}" data-state="{% if form.posted_successfully? %}success{% elsif form.errors %}error{% endif %}">
  <button type="button" class="nl-popup__close" aria-label="Close" autofocus>&times;</button>
  {%- if form.posted_successfully? -%}
    <h2 id="NewsletterPopupTitle" class="nl-popup__title">Thanks for subscribing</h2>
    <p class="nl-popup__text">Check your inbox for your welcome email.</p>
  {%- else -%}
    <h2 id="NewsletterPopupTitle" class="nl-popup__title">{{ popup_heading }}</h2>
    <p class="nl-popup__text">{{ popup_text }}</p>
    <input type="hidden" name="contact[tags]" value="newsletter">
    <label class="nl-popup__label" for="NewsletterPopupEmail">Email</label>
    <div class="nl-popup__row">
      <input id="NewsletterPopupEmail" class="nl-popup__input" type="email" name="contact[email]" autocomplete="email" autocapitalize="off" required{% if form.errors %} aria-invalid="true" aria-describedby="NewsletterPopupError"{% endif %}>
      <button type="submit" class="nl-popup__submit">{{ popup_button }}</button>
    </div>
    {%- if form.errors -%}
      <p id="NewsletterPopupError" class="nl-popup__error" role="alert">{{ form.errors.translated_fields.email | capitalize }} {{ form.errors.messages.email }}</p>
    {%- endif -%}
    <p class="nl-popup__small">By subscribing, you agree to get marketing emails from us.{% if shop.privacy_policy %} <a href="{{ shop.privacy_policy.url }}">Privacy policy</a>{% endif %}</p>
  {%- endif -%}
</dialog>
{%- endform -%}
<style>
  .nl-popup{position:fixed;inset:auto 20px 20px auto;z-index:90;margin:0;width:380px;max-width:calc(100vw - 40px);max-height:calc(100vh - 40px);overflow:auto;padding:24px;border:0;border-radius:12px;background:#fff;color:#111;box-shadow:0 12px 40px rgba(0,0,0,.25);font-family:inherit;font-size:16px;line-height:1.45;text-align:left}
  .nl-popup__title{margin:0 40px 8px 0;font-size:22px;line-height:1.2;color:inherit;letter-spacing:0}
  .nl-popup__text{margin:0 36px 14px 0;font-size:15px}
  .nl-popup__label{display:block;margin:0 0 4px;font-size:14px;font-weight:600}
  .nl-popup__row{display:flex;gap:8px}
  .nl-popup__input{flex:1;min-width:0;height:46px;padding:0 12px;border:1px solid #767676;border-radius:6px;background:#fff;color:#111;font:inherit;font-size:16px}
  .nl-popup__submit{height:46px;padding:0 18px;border:0;border-radius:6px;background:#111;color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
  .nl-popup__close{position:absolute;top:4px;right:4px;width:44px;height:44px;padding:0;border:0;background:none;color:inherit;font-size:28px;line-height:1;cursor:pointer}
  .nl-popup__error{margin:8px 0 0;color:#b00020;font-size:14px}
  .nl-popup__small{margin:10px 0 0;font-size:12px;color:#555}
  .nl-popup__small a{color:inherit;text-decoration:underline}
  .nl-popup :focus-visible{outline:2px solid #111;outline-offset:2px}
  @media (max-width:749px){
    .nl-popup{inset:auto 0 0 0;width:100%;max-width:100%;max-height:60vh;padding:18px 16px 16px;border-radius:14px 14px 0 0}
    .nl-popup__title{font-size:19px}
    .nl-popup__text{margin-bottom:10px;font-size:14px}
  }
  @media (prefers-reduced-motion:no-preference){.nl-popup[open]{animation:nl-popup-in .25s ease-out}}
  @keyframes nl-popup-in{from{opacity:0;transform:translateY(16px)}}
</style>
<script>
  (function () {
    var d = document.getElementById('NewsletterPopup');
    if (!d || typeof d.show !== 'function') return;
    var KEY = 'newsletterPopup';
    function get(s, k) { try { return window[s].getItem(k); } catch (e) { return null; } }
    function set(s, k, v) { try { window[s].setItem(k, v); } catch (e) {} }
    function open() { if (!d.open) d.show(); }
    d.querySelector('.nl-popup__close').addEventListener('click', function () { d.close(); });
    document.addEventListener('keydown', function (e) { if (e.key === 'Escape' && d.open) d.close(); });
    document.addEventListener('click', function (e) {
      var a = e.target.closest && e.target.closest('a[href$="#newsletter"]');
      if (a) { e.preventDefault(); open(); }
    });
    var form = document.getElementById('NewsletterPopupForm');
    if (form) form.addEventListener('submit', function () { set('sessionStorage', KEY + 'Sent', '1'); });
    var sent = get('sessionStorage', KEY + 'Sent') === '1';
    set('sessionStorage', KEY + 'Sent', '');
    if (d.dataset.state === 'success') set('localStorage', KEY, 'subscribed');
    if (d.dataset.state && sent) { open(); return; }
    if (location.hash === '#newsletter') { open(); return; }
    if (window.Shopify && Shopify.designMode) return;
    var seen = get('localStorage', KEY);
    if (seen === 'subscribed') return;
    if (seen && Number(seen) + Number(d.dataset.days) * 86400000 > Date.now()) return;
    var timer;
    function trigger() {
      clearTimeout(timer);
      window.removeEventListener('scroll', onScroll);
      set('localStorage', KEY, String(Date.now()));
      open();
    }
    function onScroll() {
      var max = document.documentElement.scrollHeight - window.innerHeight;
      if (max > 0 && window.scrollY * 100 / max >= Number(d.dataset.scroll)) trigger();
    }
    timer = setTimeout(trigger, Number(d.dataset.delay) * 1000);
    window.addEventListener('scroll', onScroll, { passive: true });
  })();
</script>
{%- endunless -%}

The heading promises 10% off, so create that code and add it to your welcome email (see below). No discount? Change the heading.

Step 3: Test it

Open your store in a private window and wait. The popup should appear after 8 seconds. Close it and reload. It should stay hidden. To see it again, use a new private window.

The code skips the theme editor, so it won’t get in your way. Any link that points to #newsletter also opens it, such as a “Join our emails” link in your footer.

Shopify newsletter popup without an app: Custom Liquid section in the footer of the theme editor with padding set to 0
Add a Custom Liquid section to the footer, paste the code, and set padding to 0 in Dawn.

Keep your email popup friendly on phones

Google advises against popups that hide the page. Its guide to avoiding intrusive interstitials and dialogs says they can frustrate people and “may lead to poor search performance.” Its advice is simple:

  • Use banners that take up only a small part of the screen.
  • Don’t cover the entire page.
  • Don’t send people to a separate page to sign up.

Legally required popups, like age checks, are exempt. A newsletter offer is not.

That is why my Shopify newsletter popup code uses a bottom bar on phones. In my test it covered 36% of a 360 by 640 screen and 25% of a 390 by 844 screen. In Shopify Forms, Floating is the closer match.

Email popup on a phone: a full-screen popup that blocks the page next to a small bottom bar that keeps the page visible
Left: a full-screen popup on page load. Right: a small bar after the visitor reads for a bit.

Consent rules for your signup form in the EU, UK and US

In short: in the EU and the UK, you need clear, active consent before you send marketing emails. In the US, every email must be honest and have a working unsubscribe link. Ask a lawyer if you are unsure which rules apply.

EU and UK: get clear consent

Under the EU’s GDPR, consent must be “freely given, specific, informed and unambiguous,” shown by a “clear affirmative action.” “Silence, pre-ticked boxes or inactivity” don’t count. The request also should not be “unnecessarily disruptive,” a good rule for popups.

You must be able to prove consent, and leaving must be as easy as joining. The EU’s ePrivacy Directive asks for prior consent for marketing emails. In the UK, the ICO says the “soft opt-in” covers past customers only, not new contacts like popup signups.

In practice:

  • Say clearly on the signup form that people are joining your marketing emails.
  • Never pre-tick a consent box.
  • Link your privacy policy.
  • Handle tracking consent separately, with a cookie banner. See my Shopify cookie banner guide.

Turn on double opt-in in Shopify

With double opt-in, new subscribers click a link in a confirmation email before they get marketing. Shopify notes that some countries require it by law, and calls it a best practice in general.

  1. Go to Settings, then Notifications.
  2. Click Customer notifications.
  3. In the Marketing double opt-in section, select Customer marketing confirmation.

Shopify sends the confirmation email when someone subscribes in your online store. Keep marketing out of that email. People who subscribed before you turned it on don’t have to confirm. If your store is based in Germany, Shopify shows an extra Require customers to confirm their subscription checkbox.

Then change your thank-you text to “Check your email to confirm.” In the code, edit the line under Thanks for subscribing.

US: follow CAN-SPAM in every email

The US CAN-SPAM Act is about the emails you send. According to the FTC’s compliance guide, each marketing email needs:

  • Honest sender details and a subject line that matches the content.
  • A clear sign that the message is an ad.
  • Your valid physical postal address.
  • A clear way to opt out. You must honor it within 10 business days.

The FTC says each email that breaks the law can cost up to $53,088. For California’s privacy law, see my Shopify CCPA guide.

Shopify newsletter popup consent flow: signup form, double opt-in email, Email subscribers segment and Shopify Messaging welcome discount
From popup to welcome email: confirm first, then send the discount.

Send the welcome discount with Shopify Messaging

Shopify Messaging can email the welcome code as soon as someone subscribes. First, create the code:

  1. Go to Discounts and click Create discount.
  2. Choose Amount off orders, then Discount code as the method.
  3. Enter a code or click Generate code, and set the value.
  4. Under Maximum discount uses, check Limit to one per customer, then save.

Need a code idea? Try my free Shopify discount code generator.

Next, set up the email. Go to Apps, then Messaging, and click Automations. Click Create automation and pick a welcome template:

  • Welcome new subscribers with a discount email sends one email.
  • Welcome new subscribers with a discount series sends the discount, then 2 brand emails, then a reminder if they haven’t bought.

Click Edit email, add your code, and use Send test. Then click Turn on. You need a computer for these templates. Shopify says they send when someone subscribes through a form on your store. Test it with a spare email address.

As of November 2026, Shopify Messaging includes 10,000 free emails a month on the Basic, Grow, Advanced and Plus plans. After that, it costs $1 per 1,000 emails. Welcome emails count toward the free 10,000.

Which way should you use?

For most stores, Shopify Forms is the easiest email popup to start with. Use the code if you want zero apps and full control of the look.

OptionCostOpens by itselfBest for
Theme signup formFreeNoFooter and pages
Horizon Popup linkFreeNo, on clickA “Join” link
Shopify FormsFreeYesMost stores
No-app codeFreeYesNo extra apps
Email platform formsVariesYesStores on that platform

If you already send email with Klaviyo logo Klaviyo, use its own forms instead (popup, flyout, full page, embed or banner). That keeps consent records in one place.

Common Shopify newsletter popup mistakes (and fixes)

Most problems come from timing, size or a missing setting. These are the ones I fix most often.

It appears the moment the page loads

The visitor hasn’t seen a single product yet. Wait a few seconds, or show the email popup on the second page view.

It covers the whole phone screen

Use Floating in Forms, or the bottom bar from the code. Keep the signup form to one email field.

The close button is hard to hit

A tiny grey X frustrates people. Make it at least 44 by 44 pixels and let Esc close it. My Shopify accessibility guide covers more checks like this.

The Shopify newsletter popup is not showing

  • Forms: the Forms app embed is off, or the form is still Inactive.
  • Code: you already saw it in this browser. Use a private window.
  • Another popup app: two tools can clash. Keep one, and turn off the other app’s embed under App embeds.

The welcome code doesn’t work

Check the end date, eligibility and minimum purchase, as in my guide to Shopify discount codes not working. If Messaging emails don’t send at all, the checks in my guide to Shopify abandoned cart emails not sending apply here too.

Frequently asked questions

How do I add an email popup in Shopify?

Install the free Shopify Forms app, turn on its app embed, and create a popup form. Or paste the tested code from this guide into a Custom Liquid section in the footer.

Is there a free email popup for Shopify?

Yes. Shopify Forms is free to install and use, and so is the no-app email popup code in this guide.

Does the Dawn theme have a newsletter popup?

No. Dawn has an Email signup section, an Email signup banner and a footer signup, but no popup. Horizon adds a Popup link block that only opens on click.

How do I disable the newsletter popup on Shopify?

For Shopify Forms, go to Apps, then Forms, and turn the form off. For the code, delete the Custom Liquid section. For other apps, turn off their app embed.

Can I add a discount code to a Shopify popup?

Yes. In Shopify Forms, choose a code in the Discount setting of the Success section. Or send it by email with a Shopify Messaging welcome automation.

Where do Shopify signup form emails go?

To Customers in your admin. People who agree to marketing appear in the Email subscribers segment.

A small, polite Shopify newsletter popup and a quick welcome email are often enough to grow a list that buys. For more free help, see my Shopify tools. If you want someone to set up your popup, consent and welcome emails, I do this in my Shopify store management service. Message me on WhatsApp and I will take a look.

Zobaer Hossain, Shopify designer

Written by Zobaer H.

Shopify Select Partner with 10+ years of experience and 5,000+ clients. I design and build Shopify stores, and I write these guides from real client work.

Shopify Select Partner badge

In this guide

    ★★★★★ 4.9 from 1,350+ client reviews

    Let's start

    Ready to start your store?

    Send me your idea or store link. I'll reply with honest advice and a fixed quote.

    ✓ Free quote✓ Fixed price✓ You own everything