Script tag
Install Waitrooms with a single script tag. Works on any site, framework or CMS.
The quickest install, and it works anywhere you can edit HTML: Shopify themes, WordPress, Webflow, static sites and single-page apps.
HTML
<!-- First thing in <head>, on every page you want protected -->
<script src="https://api.waitrooms.dev/v1.js" data-room="your-room"></script>What it does
- Briefly hides the page while it checks the line (never more than 3 seconds).
- If the visitor already holds a valid pass, shows the page immediately, with no network request.
- Otherwise it asks Waitrooms. Under capacity, or if protection is switched off, the page simply appears. Over capacity, the visitor is sent to the waiting page.
- When it's their turn they come back with a pass, which is moved from the URL into a cookie (
wr_pass_<room>).
Options
| Attribute | Meaning |
|---|---|
data-room | Your room ID. Required. |
data-api | API address, if not the script's own origin. |
Reporting conversions
Call this on your order confirmation page to see conversion after admission in Analytics:
JavaScript
window.Waitrooms?.convert();A script can be blocked by a determined bot. For anything scarce, also verify the pass on your server.
Something unclear? Email hello@waitrooms.dev.