Skip to content

Works with your stack

Cookie consent for OneSignal push notifications on WordPress

the prompt waits too

← Cookie Rocks for your stack

The OneSignal plugin adds OneSignal’s web SDK to every page, so visitors can subscribe to push notifications. It has no consent option of its own: without a banner that holds it, the SDK loads, calls OneSignal and stores data in the browser before any choice. Cookie Rocks Pro holds it until the visitor accepts, then starts it on the same page.

By OneSignal · onesignal.com · WordPress.org

Also in: Newsletter plugins

Is this your product? Tell us if anything here is out of date. Write to us

OneSignal

WordPress plugin

Tested
Tested version
3.9.4
How
Tested on a live site
Last test
11 November 2026
Latest version
3.9.4 tested
Active installs
60,000+

What the OneSignal plugin puts on your pages

The OneSignal SDK
A script from cdn.onesignal.com in the head of every page, with a short start-up script that holds your app ID: OneSignal.
A call for your app settings
On each visit the SDK asks api.onesignal.com for your prompt and app settings. OneSignal’s server sets a __cf_bm cookie on onesignal.com.
Storage in the browser
A database named ONE_SIGNAL_SDK_DB, and local storage keys such as os_pageViews, that keep the subscription and count page views to time the prompt.
A background worker for subscribers
Once a visitor subscribes, a worker script served by your site receives the notifications, even when the page is closed.

What matters for consent with OneSignal

It starts before any choice

The plugin has no setting to wait for consent. On its own, OneSignal is contacted on the first page of every visit, even by visitors who never subscribe.

Held until consent

Cookie Rocks Pro holds the SDK and its start-up script. Before the choice and after Reject all, nothing reaches OneSignal and nothing is stored.

No reload after Accept

After Accept all, OneSignal starts on the same page, so the subscription prompt can appear as you set it in OneSignal.

A yes for marketing

OneSignal registers subscribers and counts sessions and clicks for the messages you send. Under the strictest rules, that needs a yes for marketing, not only for preferences.

What our tests found on OneSignal

  • Before the choice · About Cookie RocksOneSignal waits for consent

    Cookie Rocks Pro holds the OneSignal SDK and its start-up script until consent: before the choice and after Reject all, nothing reaches OneSignal and no OneSignal storage is created. After Accept all, OneSignal starts on the same page, without a reload. The browser’s notification prompt could not be tested without a real OneSignal app.

    Seen in our tests, 11 November 2026, Cookie Rocks.

  • Before the choice · OneSignalOneSignal loads its SDK before any choice

    The OneSignal plugin 3.9.4 adds the OneSignal web SDK (v16) to the head of every page, with no consent option of its own. Without a banner that holds it, before any choice the SDK loads from cdn.onesignal.com, asks api.onesignal.com for the app settings, creates the ONE_SIGNAL_SDK_DB database in the browser, and OneSignal’s server sets the __cf_bm cookie on onesignal.com.

    Seen in our tests, 11 November 2026, OneSignal 3.9.4.

How we test it

On a live site

We installed Cookie Rocks on a real WordPress site built with it, kept as its owners set it up, and watched what loads before the choice and after it. Its own features had to keep working, such as forms, videos or a checkout.

  • OneSignal 3.9.4, tested on 11 November 2026.

Newsletters and popups

Other plugins of the same kind.

Fluent FormsNo cookie with default settings.tested 6.2.17Ninja FormsNo cookie with default settings.tested 3.16.1MC4WP: Mailchimp for WordPressSign-up forms with no cookie, an optional tracker on top.tested 4.15.0MailPoetLight forms, but server cookies for known subscribers.tested 5.45.2KlaviyoA script on every page, and a checkout that sends data by itself.tested 3.9.0Mailchimp for WooCommerceA Mailchimp script, server cookies and cart tracking by default.tested 6.3Popup MakerIts own cookie is harmless, its content is not always.tested 1.25.0OptinMonsterCampaigns from OptinMonster’s servers, built by an inline script.tested 2.17.1Newsletter pluginsSign-up forms are fine, the scripts around them need consent.Popup pluginsPopups from your site or from a provider, two different cases.Elementor ProPop-up counters and countdowns kept in the browser.MailerLiteSign-up pop-ups that load after consent.Mailchimp on WordPressForms that keep working, a pixel and pop-ups that wait for consent.Mailmunch Forms for MailchimpPop-ups for Mailchimp, with a visitor ID kept for a year.GroundhoggLead source, page visits and form impressions, removed until consent.BoxzillaPopup boxes that remember, classed by category.PopperPage views counted in cookies, classed as preferences.HollerBoxPopup and page view counters, removed until consent.Icegram EngageA cookie per campaign shown, classed as preferences.WooCommerceOrder attribution cookies, and a checkout that must keep working.tested 11.3.0Contact Form 7reCAPTCHA on every page, and messages that must not be lost.tested 6.2.5Gravity FormsreCAPTCHA scores every entry, and the score needs consent.WPFormsOne captcha per form, and answers that survive the wait.tested 2.0.5.1

Every plugin and theme we test →

Questions

Is the browser’s notification prompt enough as consent?

No. The browser asks permission to show notifications. Before that prompt, the SDK has already contacted OneSignal and stored data. That part needs the banner’s consent.

Will visitors who refuse still see the subscribe button?

No. OneSignal does not start for them, so its prompt and bell stay hidden. Visitors can change their choice from the cookie button at any time.

What happens after the 30-day trial?

The banner, your visitors’ choices and your proofs of consent keep working. Without a key, most settings lock, updates and support stop. Take a key at any time and everything opens again.

For sites with push notifications

Subscribers who said yes first.

no reload

Every feature of the complete plugin for 30 days, no card. OneSignal keeps working for visitors who accept.

  • During the trial: everything, including the full settings and the scans
  • After 30 days without a key: the banner, your visitors’ choices and your proofs of consent keep working
  • What waits for a key: most settings, updates and support

How the trial works, in detail

Cookie Rocks

Get your trial key

Your e-mail and your site. Your key arrives as soon as you confirm your e-mail.

One trial per domain. Local and staging sites never use up your key.

We keep your e-mail address to send your key and help you with it, as explained in our privacy policy. No newsletter, nothing else.