OneSignal

OneSignal

Push notification service used by websites and mobile apps to re-engage users via browser and in-app notifications. The OneSignal SDK handles notification permission prompts and manages subscription state. Also tracks notification delivery, open rates, and conversion events.

Overview

OneSignal is a customer messaging platform specializing in browser push notifications, in-app messaging, email, and SMS. It powers push notification campaigns for over one million websites and apps, enabling operators to re-engage users with targeted messages based on behavioral segmentation and automated triggers.

What This Script Does

OneSignal's browser integration involves a JavaScript SDK, a service worker file, and optional subscription prompt UI components.

Script Files and Domains

  • OneSignalSDK.js or OneSignalSDKWorker.js — Loaded from cdn.onesignal.com. The main SDK (~150KB minified) handles subscription management, permission prompts, and messaging.
  • OneSignalSDKWorker.js — A service worker registered under the host site's domain (e.g., yourdomain.com/OneSignalSDKWorker.js). Receives push messages even when the browser tab is closed.
  • API calls go to onesignal.com/api/v1/ for subscription registration and fcm.googleapis.com (Chrome) or APNs (Safari) for push delivery via browser push infrastructure.

Cookies and Storage Set

  • os_pageViews — localStorage key tracking page view count for the subscription prompt display logic (e.g., "show prompt after 3 page views"). Session-scoped behavior, but persisted in localStorage.
  • isOptedOut — localStorage key recording the user's notification opt-out preference.
  • onesignal-notification-prompt — localStorage key tracking the last time the subscription prompt was shown to prevent excessive re-prompting.
  • OneSignal Player ID — A UUID generated for each subscriber, stored server-side and linked to the browser's push subscription endpoint. This is the primary subscriber identifier.
  • No persistent tracking cookies are set on the host domain in the traditional sense; OneSignal relies primarily on localStorage and the push subscription endpoint URL for identification.

Data Collected Per Interaction

  • Browser push subscription endpoint URL (a unique URL issued by the browser's push service — this is the primary subscriber identifier)
  • IP address (at subscription time and notification delivery)
  • Browser type, OS, user agent
  • Page URL where subscription was initiated
  • Page view count (for prompt logic)
  • Notification delivery status (delivered, displayed, clicked, dismissed)
  • Custom tags set by the site operator (e.g., plan: premium, last_purchase_category: electronics)
  • Custom events triggered by the site operator (purchases, signups, etc.) for segmentation and automation

Subscriber Segmentation and Targeting OneSignal builds subscriber segments based on behavioral attributes, tags, and event history. Automated notifications (triggered by cart abandonment, inactivity, price drops) fire based on these segments. Segments can be used for A/B testing notification copy and delivery timing.

Consent & Compliance

Consent category: Marketing

  • GDPR/ePrivacy: Push notifications are a direct marketing channel requiring explicit opt-in consent under both GDPR and the ePrivacy Directive. The browser's native permission prompt constitutes a technical mechanism for consent, but the GDPR consent must be freely given, informed, and specific — the site must disclose that subscribing enrolls the user in OneSignal-powered marketing communications. Subscriber segmentation and behavioral tagging constitute profiling under GDPR Article 4(4).
  • IAB TCF: OneSignal participates in the IAB TCF ecosystem. Relevant purposes include Purpose 1 (Store and/or access information on a device) and Purpose 4 (Select personalised ads) when behavioral targeting is used.
  • CCPA/CPRA: Subscriber behavioral data and segmentation profiles constitute personal information. Targeted push notifications based on purchase history or browsing behavior may constitute sharing under CPRA. Opt-out rights apply.
  • EU-US Data Privacy Framework: OneSignal is a US company. It relies on SCCs and DPF for EU-to-US data transfers. Verify current participation status on the DPF list.

Should You Block This Without Consent?

Yes. OneSignal is a marketing communication and subscriber segmentation platform. The service worker and SDK should not be registered or loaded until the user has provided explicit consent for marketing communications. Note that once a service worker is registered, it persists until explicitly unregistered — ensure your consent management properly handles unregistration when consent is withdrawn.

Is OneSignal GDPR compliant?

OneSignal typically loads marketing trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So OneSignal can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads OneSignal, not on OneSignal itself.

Visit website

Consent Categories

Also Known As

OneSignalOneSignal SDKbrowser push notificationsweb push consentpush notification opt-innotification tracking

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (1)

OneSignal's trackers are occasionally seen, seen on about 1% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.

onesignal.comMarketing

onesignal.com is a marketing domain operated by OneSignal, used to serve ads, build audiences, and measure ad conversions. Seen on about 1% of scanned sites.

Cookies OneSignal Sets (1)

_os_pageviews

OneSignal page-view counter for re-engagement push messaging.

Frequently Asked Questions

Related Vendors

Demandbase
Demandbase
Account-based marketing platform that identifies the companies behind website visitors using IP-to-company resolution. The Demandbase script fires on page load, resolves the visitor's IP to a firmographic profile, and triggers account-level personalization or sales alerts. Used by B2B companies to tailor site content to the visiting organization.
Optimizely
Optimizely
Digital performance platform best known for its A/B testing and feature flagging product. The Optimizely script fetches experiment configurations on page load and delivers variants to users. Tracks conversion events to determine which experiences drive better outcomes.
Semasio
Semasio
Audience targeting and identity resolution platform used by publishers and brands. Semasio builds audience segments from content consumption and contextual signals, using these to power programmatic targeting without relying on personal identifiers.
Sirius XM
Sirius XM
Sirius XM operates a streaming audio and podcast advertising platform through AdsWizz. Audio ad scripts fire impression tracking pixels when audio ads play, measure listen-through rates, and set cookies for campaign attribution and audience frequency management across streaming content.
Admixer
Admixer
Programmatic advertising platform and ad exchange used by publishers to monetize inventory across display and video formats. Admixer scripts participate in header bidding and deliver ad creatives to publisher sites.
Bidtellect
Bidtellect
Programmatic native advertising platform that enables contextually relevant sponsored content placements. Bidtellect scripts participate in header bidding auctions, focusing on native ad formats across content sites.

Manage consent for OneSignal

ConsentStack automatically detects and manages OneSignal trackers so your site stays compliant with global privacy regulations.