Embedding the Booking Widget
You do not want customers to have to leave your marketing site to book. TrailerBase gives you four ways to embed the booking flow directly wherever your customers already are. This guide walks through each, plus the customization options that apply to all of them.
The four formats
Open Settings > Widgets > Booking to find all four.
1. iframe
The classic embed. Paste a single <iframe> tag on your site. Works anywhere HTML is allowed. Downsides: you have to pick a fixed height, and on mobile it can look boxed-in.
Use when: you want something that works everywhere with zero JavaScript.
2. JS snippet (recommended)
A small <script> tag that renders the widget responsively, auto-sizes to content, and supports deeper integration (like tracking booking completion in your own analytics).
Use when: you have any control over your site's code. This is our default recommendation.
3. Direct link
A plain URL to your hosted booking page. Drop it in buttons, emails, SMS, Instagram bio, Google Business Profile, and anywhere else a link works.
Use when: you need to share booking from places that do not allow embeds (like email or social).
4. QR code
A downloadable QR code that points to the direct link. Stick it on the trailer, the office door, print ads, or flyers.
Use when: you are doing offline marketing or in-person pickups where scanning is faster than typing.
Customization parameters
All four formats accept the same query-string parameters, so you can tune the look and behavior without touching TrailerBase settings:
- color — override the accent color. Example:
color=FF6600. - title — overwrite the widget headline. Example:
title=Book%20My%20Trailer. - trailer — pre-select a specific trailer ID. Great for product pages. Example:
trailer=7x14-dump. - size —
compact(just the search box) orfull(the full flow). Compact is great for headers. - hidePhone —
trueto drop the phone field if your marketing goals do not need it. - hideLastName —
truefor ultra-short signup. (We still collect it later in the flow if required.)
Combine them in the URL: ?color=0057FF&size=compact&trailer=7x14-dump&hidePhone=true.
Step-by-step: embed on your home page
- Open Settings > Widgets > Booking in TrailerBase.
- Click the JS snippet tab.
- Adjust the customization toggles on the right — color, size, fields — to match your brand.
- Copy the generated snippet.
- Paste into your website's home page HTML, right where you want the widget to appear.
- Save and preview.
Changes you make in settings propagate instantly — no need to re-paste the snippet.
Step-by-step: product page pre-select
If each trailer has its own page:
- Grab the JS snippet.
- Add
data-trailer="7x14-dump"(or the relevant slug) to the script tag on that specific page. - The widget opens already filtered to that trailer.
Step-by-step: QR code for the trailer itself
- Click the QR code tab.
- Select size (we recommend 2 inches printed or 300px digital).
- Download the PNG or SVG.
- Print and weatherproof (laminate or sticker).
- Stick it on the tongue of the trailer or inside the door — so customers can extend a rental or rebook on the spot.
Tips
- Keep the widget above the fold on your home page. Buried widgets lose bookings.
- Use
compactin your main nav so the booking entry point follows customers as they browse. - Review the Widget Analytics monthly to see opens, starts, and completions per source.
Was this article helpful?
Related articles
renter-chat
Installing the Chat Widget
Copy the TrailerBase chat embed snippet and paste it into your website so the renter chat widget appears in the corner of every page.
settings
Setting Up Company Branding
Upload your logo, favicon, colors, contact info, hours, tax ID, and social links — and apply them across invoices, emails, and your public site.
settings
Configuring Notifications
Control per-event notifications for bookings, payments, cancellations, returns, contracts, and reviews across email, SMS, and in-app channels.
Still need help?
Our support team replies within one business day.