Onboarding guidesUpdated 11/24/2026

Add Haven to your existing website

This is for hosts who already have a marketing website and want Haven to handle bookings. You do not need to rebuild your site. The highest-leverage step is to make your main Book now or Check availability button point to your Haven direct booking page. Once that button goes to Haven, every visitor who is ready to book lands on your official checkout flow.

What to replace

Look for anything on your current site that sends guests somewhere other than Haven:

  • An old PMS booking widget or embedded calendar
  • A Book now link that still goes to Airbnb, Vrbo, or a legacy channel manager
  • A contact form or Inquire now button used as a stand-in for booking
  • A stale availability link that no longer reflects your real calendar

The goal is one clear path: your website introduces the property, and Haven completes the booking.

If you can edit your website yourself, this usually takes a few minutes.

  1. Open your Haven dashboard.
  2. Go to Sites → Listing sites.
  3. On the card footer, click the copy icon next to Share to copy the booking link. The floating View preview card in the listing editor and on the calendar has Copy for the same address and Open to view it in a new tab.
  4. On your existing website, open the editor for your main Book now or Check availability button and paste that Haven URL as the button destination.
  5. Save your changes, then test the button in a private or incognito browser window. You should land on your live Haven booking page, not an old PMS page or a contact form.

If you are not live yet or need help finding your link, start with Go live and grab your booking link.

Option 2 — Send this to your web developer

If someone else manages your website, copy the message below and send it to them with your Haven direct booking link filled in.

Please replace our main Book now / Check availability button with this Haven direct booking link: [paste link]. This should be the primary booking path from the homepage, property pages, and any navigation buttons.

Ask them to confirm once the change is live so you can test it as a guest.

Option 3 — Embed the booking widget on your site

If you want guests to check dates and pricing without leaving your website, embed the Haven booking widget. It shows the same availability calendar, pricing, and Book button as your Haven property page, and renders directly on your page (not in an iframe) so the date calendar overlays your own content. Payments and the guest portal work exactly as they do everywhere else.

Where checkout opens depends on where the snippet loads its script from:

  • From your custom domain — once a custom domain on the listing (or on a group site it belongs to) is Active, the dashboard hands you a snippet whose script comes from that domain. Checkout then opens right on your page, in a panel over it: guests pick dates, pay and see their confirmation without leaving your site.
  • From Haven — without an Active domain the script loads from bookwithhaven.com, and checkout opens on your Haven booking page in a new tab. Add data-checkout="new-tab" to the widget <div> if you prefer the new tab even with a domain.

The widget is responsive: it shows the full Arrival / Checkout / Who booking bar in wide columns and an inline stacked card in narrow ones, so the same snippet works wherever you drop it — there is no layout setting to choose.

  1. Open your Haven dashboard and go to Settings → Widget (optional) (or search "widget").
  2. Pick the listing and optionally set accent color and font. No listing yet? The tab still hands you a working snippet — copy it and install it now; it starts taking bookings the moment your first listing exists. To create that listing, paste your website's URL right there and Haven copies it into a listing (photos, description, amenities), or choose Build a listing to enter the details by hand.
  3. Choose Install it myself for step-by-step instructions, or Send instructions to your developer for the same brief ready to email — both include the code snippet.
  4. Paste the snippet into your website editor wherever you want the widget to appear (most builders like WordPress, Squarespace, and Wix have an "embed" or "custom HTML" block).
  5. Publish and test it as a guest: pick dates, confirm the price appears, and click Book now — checkout should open right on your page (snippet served from your custom domain) or on your Haven booking page in a new tab (snippet served from Haven).

Website builders

  • Wix — use a Custom Element (Velo, available on a premium plan with a connected domain), or simply link your Book now button to your booking subdomain (Option 5). Wix's Embed HTML block also works, but it renders in a sandboxed frame: make the block at least 900 px tall so the calendar and checkout fit, and know that checkout inside it needs a current browser (Chrome/Edge 114+, Firefox 131+, Safari 18.4+). On older browsers the widget shows a Continue in a new tab button instead.
  • Squarespace — a Code block.
  • WordPress — a Custom HTML block.

Apple Pay is not offered inside a frame on Wix or Squarespace pages (the page's own domain would need Apple's verification); Google Pay, Link and cards all work.

Customize in the code

Color and font are data- attributes on the widget <div>. A developer can change them in the snippet without logging into Haven:

AttributeValuesNotes
data-codeyour listing's short code (e.g. a1b2c3d4)Which listing the widget books
data-colorhex without # (e.g. c9a227)Accent / primary button color
data-fontcurated font key (e.g. inter, playfair-display)Matches the fonts in the dashboard picker
data-checkoutnew-tabAlways open checkout in a new tab

Example:

<script src="https://bookwithhaven.com/embed/haven-widget.js" async></script>
<div
  data-haven-booking-widget
  data-code="a1b2c3d4"
  data-color="c9a227"
  data-font="playfair-display"
></div>

