Web push notifications for WordPress: a practical guide
Web push notifications for WordPress let a website send short, clickable alerts to visitors who have agreed to receive them, even when the site is not open in their browser. They work through standard browser features, a service worker and the Push API, and on WordPress they are usually added through a plugin connected to a sending service, or through a custom build.
Done well, push notifications for WordPress sites bring back readers for new articles, tell shoppers when an item is back in stock, and update customers on their orders. Done badly, they become one more irritating prompt that visitors block on sight, and a blocked site rarely gets a second chance.
This guide explains how web push works, when it is worth adding, how to ask for permission without annoying people, the main ways to implement it on WordPress, and how to measure whether it is earning its place. It is a guide, not a product: there is no plugin to download here. If you need a custom setup, the final section explains how that work runs.
How web push notifications for WordPress work
Web push relies on a few moving parts that are the same on any website. WordPress simply provides the place where content and triggers live.
- A service worker, a small JavaScript file registered by your site, runs in the background of the visitor's browser and listens for incoming messages.
- When the visitor agrees to notifications, the browser creates a subscription: a unique address at the browser vendor's push service, plus encryption keys.
- Your site, or the sending service you use, stores that subscription. VAPID keys identify your server to the push service.
- To send a notification, the server encrypts a short message and posts it to the push service, which delivers it to the browser.
- The service worker receives the message and displays it using the Notifications API. A click opens the page you specified.
Some practical requirements follow. The site must run on HTTPS. The service worker must be served from your own domain, which matters when caching, CDN or security plugins rewrite files. Support is broad on desktop and Android browsers. On iPhones and iPads, Safari supports web push from iOS 16.4 onwards, but only for sites the user has added to their home screen as a web app, which makes iOS reach far smaller in practice.
Is web push right for your site?
Push works best when you have timely, specific information that a visitor would genuinely want to know about. It works poorly as a general marketing megaphone.
| Good fit | Poor fit |
|---|---|
| News and publishing sites with frequent new content | Brochure sites that rarely change |
| WooCommerce stores with back-in-stock and order updates | Sites whose visitors buy once and never return |
| Events, webinars and bookings with time-sensitive reminders | Businesses with nothing timely to say |
| Communities, courses and membership sites | Audiences mostly on iPhone who never install web apps |
It also helps to compare push with the other channels you might use for the same message.
| Channel | Strengths | Limits |
|---|---|---|
| Web push | No email or phone number needed, instant, low effort to opt in | Short messages, tied to one browser and device, limited on iOS |
| Rich content, works everywhere, durable | Inbox competition, needs an address and consent | |
| Very high familiarity in India, two-way conversation | Template approval, opt-in requirements and per-message costs through the Business API | |
| SMS | Reaches any phone | Sender and template registration before sending, and tight limits on promotional messages in India |
For many Indian businesses, WhatsApp and email remain the primary channels, with push as a light, low-friction addition. If two-way conversation matters more than alerts, consider WhatsApp automation or live chat on your website instead.
Designing the permission prompt
The permission prompt decides everything. If a visitor clicks Block, the browser will not let you ask again unless they change their settings by hand. Browsers also watch how often people reject a site's requests; Chrome, for example, can switch sites with poor acceptance to a quieter prompt that most users never notice.
Ask at the right moment
Never trigger the browser prompt on the first page load. Wait until the visitor has shown interest, such as reading a second article, viewing a product that is out of stock, or completing an order. Firefox and Safari require a user action such as a click before showing the prompt at all.
Use a soft prompt first
Show your own small message first, explaining what you will send and how often, with clear buttons for yes and not now. Only call the browser's real prompt if they say yes. This protects you from permanent blocks by people who were never interested.
Make the value specific
- Weak: Allow notifications to stay updated.
- Better: Get a notification when this size is back in stock.
- Better: Get one alert when we publish a new GST compliance guide, no more than weekly.
- Better: Get delivery updates for this order.
Implementation options for push notifications on WordPress
There are three broad ways to add push to a WordPress site. The right one depends on volume, data requirements and how much control you need.
| Option | How it works | Suits | Watch for |
|---|---|---|---|
| Hosted service with a WordPress plugin | A plugin adds the service worker and prompt, and a third-party dashboard stores subscribers and sends messages. OneSignal is a widely used example. | Most blogs, publishers and small stores | Subscriber data held by a third party, branding on free tiers, plan limits |
| Self-hosted plugin | The plugin stores subscriptions in your own WordPress database and sends through browser push services directly. | Sites that want data in-house and moderate volumes | Server load at send time, plugin maintenance and support quality |
| Custom build | A developer writes the service worker, subscription endpoints and sending logic, often with a queue for large sends. | High-volume sites, custom triggers, integration with CRM or apps | Development and upkeep effort |
Whichever route you pick, check these points before going live.
- Only one service worker can control a given scope. A PWA plugin, an offline plugin and a push plugin can conflict, so combine them deliberately.
- Exclude the service worker file from caching and minification plugins and from CDN rewrites.
- On multisite installations, confirm how subscriptions are separated between sites.
- Check where subscriber data is stored and whether that suits your privacy commitments.
- Test on Chrome, Edge and Firefox on desktop and Android, and on an iPhone with the site added to the home screen.
What to send: campaigns and automated triggers
The most valuable notifications are usually automated and specific to the person, not broadcast to everyone. On a WordPress or WooCommerce site, common triggers include the following.
- New post published in a category the subscriber chose.
- Order confirmed, shipped, out for delivery or delivered.
- Product back in stock or price changed, for a product the subscriber asked to track.
- Reminder before a webinar, class or appointment the subscriber booked.
- Cart left without checkout, sent once and only where the visitor has agreed to such reminders.
Broadcast campaigns, such as a festive sale, have their place but should be occasional. Segment by interest, location or language where possible, cap how many messages a subscriber can receive, and keep a quiet window at night. Rich features such as images and action buttons are supported on some browsers and ignored on others, so the title and short text must work on their own.
For stores, these triggers depend on clean order and stock data, which is where solid WooCommerce development pays off. Magento stores face the same questions, covered in our companion guide to push notifications for Magento.
Privacy, consent and compliance in India
The browser permission itself is a form of consent, but it does not cover everything. Good practice is to use personal data only for clear, stated purposes the person has agreed to, and to make withdrawing that agreement as easy as giving it.
- Explain in the soft prompt and your privacy notice what you will send and why.
- Keep separate permission for marketing messages where a subscriber signed up for transactional updates.
- Avoid putting personal details, such as names with order contents or health information, in the notification text, which can appear on a locked screen.
- Make unsubscribing simple, and explain how to switch notifications off in the browser.
- If a third-party service stores subscriptions linked to user accounts, cover it in your agreements and privacy notice.
Email remains a strong companion channel for longer messages and people who decline push. Our page on email marketing covers how that channel runs alongside alerts.
Measuring push notification performance
Measure push against the job you gave it, not by subscriber count alone. A small list of engaged subscribers is worth more than a large list that ignores every alert.
| Measure | What it tells you |
|---|---|
| Prompt acceptance rate | Whether your timing and soft prompt copy are working |
| Subscribers lost over time | Whether frequency or relevance is driving people away |
| Delivery and display | Whether technical issues, expired subscriptions or settings are blocking messages |
| Click-through rate | Whether the message and timing interest people |
| Conversions from push traffic | Whether notifications produce orders, sign-ups or return visits that matter |
Add UTM parameters to every notification link so your analytics can separate push traffic and attribute conversions. A clean GA4 setup with key events defined makes this straightforward. Review results regularly, drop notification types that do not perform, and test one change at a time.
When a custom build makes sense
Off-the-shelf plugins suit most sites. A custom implementation becomes worthwhile when you send at high volume, need subscriber data to stay on your own infrastructure, want triggers from systems outside WordPress such as an ERP or CRM, or need push to work alongside a mobile app and other channels from one place.
A custom build typically includes a purpose-written service worker, a subscription API inside WordPress, a sending queue that handles large lists without slowing the site, admin screens for editors, and reporting connected to analytics. The work overlaps closely with custom WordPress development of themes, blocks and plugins.
If you are weighing up push for your site, our WordPress development team can review your current setup, recommend whether a hosted service or a custom build suits you, and implement it with the permission design and measurement covered above.