How to Embed Hotel Booking on Any Website (Step-by-Step 2026)

Date Modified: May 22, 2026

Why Embed Hotel Booking on Your Website?

Adding a hotel booking engine to your website transforms passive readers into revenue-generating customers. Rather than linking visitors away to Booking.com or Expedia — where they may never return — an embedded hotel search keeps them engaged on your page, captures their booking intent in the moment, and earns you a commission every time they confirm a stay.

For travel bloggers, destination guides, local tourism websites, and digital creators, an embedded hotel booking tool is the highest-converting affiliate product available. Interactive booking widgets consistently outperform text links and banner ads because they deliver immediate value: the visitor finds a hotel right there on your page.

 

What You Need Before You Start

To embed hotel booking on your website, you need three things: a website where you can edit the HTML (this includes WordPress, Wix, Squarespace, Webflow, and any custom site), a free partner key from IMPT (takes 60 seconds to obtain), and two minutes of your time. No coding experience is required. No contract or credit card is needed.

 

Step-by-Step: How to Embed Hotel Booking With the IMPT Widget

Step 1 — Get your free partner key

Visit swarm.impt.io/widget and click ‘Get a partner key.’ Select your preferred payout method (Wise, PayPal, Stripe, IMPT debit card, or IMPT token), submit your details, and receive your unique partner key instantly. Approval is fully automated — no waiting for a human review.

Step 2 — Copy the embed code

Your partner key unlocks a personalised embed snippet. The code consists of two elements: a script tag that loads the widget JavaScript from swarm.impt.io, and an empty div with the ID ‘impt-swarm’ that tells the script where to render the search form.

Step 3 — Paste the code on your website

Navigate to the page or template where you want the hotel search to appear. Open the HTML editor and paste the two lines anywhere in the body. On WordPress, use the Custom HTML block in Gutenberg. On Wix, use the Embed HTML element. On Squarespace, use the Code Block. On any custom site, paste directly into the HTML file.

Step 4 — Test the embed

Reload your page. The IMPT hotel search form should appear immediately, showing a destination input and a Search Hotels button. Type a city name to verify the widget queries live hotel inventory and redirects correctly to the IMPT booking page with your partner attribution in the URL parameters.

Step 5 — Monitor your earnings

Log into your IMPT partner dashboard to track clicks, booking intents, confirmed stays, and commission accruals. Payouts are processed monthly with no minimum threshold.

 

Embedding Hotel Booking on Specific Platforms

WordPress

In the Gutenberg editor, add a Custom HTML block to any page or post. Paste the two IMPT code lines inside the block. Alternatively, install the IMPT WordPress plugin from swarm.impt.io/wp, which handles the embed automatically via a widget or shortcode — no code editing required.

Wix

In the Wix Editor, click Add > Embed > Custom Embed > Embed HTML. Paste the IMPT code into the HTML editor panel. Resize and position the element as needed. The widget is responsive and adapts to the container width.

Squarespace

In the Squarespace page editor, add a Code Block from the block library. Ensure the block type is set to HTML (not Markdown). Paste the IMPT embed code and save. The widget renders in preview and live mode.

Any custom HTML site

Add the script tag in the head or just before the closing body tag. Place the impt-swarm div wherever you want the search form to appear. The widget is 8.7 KB gzipped and loads asynchronously, so it will not slow your page.

 

How Attribution Works When You Embed Hotel Booking

When a visitor uses your embedded hotel search, the IMPT widget creates a booking intent (called an ‘iid’) linked to your partner key, the visitor’s destination, and the channel (web embed). When the visitor completes a booking on the IMPT platform, a Stripe webhook matches the confirmed payment back to your iid. Your 5% commission is credited to your ledger and paid out monthly. The 90-day cookie ensures you receive credit even if the visitor books weeks after their initial search on your site.

 

Frequently Asked Questions

Does embedding hotel booking slow down my website?

No. The IMPT widget is 8.7 KB gzipped and loads asynchronously using the ‘async’ attribute on the script tag. It will not block page rendering or affect your Core Web Vitals score.

Can I embed hotel booking on multiple pages?

Yes. The same partner key and embed code can be placed on as many pages and domains as you like. All bookings attribute back to your single account.

What happens if a visitor searches but books later?

The 90-day cookie retains your attribution. If the visitor books within 90 days of their initial search via your widget, you receive the full 5% commission.

Is the embed code safe to use on any website?

Yes. The IMPT widget is MIT open-source — the full source code is publicly available on GitHub. It collects no PII, tracks only anonymised booking intent events, and is GDPR-compliant.

Do I need to declare the affiliate embed to visitors?

Best practice (and legal requirement in most jurisdictions) is to disclose affiliate relationships to visitors. A simple note such as ‘We earn a commission if you book via our hotel search’ is sufficient.

 

Embed Hotel Booking — Start Now

Visit swarm.impt.io/widget to get your partner key and embed code in 60 seconds. The IMPT hotel booking widget is free, open-source, and backed by 8 million hotels in 195 countries. Every booking earns you 5% commission and offsets 1 tonne of CO₂ — at no cost to you or your visitors.

Keep Reading / Similar Blogs

Share

IMPT Girl Pointing

Ready to travel sustainably? 🌍✈️

Book your eco-friendly hotel with IMPT Travel today and join the movement towards a greener future!

IMPT APP - Section

Download Our App

Join the movement towards a greener future—discover sustainable stays, earn carbon offset rewards, and make every trip count.

🌿 Available on iOS and Android

Comments are closed.

IMPT TRAVEL

Travel with purpose! IMPT Travel lets you book eco-friendly stays, offset your carbon footprint, and earn rewards—making every journey a step toward a greener world. 🌍✨

Categories