Platforms

How to Add a Popup to an Ecwid Store

Ecwid puts a real store on almost any website — but it does not bring an email popup with it. The fix is one script tag, and the only genuinely tricky part is knowing which site it belongs to. Here is where it goes, what to run once it is live, and the single-page-storefront trap that quietly breaks URL targeting.

📅 Updated August 2026 ⏱ 12 min read ✍️ By ChilliPopup
The ChilliPopup installation code screen showing the one-line pixel to paste into an Ecwid store site

To add a popup to an Ecwid store you paste one script tag into the site that hosts your storefront — the host website if Ecwid is embedded, or the custom-code field in your Ecwid control panel if you run an Instant Site — and then build the popup itself in a separate editor. Ecwid handles catalogue, cart and checkout; the marketing layer on top of it is yours to add.

That split is the thing worth understanding before you start. Ecwid is unusual among ecommerce platforms because your storefront may not live on a domain Ecwid controls at all. Get the paste location right and everything else is ordinary popup work.

Key Takeaways

  • One paste, on the host site. The script belongs in the <head> of whatever site renders your storefront, not inside a product description.
  • Ecwid has no popup targeting of its own — no exit intent, no new-versus-returning rule, no signup conversion rate.
  • The storefront is a single-page widget. Display rules are read once, when the page loads, so URL targeting matches the page the visitor arrived on.
  • A small catalogue changes the offer, not the mechanics. Restock alerts and first-order discounts beat generic "join our newsletter".
  • Coupons stay in Ecwid. The popup collects the email and reveals a code you created in Ecwid; nothing needs to sync.

What Ecwid gives you, and what it does not

Ecwid is a storefront you drop into a site you already have. That is its whole appeal, and it is also why the list below looks the way it does — the store is complete, the visitor-marketing layer around it is not.

Capability Ecwid on its own With a popup script
Catalogue, cart, checkout, discount codesYesUnchanged — Ecwid still owns all of it
Collect emails before someone buysOnly at checkoutYes, on any page, at a moment you choose
Trigger on exit intent, scroll, delay or inactivityNoYes
Show only to new or returning visitorsNoYes, with your own definition in days
Stop showing to people who already signed upNoYes, one switch
Conversion reporting for a signupNoViews, submissions, conversion rate, per campaign
Surveys, quizzes and prize gamesNoYes, from the same script tag

The gap that costs the most money is the second row. On a small store, most visitors arrive from a link, look at one or two products and leave without buying. If the only place you can capture an address is checkout, you are collecting email addresses exclusively from people who already gave you money — which is the smallest and least useful slice of your traffic.


Where the popup script goes on Ecwid

Ecwid stores come in two shapes, and the paste location follows the shape. Work out which one you have before you touch anything.

Where the popup script goes on Ecwid: into the host site's head when the storefront is embedded, or into the Ecwid control panel's custom code field when you use an Instant Site

Same snippet, two homes. The rule is simple: it goes wherever the page your customer loads is built.

Shape one: Ecwid embedded in a site you own

Your storefront sits inside a WordPress, Wix, Squarespace or hand-built page. The browser loads your site, and Ecwid renders the catalogue into it. The popup script therefore belongs in your site's <head>, installed exactly the way you would install any analytics tag — through your theme, a header-scripts plugin, or your site builder's custom-code panel. Our install guide for any website covers the generic case, and there are dedicated guides for WordPress, Wix and Squarespace.

Shape two: an Ecwid Instant Site

Ecwid hosts the whole site for you. In this case the script has to go in through the Ecwid control panel — look for the settings section that accepts tracking or custom code for the storefront, which is where analytics snippets go. Menu labels move between Ecwid releases, so search the control panel for "tracking" or "custom code" rather than following a screenshot from a blog post.

1

In ChilliPopup, open Installation Code in the left sidebar and choose Any Website. Copy the snippet — your workspace id is already baked into it.

2

Paste it into the site that hosts your storefront, immediately before </head> — the host site's header for an embedded store, or the custom code field in the Ecwid control panel for an Instant Site.

3

Save, then open your live store in a private window. Publish a popup and it appears without you touching Ecwid again — the same script serves every popup, form, survey, quiz and prize game you build from now on.

Paste just above </head> on the site that hosts your Ecwid storefront
<script id="chillipopup-pixel"
  src="https://player.chillipopup.com/javascript/pixel.js?id=YOUR_WORKSPACE_ID"
  data-api="https://api.chillipopup.com"
  async="true"></script>

Do not paste it into a product description. It is tempting, because product descriptions accept HTML. But the script would then load only on that one product, sometimes twice, and disappear the moment you edit the description. One paste, at site level, once.

Choosing a popup template for an Ecwid store in the ChilliPopup template picker

Start from a template, or describe the popup you want and edit the result block by block until it matches your store.


The single-page storefront trap

This is the one Ecwid-specific thing that trips people up, and it is worth two minutes of your attention because the symptom looks like a broken popup rather than a rules problem.

An Ecwid storefront is a JavaScript widget. When a visitor moves from your category listing to a product, the URL changes but the browser usually does not load a new page. Display rules — page targeting, triggers, the page-count rule — are read once, when the page first loads. So a rule that says "only show on URLs containing /products/" is asking a question about the address the visitor arrived at, not the one showing in the bar three clicks later.

On an Ecwid storefront the URL changes without a page load, so popup page targeting is evaluated against the URL the visitor first arrived on

The rules are read at load. Browsing inside the storefront does not re-run them.

Three ways to work with that instead of against it:

Rule of thumb for Ecwid. If a popup should appear somewhere in the store, use a trigger. If it should appear only on one landing page, use URL targeting and check it in a private window with that page loaded directly.


