Skip to content

All attributes

Every option is a data- attribute on the script tag. All of them are optional except data-rentx-partner, which is what credits bookings to you.

AttributeAccepted valuesDefaultWhat it does
data-rentx-partnerAny textnoneYour partner ID, from your Trackdesk account. Required for attribution, together with data-link-id.
data-layoutbar, panelbarbar is a single horizontal row for a page-width slot. panel is a stacked card for a sidebar.
data-brandingrentx, cobrandedrentxrentx shows the RentX wordmark. cobranded shows your logo instead, with a Powered by RentX line underneath.
data-themelight, darklightSwitches the search card between a white and a near-black surface. Match it to the page you are putting the widget on.
data-accentA hex colour such as #C2410C#3E92CEColours the search button and the selected drop-off toggle. Six-digit hex only — #fff is ignored.
data-logoAn https:// image URLnoneYour logo, shown when data-branding is cobranded. Must be https. Renders 24px tall, up to 150px wide.
data-localeen, sq, it, fr, es, dethe visitor's browser language, falling back to enLanguage of the widget, and of the RentX page the visitor lands on.
data-currencyEUR, USDEURCurrency prices are first shown in. The visitor can still change it on RentX.
data-car-typeCoupe, Sedan, Hatchback, SUV, Convertible, Wagon, Pickup, VanMinivannonePre-filters results to one body type. Leave it off to show everything.
data-full-insurancetrue, falsefalseTicks the full-insurance checkbox by default. The visitor can untick it.
data-source-idAny textfalls back to data-rentx-partnerThe tracking ID bookings are credited to.
data-link-idAny textnone — but attribution needs itThe ID of this placement's tracking link, from your Trackdesk account. Required for attribution: a search with no link ID is credited to nobody.
data-target_blank, _self_blankWhether the search opens in a new tab or replaces your page. _blank keeps the visitor on your site.
<script src="https://rentx.al/embed.js"
data-rentx-partner="your-partner-id"
data-layout="panel"
data-branding="cobranded"
data-logo="https://example.com/logo.png"
data-theme="dark"
data-accent="#C2410C"
data-locale="it"
data-currency="EUR"
data-car-type="SUV"
data-full-insurance="true"
data-source-id="your-partner-id"
data-link-id="homepage-hero"
data-target="_blank"
></script>

You will not want all of these. To see what a combination looks like before you commit to it, use the widget builder.