This guide will walk you through how to set up web push on Wordpress. If you do not use Wordpress, or wish to write custom code, please go to Web Push Quickstart. If you use Wordpress VIP, please contact us to set up.
OneSignal supports sending web push notifications from a variety of different web technologies. Select Wordpress to continue:
Once you've selected Wordpress as your integration, you must fill out information about your site.
Most users just enter their base site URL for this field (e.g.
If your site is accessible from both www & non-www links (e.g.
www.example.com), please only enter the URL that you wish to send push notifications from. We recommend redirect traffic from one to the other (e.g. users that visit
example.com are redirected to
www.example.com), so that all your traffic only goes to one.
Enter a link to an icon file that is at least 80x80 pixels (Recommended size is 192x192). The file must be
Wordpress-hosted implementations must use a label to send push notifications. Select My site is not fully HTTPS and choose a unique label (e.g.
mylabel), which will be displayed as
If your site uses Wordpress technology but is hosted on a hosting provider that is not Wordpress, you will need to determine if your site fully supports HTTPS.
Web Push works best with sites that fully support HTTPS, and we recommend using HTTPS for Web Push when possible. To determine if your site fully supports HTTPS, look for the following:
- Your site URL must begin with
https://, and display a green lock icon on the browser's address bar
- Your site must redirect all
https://requests. In other words, users accessing the site via HTTP will be redirected to the HTTPS version.
If your site does not fully support HTTPS, you should select 'My site is not fully HTTPS':
Once you've selected this, you will need to choose a unique label to be displayed in your notifications. For example, the below image shows notifications are coming from
Warning: You can only change your label if you have less than 100 web users. Once you have 100+ web users, this setting is disabled.
To enable OneSignal on your Wordpress site, you will need to install the OneSignal Wordpress Plugin.
Once you've installed the wordpress plugin, you'll need to copy your App ID and API Keys.
Paste these keys into your wordpress plugin Configure section in the appropriate inputs:
Be sure to Save your configuration once you've added these keys.
Next, you'll want to configure your prompts in the OneSignal Wordpress Plugin, so that users can subscribe to push notifications. You can do this in the Configure section of the plugin.
A small icon at the corner of your page that users can interact with to subscribe
A small modal that comes from the center of the page and asks if users are interested in signing up.
HTTP Pop-Up (HTTP-only) - a pop-up window that appears after other prompts that is required for HTTP sites.
Welcome notifications an optional way to thank users after subscribing to your site. Users will see a welcome notification as soon as they subscribe. You can edit or disable them in the Configure section of your plugin.
Next step: Send your first push notification via the OneSignal Dashboard