Send web push

New

Send browser notifications from workflows and broadcasts. Write your notification, choose which browsers receive it, and send a test.

Before you send, set up web push on your website, so that the people you want to reach have web devices on their profiles.

Add a web push step to a workflow

  1. Drag a Web Push step into your automation or API-triggered broadcast workflow.
  2. Click the step to set its Sending behavior, Subscription preference, and action conditions.
  3. Click Add content, write your notification, and choose which browsers receive it.
  4. Send a test, then save your message.
An automation workflow with an order_shipped trigger and a Web Push step, next to the Add panel that lists Web Push under Messages

Set Sending behavior to Send Automatically to send when a person reaches the step. Queue Draft holds messages for review until you send them manually.

Create a web push broadcast

  1. In Broadcasts, click Create broadcast and choose One-time send.
  2. On the content step, choose Web push as the channel.
  3. Write your notification, choose which browsers receive it, and send a test.
  4. Choose your audience, then review and send or schedule your broadcast. See one-time sends for the full process.
The content step of a one-time send with Web push selected as the channel

To send from your application to one person at a time, create a transactional web push message.

Write your notification

When you add content to a new web push message, you start on Select a web push message, a list of your Design Studio web push messages. Pick a message and click Use message, or click Create on Start from scratch to write a new one in Design Studio. If another message already uses the one you pick, click Make a copy to use a copy of it.

Select a web push message, with a Blank card and an Order shipped message that shows Preview and Use message buttons

A message that isn’t in Design Studio yet opens in the Rich Push editor instead if it’s in an A/B test, has translations, or already has content from the Rich Push editor. A Design Studio message stays in Design Studio, with its translations and A/B test variations. Browsers can’t receive custom JSON payloads, so the Custom Payload tab isn’t available for web push.

Write in Design Studio

You can also start in Design Studio: click Create and choose New web push. A Design Studio web push message has a Title, a Message, and a Link. It doesn’t have an image, icon, badge, action buttons, custom data, or advanced options. Messages that open in the Rich Push editor have those fields. For a transactional message, you can also set link, image_url, and custom_data in each API request.

A Design Studio web push message with Website, Browsers, and Link settings above a notification titled Your order is on its way
  • Above the notification, choose a Website and which Browsers receive the message.
  • In Link, set the page that opens when someone clicks the notification. It works like the Rich Push editor’s Link in the table below. If you leave it blank, the notification opens your site’s home page. In a translated message, each language has its own link.
  • Click Preview to see the notification the way each browser and operating system draws it. Next to the browser picker, Preview shows about how many bytes the notification uses, including the link, out of a budget of 3,179 bytes. The count is before Liquid renders, so leave room for personalized values.
  • Click Test… to send the message to one of a person’s saved browsers.
  • Click Publish to send your changes to the messages that use it. Design Studio saves your edits as you go, but a message keeps sending what you last published.

After you choose a Design Studio message for a workflow step, broadcast, or transactional message, the editor shows its name. Click Edit in Design Studio to change it, or Change message to pick a different one.

A web push step's editor showing the Order shipped Design Studio message, with Edit in Design Studio and Change message buttons and a Chrome on macOS preview

Preview your notification in each browser

Each browser and operating system draws notifications differently. The preview has a menu of platforms: Chrome on macOS, Chrome on Windows 11, Edge on Windows 11, Firefox on macOS, Safari on macOS, Safari on iOS and iPadOS, and Chrome on Android. Pick one to see your notification the way that platform draws it. The preview leaves out the fields that platform doesn’t show, and a caption under the preview tells you what changed. See what each browser shows.

Preview in Design Studio, with the browser menu open to Chrome on macOS and a byte count of 143 of 3,179 next to it

Notification fields

The Rich Push editor has these fields. Design Studio web push messages have Title, Message, and Link only.

FieldRequiredDescription
TitleRecommendedThe first line of the notification. Every browser shows it. Keep it short; most platforms show one or two lines. If you leave it blank, the notification’s title is “Customer.io”.
MessageYesThe body of the notification. Every browser shows it, but most platforms cut off long text.
ImageNoA large image. Only Chrome and Edge on Windows and Chrome on Android show it.
LinkNoThe page that opens when someone clicks the notification. Use a full https:// URL or a path on your site. If you leave it blank, the notification opens your site’s home page. On http://localhost, even a path opens the site root, because the service worker only opens https:// links.
Notification iconNoA small https:// image, like your logo, that appears beside your text. Safari doesn’t show it.
BadgeNoA small, single-color https:// image. Only Chrome on Android shows it, in the status bar. Use a shape on a transparent background; Android shows it as a silhouette.
Action buttonsNoUp to two buttons, each with a label of up to 32 characters and an optional https:// URL. A button without a URL opens your Link. Safari doesn’t show buttons.
Custom DataNoExtra key-value pairs with string values. Customer.io sends them with the notification as custom_data. The notification doesn’t display them. When someone clicks a notification that opens a page on your site, the SDK passes them to that page; see Read custom data on your site.

