Family Encyclopedia >> Electronics

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

As seasoned WordPress developers who've helped thousands of sites boost engagement, we've seen web push notifications transform user retention. Popular platforms like Facebook use them—now you can too. This proven guide walks you through adding them via OneSignal, a reliable free service.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Why Web Push Notifications Boost Your WordPress Site

These opt-in alerts appear at the top of users' desktops—even with browsers closed. They also work seamlessly on mobile browsers.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Sites like Facebook, Pinterest, and LinkedIn rely on them for higher engagement than SMS or email. Surveys show 50% open rates on mobile, driving more pageviews and returning visitors to your WordPress site.

Let's set them up with OneSignal, trusted by millions of sites.

Step 1: Install the OneSignal WordPress Plugin

OneSignal offers free push notifications for websites and apps. Install and activate the plugin—see our step-by-step plugin guide for details.

Activation adds an "OneSignal" menu in your admin bar, leading to settings with tabs for configuration and documentation.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Enter your API keys and App ID here—we'll generate them next.

Step 2: Generate Google API Keys

Visit the Google Services Wizard.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Enter an app name and any Android package name (required but unused by OneSignal). Select your country, then "Choose and configure services."

Enable "Google Cloud Messaging" to reveal your Server API Key and Sender ID (Google Project Number).

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Paste the Sender ID into your plugin's "Google Project Number" field. Save the Server API Key for later.

Step 3: Configure Chrome and Firefox in OneSignal

Create a free OneSignal account at OneSignal.com, log in, and click "New App/Website."

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Name your app and select "Web." Choose "Google Chrome and Mozilla Firefox."

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Enter your site URL, Google Server API Key, and default notification icon URL. For non-HTTPS sites, check "My site is not fully HTTPS"—OneSignal handles Chrome's HTTPS requirement via subdomain. Add your Sender ID.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Save and continue later if needed.

Step 4: Retrieve OneSignal App ID and REST API Key

From the dashboard, go to App Settings > Keys & IDs.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Copy these to your WordPress plugin settings.

Step 5: Set Up Safari Web Push

Back in OneSignal app settings, under Web Platforms, configure Apple Safari.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Enter site name/URL, upload icons (square images in exact sizes via Photoshop or similar).

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Save. Refresh to get the Safari Web ID, then paste into your plugin.

Configuration complete!

Step 6: Test Your Setup

A subscribe bell appears on your site. Click it in a supported browser.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

You'll see "Thank you for subscribing."

In OneSignal, go to App Settings > Chrome/Firefox settings > Save > Continue > Select WordPress SDK.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Send test notification.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

When it appears, click it.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Confirmation screen appears.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Check status for success.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

How to Send Web Push Notifications

The plugin auto-sends on new posts. For manual: In OneSignal dashboard, click "New Push."

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

Add title, message, and customize via Options, Audience, Schedule.

How to Add Web Push Notifications to Your WordPress Site with OneSignal (Step-by-Step Guide)

This setup delivers real results. Check our top WordPress membership plugins next. Subscribe to our YouTube channel, Twitter, or Facebook for more expert tips.