A WooCommerce popup is easiest to run as a script tag in your theme’s footer plus a popup tool that handles the design, triggers and signups, so the shop itself stays untouched. The popups that work well on WooCommerce are an email signup with a coupon you create in WooCommerce, popups that point to a product page, and prompts timed to an add to cart or the move to checkout. What a script-tag popup cannot do on WooCommerce is put a product in the cart or change the price at checkout, and that limit shapes the whole plan below.

Key takeaways

  • Launch in order: email signup first, product-link popups second, cart and checkout prompts last, because each step needs the one before it to be working.
  • Create the coupon in WooCommerce first and show the same code in the popup, since the popup displays the code but WooCommerce is what applies it.
  • Point product popups at the product page, where the shopper picks options and adds to cart with your normal WooCommerce button.
  • Measure each popup by views and signups, and use WooCommerce’s own coupon usage count to see whether the code turns into orders.

What a website popup can and cannot do on WooCommerce

A popup loaded by a script tag sees your pages but not your WooCommerce cart, so it can show offers and collect emails, and it hands every purchase back to WooCommerce. Several popup features you may have read about are tied to Shopify, where the popup tool has direct access to the cart and checkout. On WooCommerce, plan around this split:

What you wantWooCommerce with a script tagShopify app only
Email signup with a coupon codeYes, code created in WooCommerceAlso yes
Popup button for a productOpens the product pageAdds the product to the cart
Discounted price at checkoutThe shopper enters your couponApplied automatically
Popup after add to cartYes, after a one-time setupWorks without setup
Show by cart total or cart itemsNot availableAvailable on paid plans
Purchases and revenue per popupNot availableAvailable

Everything in the left column is still a solid popup program. You collect emails, send traffic to the right product, and catch shoppers at the cart, while WooCommerce keeps handling stock, prices and orders exactly as it does now.

Step 1: install the script tag and set the brand

Install once, site-wide, then forget about it. In PopupGenius, for on-brand upsell and email popups on your website, you register your shop’s address and copy one script tag, which goes before the closing body tag on every page. The free plan needs no card. Saving the address also reads your home page’s colors and fonts, so the first draft already looks like your shop.

On WordPress the cleanest homes for the tag are a footer scripts field in your theme’s settings, a Custom HTML block in a block theme’s footer, or a child theme. The guide to adding a WordPress popup without a plugin walks through all three. After pasting, purge any page cache and open the shop in a private window to confirm the tag is in the page.

Step 2: a welcome signup with a WooCommerce coupon

The first popup to run is an email signup that gives a first-order coupon, because it works on every page and it needs no cart setup.

  1. Create the coupon in WooCommerce. Use WooCommerce’s coupon management to set the code, the discount type, an expiry, and a usage limit per customer. A modest first-order offer, such as 10% off with a minimum spend, is a reasonable place to start testing.
  2. Show the same code in the popup. The popup asks for an email and then shows the code with a Copy button. Type the code exactly as you created it, because WooCommerce only accepts codes it knows.
  3. Tell people what they are signing up for. A line such as “Get the code and our weekly new-arrivals email” sets expectations and covers your consent wording.
  4. Pick a calm trigger. A timer of several seconds or a scroll trigger on product and category pages is a fair first test. Keep the popup off the cart and checkout pages, where shoppers have already decided.
  5. Set the frequency. Once per visit, or once every few days, so a shopper who closed it is not asked on every page.

Signups go to a lead list rather than into WooCommerce customers. In PopupGenius they appear on the Leads page, where you can download them as a CSV or have each new signup sent on to another tool through a webhook. Decide which before launch so the welcome email actually goes out.

For when to show this popup and how long to wait, the email popup timing guide applies to WooCommerce as much as anywhere.

A product-link popup shows one or a few products with a button that opens each product’s page. It suits new arrivals, a seasonal edit, or a companion product shown on a related category page.

  • Add the products. On a website account you add products by name, price, page address and image, or import a product feed. Those products can then be dropped into a popup.
  • Target by URL. WooCommerce category and product addresses follow your permalink settings, often /product-category/ and /product/ by default. Use URL rules that start with those paths to show a new-arrivals popup only on category pages, for example.
  • Write a reason, not a discount. “New this week” or “Goes with the jacket you are looking at” gives a reason to click. Because the button opens the product page, the shopper sees sizes, stock and reviews before adding to cart, which suits products with variations.

Example offers to try: a “just landed” popup on category pages with three new products; a “complete the set” popup on one product page pointing to the matching item; a bar along the top of the page announcing a restock with a single link.

Step 4: prompts at add to cart and at checkout

Add-to-cart and checkout prompts need your shop to say what those moments look like, because a script tag cannot see the WooCommerce cart on its own. This is a one-time setup on the Site page.

Add to cart. The most reliable signal is the request WooCommerce makes when a product is added. Shop and category page buttons that add without leaving the page call an address containing wc-ajax=add_to_cart, and entering that text as the request pattern opens the popup only after a successful add. Single product pages in many themes reload the page on add instead; check your theme in the browser’s network panel. The alternative is a CSS selector for your add-to-cart buttons, which fires on the click rather than after the add.

What to show after an add: a link to the accessory or refill that goes with the product, or a reminder of your free-shipping minimum. Remember that the popup cannot add the second item for the shopper, so make the link go straight to that product’s page.

Checkout. Enter your cart page path, /cart/ on a default WooCommerce install, and the popup opens when a shopper arrives there. Or enter a selector for the proceed-to-checkout button: on the first click the popup opens, and when it closes the shopper continues to checkout. Use the inspector in your browser to copy the button’s class from your theme rather than guessing it.

A checkout prompt should answer a last doubt, not add a new one. Your returns window, delivery times, or the reminder to enter the welcome code are better candidates than a second discount.

How to tell whether the plan is working

Read each popup on its own numbers, and change one thing at a time.

  • Views against signups tells you whether the welcome offer and its wording work. If many people see it and few sign up, change the headline or the offer before the trigger.
  • Coupon usage in WooCommerce tells you whether signups turn into orders. WooCommerce records how many times each coupon has been used, so a dedicated popup code gives you a clean count.
  • Clicks from product popups show up as visits to those product pages in your analytics.

When you have two versions of a headline or an offer, run them side by side as an A/B test on views and signups. The A/B testing checklist covers how long to run a test and when a sample is too small to trust; the purchase and revenue parts of it apply only to Shopify stores.

FAQ

Can a popup add a product to the WooCommerce cart?

Not when the popup is loaded by a script tag from outside WordPress, because it has no access to the WooCommerce cart. The button opens the product page instead, where the shopper picks options and uses your own add-to-cart button. For simple products this is one extra click; for products with variations it is often the better flow anyway.

Does the popup apply the discount automatically at WooCommerce checkout?

No. The popup shows the coupon code, and the shopper enters it at checkout, where WooCommerce checks it against the rules you set. Create the coupon before you publish the popup, and test the code once in a real cart to make sure the minimum spend and expiry behave as you expect.

Will a popup conflict with my WooCommerce theme or plugins?

A script tag adds nothing to WordPress itself: no database tables, no settings screens, no PHP running on your server. The popup runs in the visitor’s browser on top of your pages. If something looks off, test with page caching cleared and in a private window first, because a stale cached page is the most common cause.