Six popups worth running on an Ecwid store

Ecwid stores skew small and specific: a maker, a local shop, a side business with forty products. The mechanics below are identical to any store; the offers are chosen for a short catalogue and a modest traffic number.

1. First-order discount, on exit intent

"Before you go — 10% off your first order. Enter your email and the code is yours." Create the coupon in Ecwid, put the code on the popup's thank-you screen, and let Ecwid validate it at checkout. One email field, one button, one visible "No thanks" link.

2. Restock and drop alerts

On a small catalogue, sold out is common and painful. A popup that offers to tell someone when an item returns turns a dead end into a list — and the list tells you what to make next. Our back-in-stock popup guide covers how to identify the product without any inventory integration.

3. Free-shipping threshold reminder

A small bar or corner popup carrying the one number people actually care about. Keep it quiet, keep it accurate, and never let it cover the add-to-cart button on a phone.

4. A one-question quiz that segments the list

Three or four tappable options — what they shop for, what size, which category. One tap gives you a clean value you can segment on later, which a free-text field never will. See the quiz builder for the shape.

5. A spin-to-win wheel on high-traffic days

A prize game earns attention that a plain form does not, which is why it suits sale weekends and launch days. The outcome is decided server-side, so nobody can rig a win from the browser.

6. A post-purchase question on the thank-you page

One question, on the page where the visitor is happiest: "How did you hear about us?" or "What almost stopped you buying?" That is genuinely the only place the first question is worth asking — anywhere earlier it is pure friction.

Run one popup at a time. Two campaigns competing on the same page is the fastest way to make a small store feel spammy. Pick the single most valuable ask, and add the second only once the first has numbers you trust.


A worked example: a forty-product ceramics shop

Ecwid embedded in a WordPress site. Around 3,000 visits a month, mostly from Instagram, and a catalogue where half the items are sold out at any moment. Here is the whole setup.

Campaign Trigger Audience & frequency The ask
Drop list Exit intent on desktop, 50% page scroll on mobile New visitors, once every 7 days, off after conversion Email only — "Hear about the next kiln opening first"
Sold-out capture Time delay, 6 seconds Everyone, once a day, off after conversion Email + which piece they wanted
Post-purchase question Time delay, 4 seconds, targeted at the order-confirmation URL Everyone, every visit One choice question: where they found the shop

Three campaigns, one script tag, no Ecwid changes after the first paste. The drop list is the one that compounds: every sold-out product that used to be a dead end now adds a name to the launch email that sells the next batch out in a day.

Give your Ecwid store an email list

Popups, forms, surveys, quizzes and prize games from one editor — and one script tag. Free plan, no credit card required. Paid plans from $29/month.

Start free →

Ecwid gotchas worth knowing


Five mistakes that flatten a small store's popup

  1. Firing instantly on mobile. A popup that lands before the first product image does is an intrusive interstitial — bad for the visitor and a real SEO risk on mobile.
  2. Asking for four fields. On a store this size, one field converts and four do not. Name, phone and birthday can be collected later, once you have delivered something.
  3. Leaving "show again after conversion" on. Your subscribers keep meeting the signup popup forever, which reads as a shop that does not recognise its own customers.
  4. Offering a discount you cannot afford. On handmade goods, 20% off is often the margin. Early access, a restock alert or a free sample can be worth more to the visitor and cost you less.
  5. Never opening the analytics. Two weeks of data tells you whether the offer or the timing is wrong. Guessing tells you nothing.

How to tell whether it worked

Ecwid reports orders. The popup reports its own funnel, and you need both to judge it.

The ChilliPopup analytics dashboard showing views, clicks, submissions and conversion rate for a popup running on an Ecwid store

Views, submissions and conversion rate per campaign — the reporting an Ecwid storefront does not have on its own.

Give it two weeks, change one thing, give it two more. If you want a structured way to compare two versions, the A/B testing guide covers what is actually worth testing on low traffic — which is far less than most people assume.

Related reading

Frequently asked questions

Does Ecwid have a popup feature?

Ecwid gives you the storefront, the cart and the checkout, but it does not include a targeted email popup builder — there is no exit-intent trigger, no new-versus-returning visitor rule and no conversion reporting for a signup. You add those with a small script tag that runs on whichever site hosts your storefront.

Where do I paste a popup script on Ecwid?

It depends on where your storefront lives. If Ecwid is embedded in a WordPress, Wix or Squarespace site, the script goes into that site's head, exactly like an analytics tag. If you use an Ecwid Instant Site, paste it into the custom code or tracking field in the Ecwid control panel so it loads on every storefront page.

Will a popup slow my Ecwid store down?

Not measurably. The ChilliPopup pixel loads asynchronously, so the browser never waits for it before rendering your catalogue. It is one small request that runs after your storefront has painted.

Why does my popup show on the wrong Ecwid page?

Because an Ecwid storefront is a JavaScript widget: moving from a category to a product often changes the URL without a full page load, and display rules are evaluated once when the page first loads. Target the page the visitor arrives on, not the one they browse to, or drop URL targeting and use a trigger instead.

Can I run a discount popup on Ecwid?

Yes. Create the discount coupon in Ecwid, then build a popup that reveals that code on its thank-you screen once someone enters an email. The popup collects the address and shows the code; Ecwid validates it at checkout as it would for any other coupon.

Do popups hurt SEO on an Ecwid store?

Not when they behave. Google penalises intrusive interstitials that cover the content a mobile visitor arrived for. A popup that waits for exit intent or a scroll depth, closes easily and does not fire immediately on a mobile landing page is fine.