customer-origin simulator
Demo Flow
This page behaves like a customer site. It loads loader.js from the tracking domain and
registers /demo/push-sw.js as the service worker (scope: /demo/).
Notification permission: unknown
Service worker: unknown
quick start
- Sign in and create a campaign in Campaigns.
- Verify the customer domain in Domains (this demo page origin must be verified: push.masterstats.com).
- Paste the campaign id above.
- Click Load loader.js, then click Subscribe.
- Go back to the campaign page and send a push. Click the notification to confirm redirect + analytics.
ready
Notes:
- Tenant must verify this domain (push.masterstats.com) before
/config and /subscribe succeed.
- Worker must be configured with matching VAPID_* and REDIRECT_SIGNING_SECRET.
troubleshooting
- Subscription failed - no active Service Worker: click Load loader.js, wait 1 second, then retry Subscribe (or reload /demo/).
- Failed to fetch: domain may not be verified for this origin, or public endpoints are unreachable. Verify in Domains.
- Notification permission blocked: reset site permissions in your browser settings for this domain and retry.