Recover abandoned carts on Shopify with push
On Shopify, InstantPWA can detect an active cart and prompt install specifically for shoppers who added items but didn't check out. Once installed, a push notification follow-up reminds them to finish — set up once in layout/theme.liquid via Online Store → Themes → Edit code → layout/theme.liquid.
Steps
- 1
Open layout/theme.liquid
Go to Online Store → Themes → Edit code → layout/theme.liquid.
- 2
Paste the InstantPWA snippet
Drop the one-line async script tag in the Shopify head section — no build step or dependency install.
- 3
Turn on cart-based targeting
In InstantPWA's targeting rules, scope a trigger to pages/state that indicate an active Shopify cart.
- 4
Set the push follow-up delay
Configure how long to wait after cart abandonment before sending the push reminder — commonly 1–24 hours.
- 5
Test the full flow
Add an item to cart, leave without checking out, install when prompted, and confirm the follow-up push arrives.
Constraints to know
- Runs on Basic, Shopify and Plus plans; theme.liquid edits are per-theme, so duplicate to any duplicate/backup themes too.
- Checkout.liquid is deprecated for script injection — Shopify now restricts checkout customization to Shopify Functions and the Script Editor app, so InstantPWA targets the storefront, not the hosted checkout.
FAQ
How does InstantPWA know a cart was abandoned?+
It reads Shopify's standard cart state (cookie or localStorage) to detect an active cart with no completed order, then scopes the install/push trigger to that condition.
Does this require a separate app or API integration?+
No — it's the same one-line snippet, just with cart-based targeting rules turned on in your dashboard.
Can I control how long to wait before the reminder push?+
Yes — the delay is configurable in the InstantPWA dashboard, from immediate to 24+ hours after abandonment.