Web Push
Browser push notifications for your team and for visitors — live-chat alerts and journey Web Push nodes.
Reach people when they are not looking at your site or dashboard. Web push sends native browser notifications to workspace members (for new live-chat messages) and to visitors on your website (from journey Web Push nodes).
What you can do
- Alert workspace members when a visitor sends a new live chat message — configurable in Live Chat → Settings, on by default.
- Send Web Push messages from journeys using reusable templates.
- Personalize title and body with visitor traits and event properties.
- Log delivery in Web Push logs per user and template.
Team notifications (live chat)
- In Live Chat → Settings, keep Browser notifications for your team enabled (default).
- Each teammate opens the dashboard and allows notifications when the browser prompts.
- When a visitor sends a message, members receive a notification with a preview and a link to the conversation.
Turn the toggle off if you only want in-app sounds while the dashboard is open.
Visitor notifications (journeys)
- Create a Web Push template under Templates.
- Add a Web Push node in a journey and select the template.
- On your website, complete the visitor push setup below.
- After the visitor opts in, your site calls
leadara.subscribePush()(usually behind a button or after login).
Visitors who never subscribed will not receive journey pushes — the Web Push step is skipped (shown as Skipped in journey run history, not green Finished) and the run continues. Check Web Push logs for FAILED with No push subscriptions.
Visitor push setup on your website
This is separate from the main SDK snippet. Team live-chat alerts in the dashboard do not require hosting anything on your site.
-
Download the Leadara push service worker from your API base URL:
https://api.example.com/leadara-push-sw.js(Use the same API base shown on Integrations → Install.)
-
Host the file at your site root — it must be available at:
https://your-shop.com/leadara-push-sw.jsSame domain as your pages (
wwwvs non-wwwcounts as different origins). -
Subscribe after opt-in — ask for notification permission in context (after sign-up, order, or a settings toggle), then:
const result = await leadara.subscribePush();When
resultissubscribed, that visitor can receive journey pushes. -
Identify logged-in users so subscriptions follow the same profile as your analytics.
After the first opt-in, Leadara automatically ensures a browser subscription on each page load and after identify() when notification permission is already granted — it creates the subscription if missing and posts it to your workspace without a second prompt.
Optional: add data-auto-subscribe-push="true" on your SDK script tag to prompt for permission right after identify() for logged-in users (useful on admin or member-only areas).
Check a visitor's subscription
Open Users → pick a person → Messages. The Web push section shows:
- Whether they have an active browser endpoint registered for journey push
- Each endpoint (masked for privacy) and when it was last updated
- Recent journey push attempts with SENT or FAILED and any error (for example No push subscriptions)
The user Overview tab also shows Push subscription: Yes/No at a glance.
Tips
- Ask for notification permission in context — after signup or a meaningful action — not on first page load.
- Keep titles short; the body can carry the offer or update.
- Pair live-chat push with the existing inbox sound for teammates who keep a dashboard tab open.
- Test on Chrome or Firefox desktop first; Safari requires macOS Ventura+ or iOS 16.4+ with a added-to-home-screen PWA for web push.