Can You Embed a Hotel Booking Widget on Squarespace?
Yes. Squarespace supports custom HTML and JavaScript embeds via its Code Block, available in the Page Editor on all paid Squarespace plans (Personal, Business, Basic Commerce, and Advanced Commerce). This allows publishers on Squarespace to add any third-party widget — including the IMPT hotel booking embed — to any page, blog post, or section of their site.
The Code Block in Squarespace is designed for exactly this purpose: embedding third-party tools like maps, booking widgets, social feeds, and payment forms. The IMPT embed code is two lines of HTML and works in the Code Block without modification.
Step-by-Step: Adding the Hotel Booking Embed to Squarespace
Step 1 — Get your IMPT partner key
Visit swarm.impt.io/widget, click ‘Get a partner key,’ and complete the free registration (60 seconds). Receive your personalised two-line embed code.
Step 2 — Open Squarespace Pages editor
Log in to Squarespace. Navigate to Pages in the left panel. Click on the page where you want the hotel search to appear. Click Edit to open the Page Editor.
Step 3 — Add a Code Block
Click the ‘+’ icon to add a new block in your desired location on the page. Scroll to or search for ‘Code’ in the block menu. Click ‘Code’ to add a Code Block.
Step 4 — Paste the IMPT embed code
In the Code Block editor, ensure the language is set to HTML (the default). Delete any placeholder text. Paste both lines of the IMPT embed code: the script tag and the impt-swarm div. Click ‘Apply.’
Step 5 — Preview and publish
Click Preview to see how the hotel search form renders on your page. The IMPT widget should appear as a search form with a destination input and a Search Hotels button. Click Save and then Publish Changes to make it live.
Adding the Hotel Embed to Squarespace Blog Posts
For Squarespace blog posts, add the Code Block within the post body by clicking the ‘+’ icon at any point in the post content. This is particularly effective for travel destination posts where adding hotel search directly below your accommodation recommendations captures booking intent at peak moment.
Best Squarespace Sites for a Hotel Booking Embed
Travel portfolios and personal travel blogs built on Squarespace — known for its strong design templates — benefit from the IMPT widget on destination pages and blog posts. Squarespace wedding websites, where guests often need local hotel recommendations, can add the IMPT embed to an Accommodation page for direct bookings. Event websites built on Squarespace for conferences, retreats, or workshops can include the hotel search on their Travel/Stay page. Lifestyle and food bloggers who occasionally cover travel can add the embed to relevant posts without it disrupting their broader site design.
Earnings From a Squarespace Hotel Booking Embed
The 5% commission and 90-day cookie apply regardless of the platform your website uses. A Squarespace travel blog generating 5,000 monthly visitors on destination content with a 0.4% booking conversion rate generates 20 bookings per month. At 5% commission on an average €250 booking, that is €250 per month from a widget that cost nothing to install and 60 seconds to set up.
Frequently Asked Questions
Does the Code Block work on Squarespace Personal plan?
Yes. Code Blocks are available on all paid Squarespace plans. However, some Squarespace plan tiers restrict the execution of custom JavaScript in Code Blocks. If JavaScript does not execute, upgrade to the Business plan or above, which removes this restriction.
Will the hotel embed slow down my Squarespace site?
No. The IMPT widget is 8.7 KB gzipped and loads asynchronously. Squarespace’s CDN delivers your page content independently of the widget load, so your Squarespace site speed is unaffected.
Can I style the IMPT widget to match my Squarespace template?
The standard IMPT widget renders in a neutral style that suits most Squarespace templates. For brand-matched styling, fork the MIT open-source code from GitHub and modify the CSS. The fork retains full attribution and commission functionality.
Can the booking embed appear on every page of my Squarespace site?
To add the embed to every page, inject the code via Settings > Advanced > Code Injection (available on Business plan and above) in the Footer Code section. This places the widget globally without manually adding it to each page.
Add the Hotel Booking Embed to Your Squarespace Site — Free
Get your partner key at swarm.impt.io/widget. Add a Code Block to your Squarespace page. Paste two lines. Earn 5% on every hotel booking your visitors make — with a 90-day cookie and 1 tonne CO₂ offset per stay.
Keep Reading / Similar Blogs
- Travel Blog Monetisation: 7 Ways to Earn — Including Without Spending a Penny
- Shopify Hotel Widget: Add Hotel Booking to Your Shopify Store in 60 Seconds
- Wix Travel Widget: Add Hotel Booking to Your Wix Site Without Coding
- Hotel Booking API Free: Build a Travel Product Without a Budget in 2026
- Hotel iFrame Embed Code: The Simplest Way to Add Booking to Any Page
- Travel Widget JavaScript: One Script Tag, 36 Channels, 5% Commission
- Hotel Search API: Compare Options and Start Building for Free in 2026
- White Label Travel API: Build a Branded Booking Product in 2026
- NGO Carbon Offset Widget: Add Climate Credibility to Your Charity Website
- Corporate Sustainability Widget: Show ESG Progress on Your Company Website
- Carbon Offset Widget for Your Website: Add Climate Action in 60 Seconds
- Climate Widget for Website: Show Visitors You Mean It on Sustainability
- Carbon Neutral Booking Widget: What It Is, How It Works, and Why It Matters
- Eco-Friendly Travel Widget: Make Every Hotel Booking Climate-Positive in 2026
- Sustainability Widget for Website: The Most Impactful Green Upgrade in 2026
- How to Embed a Carbon Calculator on Your Website (No Code Required)
- Best WordPress Hotel Booking Plugin for Affiliate Revenue in 2026
- WordPress Travel Widget: Add Live Hotel Search to Any WordPress Site
- Hotel Referral Widget: Turn Your Audience Into a Hotel Booking Revenue Stream
- How to Earn Commission on Hotel Bookings Without a Travel Agency
- Hotel Booking Widget: Add Live Hotel Search to Any Website in 60 Seconds
- How to Embed Hotel Booking on Any Website (Step-by-Step 2026)
- Best Travel Booking Widget for Your Website in 2026 (Full Comparison)
- White Label Hotel Widget: Launch a Branded Booking Tool Without Building Anything
- Embeddable Hotel Search: Turn Any Page Into a Booking Engine
- Hotel Widget for Website: The Easiest Way to Add Travel Bookings in 2026
- Best Travel Affiliate Widget: Earn Commission on Every Hotel Stay in 2026
- Hotel Affiliate Program Compared: Which Pays the Most in 2026?
- Best Hotel Affiliate Programs in 2026: Ranked by Commission and Cookie