data-code is the listing's short code, the one in its Haven address (/properties/<code>/…), not the numeric listing ID. Settings → Widget (optional) fills it in for the listing you pick, so copy the snippet from there, or ask the Haven assistant in your dashboard for "the booking widget code" and it hands you each listing's snippet with its code filled in.

Load the haven-widget.js script once per page (even if you show more than one widget). The widget renders on your page inside its own isolated styling, so it won't clash with your site's CSS, and it resizes itself as the calendar opens.

Because the mount point is a plain <div>, the snippet drops straight into React, Next.js, and other TypeScript sites with no extra setup.

Building the site with an AI coding tool such as Lovable, Bolt, v0, Replit, Cursor, Claude Code or Codex? Add Haven Build (https://www.bookwithhaven.com/api/public/mcp/build) to the tool as an MCP server: it hands the tool your listing codes and working code for the widget or a custom booking flow, and checks the result. Build a direct booking site with AI has the three steps and a prompt to paste, and API keys covers the key your site needs if it fills its pages from your Haven listings.

Each booking widget is tied to one listing. If you have several properties, add one <div data-haven-booking-widget> per property page on your site, and use the search widget below to search all of them at once.

Track widget bookings on your own page (for developers and ad agencies)

When a guest finishes a booking they started in the booking widget, the widget tells your page with a JavaScript event, haven:booking. Use it to send a conversion to Google Ads, GA4, Meta or any other tag that already runs on your site:

<script>
  window.addEventListener('haven:booking', function (e) {
    var b = e.detail;
    if (b.status !== 'booked') return;
    gtag('event', 'purchase', {
      transaction_id: b.reference,
      value: b.value,
      currency: b.currency,
    });
  });
</script>

event.detail carries:

FieldExampleMeaning
statusbookedbooked (confirmed stay), requested (request to book sent) or inquiry (message sent)
referencea1b2c3d4The booking's reference, the same one the guest sees. Use it as the transaction ID
listingCodec3ad4012The listing's code, the widget's data-code
checkIn2027-03-14Check-in date
checkOut2027-03-18Check-out date
nights4Nights
guests6Adults and children (infants are not counted)
value2480.5The stay's total in the listing's currency, taxes and fees included; null when the stay has no price yet, as for an inquiry
currencyUSDCurrency of value

It carries nothing about the guest. The event fires once per booking, on the page the widget is on, whether checkout opened on your page or in a new tab. With a new-tab checkout it fires when the guest comes back to your page, or within a few seconds if your page is still in view; if they closed your page first, it fires the next time that browser opens any page of your site with the widget script on it, for up to a week. A request to book fires once, as requested, when the guest sends it, and not again when you approve it.

Two limits. A guest who never returns to your site in that browser is not reported, so for ad platforms pair the event with server-side conversions where you can. And the event covers bookings started in the booking widget: a guest who clicks a stay in the search widget books on that listing's own page, so those bookings are measured by the tags on the booking site instead (Marketing → Tracking).

Search all your stays from one widget

Have several listings? The search widget searches every stay on a group site at once, right on your page. Guests pick dates and guests, see which stays are open with the price for their stay, and click through to book. Stays that don't fit the search are listed underneath, marked with the reason (booked, too small, no pets). Before a guest picks dates it lists every stay on the site, so it also works as an "Our properties" grid.

  1. Go to Settings → Widget (optional) and switch to Search widget (or search "search widget").
  2. Pick the group site and optionally set accent color and font. The live preview runs the real widget.
  3. Copy the two lines and paste them where the search should appear. In WordPress that's a Custom HTML block. Use Email the code to your developer if someone else manages the site.

Each stay opens the same page the group site's own card opens: your own page for that listing when the site sends guests there (see below), otherwise its Haven page with the dates and guests filled in. Prices come from the same pricing as each listing's own booking bar, shown the way the group site's own cards show them: the nights times the average nightly rate with the total under it, or the stay total when the site's Nightly price on listing cards switch is off (group site design). A listing with a payment schedule also shows its split for those dates, such as 50% now, 50% later. Listings whose bookings OwnerRez processes show no Haven price in the results; the price appears on the listing page.

<script src="https://bookwithhaven.com/embed/haven-widget.js" async></script>
<div data-haven-search-widget data-code="YOUR-SITE-CODE"></div>

Here data-code is the group site's code, not a listing's: the Search widget tab fills it in for the site you pick. data-color and data-font work the same as on the booking widget. It is the same haven-widget.js script, so a page with both a search widget and a booking widget loads it once.

Moving off the OwnerRez WordPress plugin? Paste the search widget where your OwnerRez search or property-list widget was, and put a booking widget on each property page in place of the OwnerRez booking widget. Property details the OwnerRez plugin's [ownerrez] shortcodes pulled in (descriptions, amenities, photo carousels) are not covered by the widget and need to stay as page content. Haven itself never needs OwnerRez's paid WordPress Plugin + Integrated Websites add-on; once no page on your site uses an [ownerrez] shortcode, nothing on it needs the add-on either.

Show nightly prices and availability on your own pages (for developers)

A site with its own calendar or search pages (a WordPress theme, a property plugin, a custom build) can read each listing's nightly prices and open dates straight from Haven, with no login or API key:

GET https://bookwithhaven.com/api/v1/public/properties/LISTING-CODE/night-prices?start=2027-03-01&end=2027-04-01&guests=4

LISTING-CODE is the listing's code, the same one its booking widget uses. start is the first night, end is the day after the last night (like a check-out date), and guests is the party size; all three are required, and one request covers up to 366 nights within the next two years. The answer lists every night with available (a guest can check in that day on the listing's own calendar) and nightlyPrice (what the listing's calendar shows for that night and party, in the listing's currencyCode, after its direct-booking discount), plus bookable for whether the listing takes bookings right now. A night Haven has no price for, such as on a listing whose bookings OwnerRez prices, comes back with nightlyPrice: null. The prices come from the same pricing as the listing's booking bar, so they follow your rates, overrides, seasons and promotions, including prices synced in from a PMS. Requests are limited per visitor, so fetch what a page shows rather than every listing at once.

