To add web push notifications to a Shopify store, install a push notification app from the Shopify App Store, turn on its opt-in prompt, and enable the automations you want, such as abandoned cart reminders. A custom script alone won’t work well, because Shopify doesn’t let you host a service worker file at your store’s root.
That last point surprises a lot of store owners. When I look at Shopify push setups, the root-file limit explains almost every failed DIY attempt. So below I cover the app route most stores should take, why the manual route is harder on Shopify than on WordPress, and how to test the result.
What do you need before adding web push to Shopify?
You need an active Shopify store, a push app that supports web push, and a clear idea of which messages you’ll send. HTTPS is already handled, because every Shopify storefront is served over HTTPS.
| Requirement | Why it matters | Who handles it on Shopify |
|---|---|---|
| HTTPS | The Push API only works in secure contexts | Shopify, by default |
| Service worker | Receives push messages and shows notifications | The push app |
| Opt-in prompt | Browsers need the visitor’s permission | The push app, configured by you |
| Store events | Cart and product triggers for automations | The app, through Shopify’s APIs |
| Sending plan | Free tiers cap sends or subscribers | You choose the plan |
In short, the app does the technical work. Your job is choosing the app, setting the prompt timing and writing messages people want.
How do you add web push to Shopify step by step?
With an app, setup is mostly clicks rather than code. These steps follow the flow that Shopify push apps share, although menu names differ between apps.
- Open the Shopify App Store and search for web push notifications.
- Compare the plan that includes the automations you need, not just the free plan.
- Install the app and approve the permissions it asks for.
- Enable the app embed in your theme, if the app asks you to, under Online Store, Themes, Customize, App embeds.
- Set the opt-in prompt, ideally a soft prompt that appears after a short delay or a scroll.
- Turn on a welcome notification and one automation, such as abandoned cart reminders.
- Subscribe from your own phone and desktop, then send a test campaign.
My roundup of the best Shopify push notification apps compares pricing, ratings and cart recovery plans for the main options, checked in November 2026.
Why can’t you just paste a push script into your Shopify theme?
Because web push needs a service worker, and Shopify doesn’t give you a place to put one at the root of your domain. A service worker can only control pages at or below the path it’s served from, and it must come from the same origin as your store.
On a normal website you’d upload a file such as /sw.js. On Shopify, theme assets live under a /cdn/shop/ path, so a worker uploaded there gets a narrow scope. The usual fix on other platforms is the Service-Worker-Allowed header, which widens a worker’s scope, as MDN explains. However, Shopify’s app proxy documentation lists Service-Worker-Allowed among the response headers it strips.
So how do Shopify push apps work?
They serve the service worker through an app proxy, a storefront path such as /apps/app-name/ that Shopify forwards to the app’s server. The worker is registered with that path as its scope. That’s enough for push, because a push subscription belongs to the service worker registration, not to the pages it controls.
OneSignal’s Shopify setup docs show this pattern clearly: the service worker path and scope are both set to an /apps/ path. So if you build a custom integration, you’d need your own Shopify app with an app proxy. For most merchants, that’s far more work than installing an existing app.
Which web push notifications should a Shopify store send first?
Start with the automations that react to what a shopper just did, because they’re timely and need no daily effort. Then add broadcasts for sales and launches.
| Notification | Trigger | Why it’s worth it |
|---|---|---|
| Welcome | New subscriber | Confirms the opt-in and sets expectations |
| Abandoned cart | Items left in cart | Brings shoppers back to an unfinished order |
| Back in stock | Product restocked | Only goes to people who asked |
| Price drop | Price lowered on a viewed product | Clear reason to return |
| Shipping update | Order fulfilled or shipped | Useful, so it builds trust |
| Sale or launch | You send it | Reaches all or a segment of subscribers |
Keep broadcasts modest. Sending too often is one of the main reasons people turn notifications off, as I cover in why push subscribers unsubscribe.
When should the opt-in prompt appear?
Show it after the shopper has seen something they like, not the moment the page loads. A soft prompt, a small on-page box that asks first, lets you trigger the browser’s permission dialog only after a click.
Good moments include after a scroll on a product page, on a back-in-stock button, or after the shopper adds an item to the cart. A blunt prompt on the homepage gets blocked, and a blocked permission is hard to win back. My guide to push permission prompt best practices goes deeper on timing and copy.
Do Shopify web push notifications work on iPhone?
Yes, on iOS 16.4 and later, but only after the shopper adds your store to the Home Screen. Apple added web push for Home Screen web apps in iOS 16.4, as WebKit announced. Safari tabs can’t subscribe.
So expect most of your subscribers to come from Android and desktop browsers, such as Chrome, Edge and Firefox. Check whether your app shows an “add to Home Screen” hint for iPhone visitors. For the full checklist, see how to get web push working on iPhone.
How do you test web push on your Shopify store?
Subscribe as a real visitor on two devices, then send yourself a test. Use a private window or a second browser profile, so you see the prompt the way a new shopper does.
- Open your storefront in Chrome on desktop and accept the prompt.
- Repeat on an Android phone.
- Send a test notification from the app’s dashboard and click it.
- Add an item to your cart, leave, and wait for the abandoned cart reminder.
- Check the app’s report to confirm the delivery and the click.
If nothing arrives, check the browser’s site settings for notifications first, then the device’s notification settings. My web push notifications not showing guide lists the usual causes.
Where does LaraPush fit for Shopify stores?
LaraPush isn’t a Shopify app. It’s a self-hosted push panel you install on your own VPS, and its setup guide covers WordPress, regular websites, AMP, Blogger and iOS, not Shopify cart workflows. So for a Shopify store, an App Store push app is the simpler choice.
LaraPush makes more sense if you also run content sites or a WooCommerce store, where you control the root of the domain. It costs from $499 one-time (see current LaraPush pricing), with unlimited subscribers and domains on one licensed server. The trade-offs are that you run the server and there’s no free plan. To compare all types of tools, see my guide to the best push notification services.
Frequently asked questions
No. Shopify’s online store doesn’t include browser push notifications as a built-in feature, so you add them with an app from the Shopify App Store. The app supplies the service worker, the opt-in prompt and the automations, such as abandoned cart reminders.
Not easily. Web push needs a service worker, and Shopify doesn’t let you host one at your store’s root. Apps get around this with an app proxy path under /apps/. Building that yourself means creating your own Shopify app, which is rarely worth it for one store.
Several Shopify push apps have free plans, but they usually cap monthly sends and keep abandoned cart automation on paid plans. Check the plan that includes the automations you need before you install, and confirm the current price on the app’s listing.
A well-built app adds a small script and loads it asynchronously, so the impact is usually minor. Still, every app adds code. Test your store’s speed before and after installing, and remove push apps you no longer use.
Usually not automatically. Push subscriptions are tied to the service worker and keys of the tool that collected them. Ask the new app whether it supports importing subscribers from your current one before you uninstall anything.




