@sagepilot-ai/web-push-addon or paste a service-worker script into your Liquid theme.
Use the npm Web Push integration only for custom or headless storefronts where your application owns authentication and public service-worker assets.
Prerequisites
- The Sagepilot Shopify app is installed and connected under Settings > Integrations.
- A Website Widget channel is active and connected to the Shopify store.
- An active Push Notifications channel has Web Push, a complete VAPID configuration and an Identity signing secret under SDK & delivery.
- The test shopper can log in to the Online Store and exists as a synced Sagepilot customer.
- The published storefront uses HTTPS and a browser that supports Web Push.
1. Connect the storefront widget
- In Sagepilot, open Channels.
- Create or open the Website Widget channel used by this store.
- Open the Shopify section.
- Select the store and click Connect channel. If another widget channel is connected, click Use this channel only when you intend to replace it.
- Click Open theme editor.
2. Enable Web Push in the Shopify theme
In the Shopify theme editor:- Open App embeds.
- Turn on Sagepilot widget.
- Turn on Enable customer notifications in the embed settings.
- Keep the notification button label explicit about marketing, for example Enable marketing notifications.
- Click Save.
3. Register a shopper
- Open the published storefront in a supported browser.
- Log in through the store’s customer-account flow.
- Navigate to a storefront page and locate the Enable marketing notifications button.
- Click the button and allow the browser notification prompt.
4. Send a real test notification
- In Sagepilot, create a test list or segment containing only the registered Shopify customer.
- Create a Push template with a same-origin storefront destination, such as a product, collection or customer-account URL.
- Send it through a Campaign or Journey Push node.
- Confirm the notification arrives with the storefront in the foreground, background and closed.
- Click the notification and confirm the destination opens.
5. Verify analytics independently
Check each lifecycle stage separately:
The extension stores signed observations if no storefront page is open and uploads them on the next identified shopper session. A queued send alone does not prove browser receipt or presentation.
Disable Shopify Web Push
To stop offering registration, clear Enable customer notifications in the app embed settings and save the theme. Returning storefront sessions can then clean up their local subscription. To stop Web Push sends immediately for every Shopify shopper, disable Web Push on the Push Notifications channel or make those endpoints ineligible through your notification preferences. Turning off the app embed alone prevents its script from running and is not an immediate global endpoint revocation.Troubleshooting
For payload behavior and analytics definitions, see Web Push integration.