Browsers limit how much content a notification can carry. Below the action buttons, the composer shows about how many bytes the whole notification uses, including the title, message, link, custom data, and advanced options, out of a budget of 3,179 bytes. The count is before Liquid renders, so leave room for personalized values. If a rendered notification is too large, Customer.io doesn’t send it to that browser.

Advanced options

Open Advanced options to change how browsers present your notification. Browser and operating system support varies: unsupported options can be ignored. Test on the browsers your audience uses; these settings don’t override notification permissions or Focus settings.

ControlHow to use it
Keep on screen until dismissedRequests that the notification stay visible until someone dismisses it. Browsers can ignore this request.
Silent (no sound or vibration)Requests a silent notification. Clear Vibration pattern (Android) before turning this on.
Replace earlier notification with the same tagGive related notifications the same tag to replace an earlier notification. Use 1–64 characters: A–Z, a–z, 0–9, _, ., :, or -. Liquid is allowed.
Alert again when replacingRequests another alert when replacing a notification. Set a tag first. Sound and vibration still depend on Silent and the browser’s settings.
Vibration pattern (Android)Enter milliseconds alternating vibration and pauses, like 200, 100, 200 (up to 10 values). Turn off Silent first. Other platforms can ignore vibration.
LanguageSet a language tag, like en or pt-BR. This describes the notification’s language; it doesn’t translate your text.
Text directionChoose Auto, Left to right, or Right to left. Browsers can ignore direction.
Show time (event time instead of arrival)Set the displayed time using Liquid that renders to epoch milliseconds or an ISO-8601 date. This doesn’t schedule delivery.
App badge count (Safari / Home Screen apps)Set a whole number from 0 to 99999, or Liquid that renders to one. 0 clears the badge. Requires browser support for app badges; this is separate from the Badge image above.

For an event-triggered order automation using the latest Liquid version, set the tag to order-{{ event.order_id | default: "general" }}. The fallback groups updates without an order ID under order-general; choose a fallback that fits your replacement behavior. Turn on Alert again when replacing if each update should request an alert. A rendered tag with unsupported characters, like spaces or #, is dropped along with Alert again when replacing; the notification still sends without replacement.

In Show time (event time instead of arrival), use the time of the event that triggered your automation:

LIQUID
{{ event_timestamp | times: 1000 }}

Customer.io event timestamps use seconds; multiplying by 1000 converts them to milliseconds. If you turn on Silent, leave the vibration pattern empty. Check receipt and replacement behavior on a real browser before sending to your audience.

Personalize with Liquid

You can use Liquid in Title, Message, Image, Link, Notification icon, Badge, Action buttons, and Custom Data. In Advanced options, Liquid works in the notification tag, show time, and app badge count. Language, text direction, vibration, and toggles don’t support Liquid.

When Customer.io sends a notification, it renders these fields and checks that the icon, badge, and button URLs start with https://. If one of them doesn’t, Customer.io removes that field and sends the rest.

A Liquid error stops the notification

If a field uses a variable that doesn’t exist for the person or the event, like {{event.request_id}}, Customer.io doesn’t send the notification, while your website and data integration report no errors. What happens depends on the field:

  • Notification icon, Badge, Action buttons, Replace earlier notification with the same tag, Show time (event time instead of arrival), and App badge count (Safari / Home Screen apps) only go to browsers. If one of them doesn’t render, Customer.io doesn’t send the notification to browsers and retries the delivery with WEBPUSH_RENDER_FAILED, in case the data arrives in the meantime. If it still doesn’t render, the delivery fails.
  • Title, Message, Image, Link, and Custom Data are the same fields that app push uses (app push calls Link Deep Link or Web URL). If one of them doesn’t render, Customer.io doesn’t send the notification, and the delivery fails with a Liquid error, like any other push message.

Make sure your event or person always has every variable your message uses, or give optional variables a fallback. On the latest Liquid version, use the default filter. With legacy Liquid, use if/else fallbacks. For example, on the latest version:

