Integrations
Webflow push notifications
Two working setups for Webflow sites, from no-code to a 10-line Cloudflare Worker.
What Webflow allows
Webflow lets you add custom code to the head of every page, so the SuperWicket script is easy to install. It doesn’t let you serve your own files from the root of your domain, and a service worker hosted on a CDN or another domain is rejected by browsers. That leaves two routes.
No code: the hosted subscribe page
- Create a website in SuperWicket and turn on the hosted subscribe page.
- Link to it from a button in your navbar, a CTA section, or the end of your CMS blog template.
- Optional: connect a CMS collection’s RSS feed (enable it in the collection settings) for automatic new-item alerts.
Advanced: a Cloudflare Worker for on-site prompts
If your domain’s DNS is on Cloudflare and you proxy your Webflow site through it, a Worker bound to a single route can serve the service worker from your domain. Webflow doesn’t officially support running behind a proxy on all plans, so check SSL mode (Full) and test publishing before relying on it.
- In Cloudflare, create a Worker with this code:
export default { async fetch(request) { return new Response( "importScripts('https://superwicket.com/p/sw/YOUR_PIXEL_KEY.js');\n", { headers: { 'Content-Type': 'application/javascript', 'Service-Worker-Allowed': '/', 'Cache-Control': 'public, max-age=300' } } ); } }; - Add a route for
your-site.com/superwicket-sw.jspointing to the Worker. Only that one URL runs the Worker; every other request goes to Webflow unchanged. - Open
https://your-site.com/superwicket-sw.jsand check you get the one line of JavaScript. - In Webflow, go to Site settings, Custom code, Head code, and add:
Publish the site.<script async src="https://superwicket.com/p/YOUR_PIXEL_KEY.js"></script>
Custom code requires a paid Webflow site plan.
Test it
Subscribe in a normal Chrome window and send yourself a test from the dashboard. If it doesn’t arrive, use the push tester to check the browser, then the troubleshooting checklist.
Frequently asked questions
Can I host the service worker on a CDN for Webflow?
No. Browsers require the service worker to come from the same origin as your page. A CDN on another domain won’t work. A Cloudflare Worker on your own domain does.
Try it on your own site
The Free plan has no time limit and needs no card. Add one script tag, or share a hosted subscribe page if you can’t upload files.