Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeTo send push notifications you need three things: the person's permission, an address for their browser or device, and a sender that uses it. Set those up for web or mobile, then choose segments and send times by comparing open and opt-out rates. In the sample below, a behaviour segment opened at 9.0% against 4.0% for everyone else, and an evening send beat a morning send 5.5% to 4.5%.
What you will learn
- Permission, address and sender must all exist; ask after a user action, not on first load
- Judge segments and send times with open rate and opt-out rate together, inside each segment
- Test send times on random halves and repeat on a second date before changing your schedule
What does it take to send push notifications?
Three things must exist before a push notification can reach a screen: the person's permission, an address for their device or browser, and a sender (your server or a messaging tool) that uses that address. Everything else, segmentation, timing and copy, is decided after those three are in place.
| Piece | Web push | Android app | iOS app |
|---|---|---|---|
| Permission | Browser prompt, started by a click | Runtime permission on Android 13 and higher | System prompt through the notification framework |
| Address | A push subscription created by a service worker | A device token from the platform's push service | A device token from the platform's push service |
| Sender | Your server or tool posts to the subscription endpoint | Your server or tool posts to the push service | Your server or tool posts to the push service |
| Extra rule | Site must be served over HTTPS; on iPhone and iPad it works for web apps added to the Home Screen | Notifications are off by default for new installs on Android 13 | Ask at a moment the person understands |
If you only want to send, a messaging tool handles the sender and stores addresses for you. If you build it yourself, you own the three pieces. This guide covers the setup path for web and mobile, then how to choose segments and send times and judge them by open and opt-out rates. For rules about what to write and how often, see push notification best practices; for the definition, see push notification.
How do you set up web push?
- Serve the site over HTTPS and register a service worker. The Push API requires an active service worker to receive messages, and the service worker shows the notification when one arrives.
- Ask for permission at a useful moment, from a user action. The browser prompt should follow a click, such as a "Notify me about price drops" button, not appear on page load.
- Create a push subscription. When the person agrees, the browser returns a subscription containing an endpoint and an encryption key. Send it to your server and store it against the person or browser.
- Treat the endpoint as a secret. Knowing the endpoint is all that is needed to send a message to that browser, so protect it, and defend your subscribe route against cross-site request forgery.
- Send a message and handle it in the service worker. Your server posts the payload to the endpoint; the service worker shows the notification and handles the click.
- Handle expiry. Subscriptions can expire or be invalidated, so listen for the subscription-change event and refresh your stored address.
iPhone and iPad have an extra requirement. Since iOS and iPadOS 16.4, Web Push works for web apps that have been added to the Home Screen, the permission request must be in response to direct user interaction, and it uses the standard Push API, Notifications API and service workers. Plan for the fact that on iPhone the audience you can reach is the people who installed the web app, not every visitor.
How do you set up push in a mobile app?
- Add the platform's push capability to the app and obtain a device token for each install.
- Ask for permission in context. On Android 13 and higher, notifications are off by default for new installs and the app must request the
POST_NOTIFICATIONSpermission; if the app targets Android 13 or later it controls when the dialog appears. Google's guidance is to let people explore first and trigger the prompt from an action such as tapping an alert bell, following an account or submitting an order. Another recommended pattern is to wait until the third or fourth launch. - Send the token to your server and store it with the user ID, platform and app version.
- Check before you send. On Android, call the platform check that tells you whether the person has notifications enabled; people can revoke the permission at any time.
- Send the payload through the platform's push service from your server or messaging tool, and keep a record of what you sent.
A denied prompt is hard to undo: on Android 13 and above, a person who selects "Don't allow" has blocked notification channels until they change the setting in system settings. Explaining the benefit before the prompt protects the opt-in rate.
When should you ask for permission?
The opt-in rate is permissions granted ÷ prompts shown. Where you ask drives it far more than how you word it.
| When to ask | Why it works | Risk |
|---|---|---|
| After the person takes an action that benefits from alerts (order placed, follow, price watch) | The benefit is obvious | Fewer prompts shown |
| After a few visits or launches | The person knows the product | Some never return |
| On first page load or first launch | Reaches everyone | Lowest opt-in and an unrecoverable denial |
Sample data: a store shows its own pre-prompt explainer to 20,000 visitors who placed an order or saved an item, and 1,400 grant permission, an opt-in rate of 1,400 ÷ 20,000 = 7.0%. Track the denial rate too: a denial rate that climbs after a change means the prompt moved to the wrong moment.
How do you segment push notifications?
Send to a group defined by behaviour rather than to everyone. A segment is a rule: did or did not do an action, in a time window, a number of times.
Sample data: a price-drop push goes to 10,000 subscribers; 9,200 are delivered. 1,800 of the delivered recipients viewed the pricing page in the last 14 days (the segment); 7,400 did not.
| Group | Delivered | Opens | Open rate | Opt-outs | Opt-out rate |
|---|---|---|---|---|---|
| Viewed pricing in last 14 days | 1,800 | 162 | 9.0% | 3 | 0.17% |
| Everyone else | 7,400 | 298 | 4.0% | 27 | 0.36% |
| All delivered | 9,200 | 460 | 5.0% | 30 | 0.33% |
The segment opens at 9.0% against 4.0%, and fewer of them opt out (0.17% against 0.36%). The overall 5.0% hides that difference, which is why the metric per segment matters: the next send should go to the segment with the price-drop message and the others should get something different, or nothing.
Open rate by group
sample data, opens ÷ deliveredHow do you choose send times?
Test, do not guess. Split an audience of similar people at random, send at two times and compare open rates and opt-outs.
Sample data: 4,600 delivered subscribers receive the same push at 9:00 and another 4,600 at 19:00. At 9:00, 207 open (4.5%). At 19:00, 253 open (5.5%). Difference: 1.0 point. A two-proportion test gives z ≈ 2.20 and p ≈ 0.03, so a gap this large would happen by chance about 3 times in 100, which is evidence that the evening time is better for this audience. Check opt-outs for both groups before choosing; a time that opens more but drives more opt-outs is not better.
Repeat the test on a second date. A single result can be a coincidence, and the best time can differ by segment and time zone, so run the comparison inside each segment that matters.
Which metrics tell you push is working?
| Metric | Formula | Sample | What it tells you |
|---|---|---|---|
| Opt-in rate | Permissions granted ÷ prompts shown | 1,400 ÷ 20,000 = 7.0% | Whether the ask works |
| Delivery rate | Delivered ÷ sent | 9,200 ÷ 10,000 = 92.0% | Whether addresses are valid and reachable |
| Open rate | Opens ÷ delivered | 460 ÷ 9,200 = 5.0% | Whether the message earns attention |
| Opt-out rate | Opt-outs ÷ delivered | 30 ÷ 9,200 = 0.33% | Whether the cost to the relationship is rising |
| Click-to-conversion | Orders or sign-ups ÷ opens | Your own events | Whether opens lead to the outcome |
Opens alone can mislead. If opens go up and opt-outs go up with them, you are buying attention with the audience's patience. Read open rate and opt-out rate together, and compare people who opted in with people who did not on a downstream outcome such as retention or orders.
| Metric | Formula | Sample |
|---|---|---|
| Opt-in rate | Permissions granted ÷ prompts shown | 1,400 ÷ 20,000 = 7.0% |
| Delivery rate | Delivered ÷ sent | 9,200 ÷ 10,000 = 92.0% |
| Open rate | Opens ÷ delivered | 460 ÷ 9,200 = 5.0% |
| Opt-out rate | Opt-outs ÷ delivered | 30 ÷ 9,200 = 0.33% |
Sample data from one campaign; compare your own rates by segment and over time.
What should you check before the first send?
- Permission is requested after a user action, with an explanation.
- The stored address is tied to a user or browser and refreshed when it expires.
- Messages carry a link tagged with campaign parameters so visits can be attributed.
- Segments are defined as rules, and the first send goes to a small group.
- A target for opt-out rate is written down, with a rule such as pausing a segment that exceeds it.
- Quiet hours and frequency limits are set by the person's time zone.
- You can see delivery, open and opt-out counts for each campaign.
How to measure push notifications in TapCub
TapCub does not send push notifications, store device tokens or schedule messages. It measures what happens on your site or in your app after the person taps. Use the price-drop campaign above as the example.
- Tag every push link. Add UTM parameters, for example source
push, mediumnotificationand a campaign name per send. In Web analytics › Sources, the UTM tab splits visitors, sessions, bounce and duration by campaign, so you can compare the 9:00 and 19:00 sends. - Record opt-in and opt-out as events. Send custom events such as
push_opt_inandpush_opt_outfrom your site or app, so you can count them in All-platform analytics › Behavior › Event analysis. - Define the segment once. In All-platform analytics › Users › Segments & tags, create a rule segment such as "viewed pricing in the last 14 days". TapCub refreshes rule segments daily or on demand and keeps a 30-day size trend; if a webhook is configured, it emits membership changes that your own messaging tool can use. Anonymous visitors have no profile and never join a segment.
- Compare opted-in users with the rest. Use the segment as a group in All-platform analytics › Behavior › Behavior analysis to compare retention or a funnel; for apps, App analytics › Users › Retention shows how many come back.
- Mark each send. Add a date annotation in Configuration › Annotations on the send date so spikes in sessions are easy to explain.
Delivery and open counts live with your push provider, so join them to TapCub's results yourself.
FAQ
How do I send a push notification to my website visitors?
Serve the site over HTTPS, register a service worker, ask for permission after a user action, store the subscription the browser returns and send messages to its endpoint from your server or a messaging tool.
Can I send push notifications to iPhone users from a website?
Yes, on iOS and iPadOS 16.4 and later, for web apps that have been added to the Home Screen. The permission request must come from a direct user action.
When should an app ask for notification permission?
At a moment the benefit is clear, such as after an order, a follow or a tap on an alert bell. On Android 13 and higher the app controls the timing and notifications are off until permission is granted.
What is a good push notification open rate?
There is no universal number, so compare against your own history by segment. In the sample, 5.0% overall hid 9.0% for a behaviour segment and 4.0% for everyone else.
How do I know if push is annoying people?
Watch the opt-out rate and the permission-revoked count beside the open rate. If opens rise and opt-outs rise with them, reduce frequency or narrow the segment.
Sources
- WebKit. Web Push for Web Apps on iOS and iPadOS — Home Screen web apps, user-gesture permission request, Push API and Notifications API in iOS and iPadOS 16.4. Checked 2026-11-22.
- Android Developers. Notification runtime permission —
POST_NOTIFICATIONSon Android 13 (API 33), off by default for new installs, requesting in context. Checked 2026-11-22. - MDN Web Docs. Push API — service worker, push subscription with endpoint and key, subscription changes. Checked 2026-11-22.
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Analyst
Focuses on event analysis, conversion funnels, and retention, using clear metric definitions and structured analysis to explain product performance.
