Integrations
Shopify web push notifications
Shopify stores can’t host a root service worker file, so on-page push prompts aren’t possible without an app. Here is the setup that works without one.
Why Shopify is different
A web push service worker must be served from the same domain as the page that asks for permission. Files you upload to Shopify (in Settings, Files, or in theme assets) are served from Shopify’s CDN domain, not from your-store.com/. So a script on your storefront can’t register a root service worker on its own, and browser push prompts on the store pages don’t work without an app that has deeper access.
The setup that works: a hosted subscribe page
- Create a website in SuperWicket for your store and switch on the hosted subscribe page. Add your logo, a title such as “Get restock and sale alerts” and one line on what subscribers will receive.
- Link to it where shoppers already show intent:
- the order status / thank-you page (“Get shipping and restock alerts”),
- a “Get restock alerts” link on sold-out products,
- an announcement bar or footer link,
- your order confirmation email.
- Send. Subscribers who opt in on the hosted page receive your campaigns. Notification links open your store as normal, with UTM tags so the visits show in your analytics.
What Shopify stores send
- Restocks: announce when popular sold-out products are back, linking straight to the product page.
- Sales and launches: campaigns delivered at the same local time in every timezone.
- Price drops on popular products.
What this setup can’t do
Because subscribers opt in on the hosted page rather than your storefront, SuperWicket doesn’t see their browsing on your store. That rules out page-view triggers such as cart abandonment from storefront visits. If cart recovery by push is your main goal on Shopify, a Shopify-specific push app may suit you better; see our PushAlert comparison for one option. For stores on platforms that allow root files, see abandoned cart push notifications.
Headless Shopify (Hydrogen and custom front ends)
If your storefront is a custom front end on your own domain, you control the public folder, so the full on-site setup works: put superwicket-sw.js in the public directory and add the script tag. See HTML, React and Next.js setup.
Frequently asked questions
Why can’t I just upload the service worker to Shopify?
Files uploaded in Shopify are served from Shopify’s CDN domain, not your store domain. Browsers only accept a service worker from the same origin as the page.
What is the simplest option?
The hosted subscribe page. Link to it from a banner, the footer or the order confirmation page. Subscribers opt in on a page we host, and you can send to them right away.
Try it on your own site
The Free plan has no time limit and needs no card. Add one script tag, or share a hosted subscribe page if you can’t upload files.