LIQUID
https://example.com/bookings/{{ event.request_id | default: "" }}

Choose which browsers receive your message

Website

In the editor, select a Website to reach only browsers that subscribed on that site. Leave the setting on All websites to reach browsers across all your sites. Browsers with no recorded website receive only All websites sends. The plugin records their website on their next identified visit with JavaScript SDK 0.8.0 or later. In a translation of a Design Studio message, the default language sets the website.

All browsers, the last used browser, or one browser

Choose which of the person’s eligible browsers for the selected Website receive the message. Design Studio calls this setting Browsers. The Rich Push editor calls it To, or Device if your workspace uses multiple apps, and its options use the same names as app push.

Design StudioRich PushSends to
All subscribed browsers (default)All profile devicesEvery eligible browser on the person’s profile.
Last used browserLast used deviceThe person’s most recently used eligible browser. Registering or updating a web device updates its last_used time.
Custom endpointCustom device tokenOne browser. Enter the browser’s subscription endpoint, the push address that starts with https://.

New web push messages send to all eligible browsers until you change this setting.

The Browsers menu in Design Studio, with All subscribed browsers (default), Last used browser, and Custom endpoint

Frequency caps

A frequency cap limits web push messages only through a rule that lists Web push. Browser notifications sent through an existing push message count as Push. See which channels you can limit for how existing caps changed when web push became its own channel.

Rate limits

In an automation, push and web push messages count toward the same per-minute push rate limit.

Test your message

To check that browsers receive notifications, use the tests in > Workspace settings > Web push. You can send a test to this browser or send a test to a person.

To test this message’s content, click Test… in Design Studio or Send test… in the Rich Push editor. Search for a person by email, choose them in Person, then choose one of their browsers in Saved browser. If the person has only one browser, it’s selected for you.

In the Rich Push editor, you can also test a browser that isn’t on a person’s profile yet: click Advanced: paste a subscription and paste the browser’s subscription JSON. To get it, open your site in the browser you want to test, open your browser’s JavaScript console, and run:

JAVASCRIPT
JSON.stringify(await cioanalytics.webPush.subscription())

Use the test to check that the notification appears and clicking it opens your link. Settings and composer test sends check sending without creating a real automation delivery. They don’t create an automation Sent tab entry or automation delivery metrics. To verify those, send a real test delivery.

The test uses your Sample data to render Liquid, even when you pick a person’s saved browser. If a field doesn’t render, the dialog tells you which variable is missing. Fix it before you send to your audience, because a field that doesn’t render stops the notification for real recipients too.

Metrics

Reports show web push as its own channel with the following metrics.

  • Sent: Customer.io handed the notification to the browser’s push service. Sent includes notifications that bounce, the same as app push.
  • Delivered: The Customer.io service worker showed the notification. A browser that couldn’t receive the notification right away reports delivered when it shows the notification, if the push service still holds it.
  • Opened: Someone clicked the notification or one of its buttons.

Web push has no Clicked metric or event. A click on the notification or one of its buttons is recorded as Opened.

Reporting webhooks and data out integrations list web push under Web push events, separate from push events. In reporting webhooks, web push events have the object_type web_push. Data out integrations name them by destination: for example, Web Push Opened in Segment, and Web_push Opened in Mixpanel and Amplitude.

Read custom data on your site

When someone clicks a notification and the click opens a page on your site, the web push plugin gives that page the notification’s custom data. Listen for it in one of two ways. Use one, not both, or your code runs twice for each click. Call onClick after cioanalytics.ready so the plugin is registered:

JAVASCRIPT
cioanalytics.ready(() => {
  cioanalytics.webPush.onClick(({ deliveryId, action, customData }) => {
    console.log(deliveryId, action, customData);
  });
});

Or listen for the cio:webpush:click event on window. Its detail has the same fields:

JAVASCRIPT
window.addEventListener('cio:webpush:click', (event) => {
  const { deliveryId, action, customData } = event.detail;
  console.log(deliveryId, action, customData);
});

action is an empty string when the person clicks the notification body. When they click an action button, it’s the button’s ID, which Customer.io derives from the button’s label, like view-order. onClick returns a function that removes the listener. This needs version 0.6.1 or later of the JavaScript SDK. If the click opens a page outside your site, your page doesn’t receive it. When a notification arrives while your site is open, the plugin also dispatches cio:webpush:received on window, with deliveryId, title, and customData.

Updated November 24, 2026