For the price of a whole stay, with fees, discounts and taxes, ask for a quote the same way:

GET https://bookwithhaven.com/api/v1/public/properties/LISTING-CODE/quote?start=2027-03-01&end=2027-03-05&adults=2&children=1&pets=0

adults is required; children and pets default to none. The answer says whether the stay can be booked (available, with a reason such as minimum_stay when it cannot), the total in the listing's currency with its lineItems, whether tax is added at checkout (taxesAtCheckout), and a bookingUrl that opens the listing with those dates filled in. It is the same price the listing's own booking bar shows, so show it as returned rather than adding anything up yourself. A stay Haven holds no price for comes back with total: null. To send the guest straight to checkout from your own Book button, your developer or AI tool uses the checkout handoff described in the booking endpoints reference.

Option 4 — Put your Haven blog on your site

A blog that keeps publishing useful local posts is one of the strongest ranking signals a small site can send — and you do not have to write it. Turn on Blog Autopilot for a blog, then open Settings → Widget (optional) → Blog widget, copy the two-line code and paste it on the page you want to be your blog (for example yoursite.com/blog). The posts render as real page content on your site, each with its own address, and new posts appear on their own.

Under the code, tell Haven which copy search engines should index: My Haven site (the default) or My website. Pick My website, enter the page's address and click Check my page — once Haven finds the code there, your posts rank on your own domain and your Haven site's copies point to them, so the two never compete. See Blog Autopilot for the details.

Option 5 — Use a custom domain

Your default Haven link works immediately, but a custom domain makes the booking experience feel fully branded — for example, book.yourproperty.com instead of a generic subdomain. Once the domain is Active, guests pick dates, pay and see their confirmation at that address: checkout runs on your domain, not on bookwithhaven.com. A booking subdomain like this is the simplest way to keep your marketing site where it is (Wix, Squarespace, WordPress) and point its Book now buttons at book.yourproperty.com.

See Custom domains when you are ready to connect a domain you already own. You can also set a memorable Haven subdomain through Custom URLs without buying a new domain.

Replacing the website that already lives on the domain? Follow Switching from your old website with the least downtime: check the Haven address first, change only www, and allow about 5–15 minutes for the certificate on https://www.

If the domain is moving off CraftedStays, leftover A and AAAA records on the root host can keep the old site answering even after www is Active on Haven. The domain sheet has a Coming from CraftedStays? row with that checklist; the same steps are in Custom domains.

Haven partners — put your lead form on your site

Agencies and property managers in the partner program can embed the lead form new clients fill in on their own website, WordPress included. In the partner dashboard open Lead form, press Copy code on Embed on any website, and paste it into a Custom HTML block (WordPress), a Code block (Squarespace) or an Embed element (Wix, Webflow). It is the same form you edit on that screen, and every answer arrives under Clients → Client requests. See Partner Mode.

What not to do

A few common mistakes send guests to the wrong place or split your traffic:

  • Multiple competing booking paths on the same page — one button to Haven and another to an old PMS link, Airbnb, or a contact form
  • Sending some guests to Haven and others to a PMS depending on which button they click
  • Hiding the direct booking button below less important CTAs like social follows or newsletter signups

Pick one primary booking button and make it obvious on desktop and mobile.

You're done when…

  • Your main website Book now button opens your Haven booking page
  • Individual property pages point to Haven (not an old inquiry form or channel link)
  • Mobile navigation includes a clear booking CTA
  • You have tested the link yourself as a guest would

Once Haven is wired in, put the same link everywhere else guests might find you. See Launch your direct booking site for where to share it next.

New to Haven?

Everything in this guide, done for you

Haven is the direct booking platform these guides are written for — a branded site, secure payments, and guest relationships you own. Build yours free.

See how Haven works

Free to build · No credit card · Private until you publish