{"id":25946,"date":"2026-03-02T11:00:00","date_gmt":"2026-03-02T05:30:00","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/?p=25946"},"modified":"2026-02-27T14:07:19","modified_gmt":"2026-02-27T08:37:19","slug":"how-to-add-a-popup-to-a-shopify-store","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/how-to-add-a-popup-to-a-shopify-store\/","title":{"rendered":"How to Add a Popup to a Shopify Store? Simple Guide"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Shopify popups are an effective sales technique to convert shoppers into loyal customers. This guide walks you through how to add a pop-up to a Shopify store in the easiest way possible.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Popular Popups to Add in Shopify<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on your current goal, you can choose a popup that matches your customer&#8217;s journey. Here are the most effective and popular types of popups in Shopify:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Popup Type<\/strong><\/td><td><strong>Core Purpose<\/strong><\/td><td><strong>Best Use Case<\/strong><\/td><\/tr><tr><td>Recent Sales&nbsp;<\/td><td>Build social proof and urgency.<\/td><td>Showing real-time purchases to validate the brand.<\/td><\/tr><tr><td>Discount Code<\/td><td>Drive immediate conversions.<\/td><td>Welcoming new visitors or offering a &#8220;last-minute&#8221; deal.<\/td><\/tr><tr><td>Newsletter \/ Email Signup<\/td><td>Lead generation and list growth.<\/td><td>Offering value (guides, early access) in exchange for contact info.<\/td><\/tr><tr><td>Exit-Intent<\/td><td>Reduce bounce rates.<\/td><td>Triggering a message just as a visitor\u2019s cursor leaves the page.<\/td><\/tr><tr><td>Free Shipping<\/td><td>Increase Average Order Value (AOV).<\/td><td>Highlighting spend thresholds (e.g., &#8220;Spend $10 more for free shipping&#8221;).<\/td><\/tr><tr><td>Announcement<\/td><td>Directing traffic to specific info.<\/td><td>Promoting store-wide sales, restocks, or holiday updates.<\/td><\/tr><tr><td>Cart Abandonment<\/td><td>Recovering lost revenue.<\/td><td>Nudging users to finish checkout before they close the tab.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">While every type listed above has its place in a healthy marketing strategy, sales popups are the most used by Shopify store owners because they provide instant credibility to new visitors.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the rest of this blog, I will show you exactly how to set them up and optimize them for your store like the one below:&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"532\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-popup-sales-example-1024x532.png\" alt=\"Example of How to Add a Popup to a Shopify Store\" class=\"wp-image-25947\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-popup-sales-example-1024x532.png 1024w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-popup-sales-example-300x156.png 300w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-popup-sales-example-768x399.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-popup-sales-example-1536x798.png 1536w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-popup-sales-example.png 1999w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">How to Create a Sales Popup in Shopify via Custom Code&nbsp;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can create a custom code for a sales pop-up and add it to your theme file.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This gives you the freedom to customize the design of the popup but requires developers if you are not a technical person.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow these steps carefully to add a sales popup in Shopify.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Head to your Shopify admin panel, go to <strong>Online Store &gt; Themes &gt; Edit Code<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open <strong>Layout &gt; theme.liquid<\/strong>, then scroll to the very bottom and paste this code right above the <strong>&lt;\/body&gt;<\/strong> tag.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the src URL in the &lt;img&gt; tag with the link to your most popular product image to display it in the pop-up.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;div id=\"simple-sales-popup\" style=\"display: none; position: fixed; bottom: 20px; left: 20px; background: white; border: 1px solid #ddd; padding: 12px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 9999; width: 260px; font-family: sans-serif; align-items: center;\">\n  &lt;div style=\"margin-right: 12px;\">\n    &lt;img src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0533\/2089\/files\/placeholder-images-image_60x60_crop_center.png\" id=\"popup-img\" style=\"width: 50px; height: 50px; border-radius: 4px; object-fit: cover;\">\n  &lt;\/div>\n  &lt;div>\n    &lt;p style=\"margin: 0; font-size: 13px; font-weight: bold; color: #333;\">Someone in &lt;span id=\"popup-city\">New York&lt;\/span>&lt;\/p>\n    &lt;p style=\"margin: 2px 0; font-size: 12px; color: #666;\">purchased &lt;span id=\"popup-item\">a Best Seller&lt;\/span>&lt;\/p>\n    &lt;small style=\"font-size: 10px; color: #999;\">Verified by Shop&lt;\/small>\n  &lt;\/div>\n  &lt;button onclick=\"document.getElementById('simple-sales-popup').style.display='none'\" style=\"position: absolute; top: 5px; right: 5px; background: none; border: none; cursor: pointer; color: #aaa;\">&amp;times;&lt;\/button>\n&lt;\/div>\n\n&lt;script>\n  document.addEventListener(\"DOMContentLoaded\", function() {\n    const popup = document.getElementById('simple-sales-popup');\n    const cities = [\"New York\", \"London\", \"Los Angeles\", \"Chicago\", \"Sydney\", \"Toronto\"];\n    \n    setTimeout(() => {\n      document.getElementById('popup-city').innerText = cities[Math.floor(Math.random() * cities.length)];\n      \n      popup.style.display = 'flex';\n    }, 5000);\n\n    setTimeout(() => {\n      popup.style.display = 'none';\n    }, 12000);\n  });\n&lt;\/script><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save the file and preview it in the frontend, and this is how it will look (simple &amp; basic).<br><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"592\" height=\"174\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-sales-popup-via-code.png\" alt=\"Preview of recent sales popup using Liquid code\" class=\"wp-image-25948\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-sales-popup-via-code.png 592w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/recent-sales-popup-via-code-300x88.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Though adding a popup via code is free of cost, it comes with some fallbacks you must know.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pulling actual, real-time sales data requires connecting to Shopify\u2019s Admin API. This is significantly more complex to code than a basic popup and requires a secure way to handle your store\u2019s private data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This<a href=\"https:\/\/meetanshi.com\/blog\/fake-sales-notifications-shopify\/\"> fake sales notification on Shopify<\/a> can negatively impact your branding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Secondly, when Shopify updates its core Liquid or JavaScript libraries, custom code can stop working or break other parts of your store (like the &#8220;Add to Cart&#8221; button).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps Using the Meetanshi Recent Sales Popup Shopify App<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Instead of handling everything through manual coding, you can use the Meetanshi Recent Sales Popup app, which shows real-time sales popup extracting the data from your recent orders.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1014\" height=\"369\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/meetanshi-recent-sales-popup.png\" alt=\"Meetanshi Recent Sales Popup Shopify App\" class=\"wp-image-25949\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/meetanshi-recent-sales-popup.png 1014w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/meetanshi-recent-sales-popup-300x109.png 300w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/meetanshi-recent-sales-popup-768x279.png 768w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s understand the app working with easy steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Configure the Popup Setting&nbsp;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install the <a href=\"https:\/\/apps.shopify.com\/recent-sales-notifications\" target=\"_blank\" rel=\"noopener\">Meetanshi Recent Sales Popup<\/a> app and enable it in your theme.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From the app dashboard, go to the <strong>Popup behaviour<\/strong> and toggle on <strong>Active<\/strong> Sales Popup. Then configure the data you want to show:<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Orders for specific high-priority products<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Orders placed in the last X days<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The last X number of orders<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"336\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/configure-popup-setting.png\" alt=\"Configure the Popup Setting\u00a0\" class=\"wp-image-25950\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/configure-popup-setting.png 934w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/configure-popup-setting-300x108.png 300w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/configure-popup-setting-768x276.png 768w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">You can also set:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Email pop-up statistics reports every month (Yes\/No)<\/li>\n\n\n\n<li>Popup display timings<\/li>\n\n\n\n<li>Close button actions<\/li>\n\n\n\n<li>Popup page visibility (Homepage, product page, etc.)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Customize Appearance and Set Timing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Click <strong>Style &amp; Appearance <\/strong>to modify the look of the pop-up. Here, you get multiple options to customize the appearance, like:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select pop-up appearance position<\/li>\n\n\n\n<li>Choose a pop-up layout<\/li>\n\n\n\n<li>Add a personalized message with font &amp; size customization\u00a0<\/li>\n\n\n\n<li>&amp; more<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"491\" height=\"321\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/customize-appearance-set-timing-of-popup.png\" alt=\"Customize appearance and set timing of popup\" class=\"wp-image-25951\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/customize-appearance-set-timing-of-popup.png 491w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/customize-appearance-set-timing-of-popup-300x196.png 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Step 3: Save and Preview&nbsp;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can also exclude any products, tags, countries, or specific orders that you don\u2019t want to appear in the pop-up to ensure the notifications stay relevant and accurate.\u00a0<br>Once all configurations are complete, click Save and then preview the popup on the frontend to confirm that the design, timing, and display rules are working exactly as expected. This helps you identify any adjustments needed before it goes live for shoppers.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"532\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/preview-recent-sales-popup-using-app-1024x532.png\" alt=\"Preview of recent sales popup using Shopify app\" class=\"wp-image-25952\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/preview-recent-sales-popup-using-app-1024x532.png 1024w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/preview-recent-sales-popup-using-app-300x156.png 300w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/preview-recent-sales-popup-using-app-768x399.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/preview-recent-sales-popup-using-app-1536x798.png 1536w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2026\/02\/preview-recent-sales-popup-using-app.png 1999w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">And this is how it is easy to add the pop-up in your Shopify store using our app.&nbsp;<\/p>\n\n\n<div class=\"meetanshi-cta\">\r\n<div class=\"cta-content-wrapper\">\r\n<span>Boost Sales with Real-Time Social Proof<\/span>\r\n<p>Display real time purchase notifications of recent purchases &amp; improve visitors trust.<\/p>\r\n<a href=\"https:\/\/apps.shopify.com\/recent-sales-notifications\" target=\"_blank\" class=\"btn-primary\" rel=\"noopener\">Shopify Recent Sales Pop up<\/a>\r\n<\/div>\r\n<div class=\"cta-image-new\">\r\n<img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/11\/shopify-recent-sales-popup.svg\" width=\"250px\" alt=\"Shopify Recent Sales Pop up by Meetanshi\">\r\n<\/div>\r\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Ways to Set Up Other Shopify Popups<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Apart from sales popups, you can add other popups in Shopify to capture leads, grow subscribers, or promote offers.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the easiest ways to set them up.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Using the built-in Shopify Forms app &#8211; <\/strong>The Shopify Forms app lets you create simple email pop-ups without coding. Just create a form, choose a pop-up, customize the message, and publish it on your storefront.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Install a pop-up builder app &#8211; <\/strong>Many apps offer multiple pop-up options with customization. You can set up spin-to-win popups, cart abandonment popups, and free shipping bars.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Add the custom Liquid code &#8211; <\/strong>Some themes include built-in sections for announcements or modal popups. You can add a promotional pop-up directly through theme settings, embed scripts, or add custom Liquid\/JS for a basic custom pop-up.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Remove Popups on Shopify<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you no longer need a popup, here are the easiest ways to remove it.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most popups come from third-party apps, so you can remove them by opening the Apps section in your admin and disabling the popup inside the app or uninstalling the app entirely.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the popup was created using the Shopify Forms app, you can open the app, select the form, and then toggle it off or delete it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the popup was added through custom Liquid or JavaScript, you need to go to <strong>Online Store &gt; Themes &gt; Edit Code<\/strong> and remove the popup snippet or script file from your theme.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And this is the end, hope you learn how to add a popup to a Shopify store, and probably using the Meetanshi Recent Sales Popup app is the easiest and quickest way.\u00a0<\/p>\n\n\n<div class=\"meetanshi-cta\">\r\n<div class=\"cta-content-wrapper\">\r\n<span>Boost Sales with Real-Time Social Proof<\/span>\r\n<p>Display real time purchase notifications of recent purchases &amp; improve visitors trust.<\/p>\r\n<a href=\"https:\/\/apps.shopify.com\/recent-sales-notifications\" target=\"_blank\" class=\"btn-primary\" rel=\"noopener\">Shopify Recent Sales Pop up<\/a>\r\n<\/div>\r\n<div class=\"cta-image-new\">\r\n<img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/11\/shopify-recent-sales-popup.svg\" width=\"250px\" alt=\"Shopify Recent Sales Pop up by Meetanshi\">\r\n<\/div>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Shopify popups are an effective sales technique to convert shoppers into loyal customers. This guide walks you through how to add a pop-up to a&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[787],"tags":[],"class_list":["post-25946","post","type-post","status-publish","format-standard","hentry","category-shopify"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/25946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=25946"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/25946\/revisions"}],"predecessor-version":[{"id":25954,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/25946\/revisions\/25954"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=25946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=25946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=25946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}