Rex

Embed a Rex link on your website

Every link you build in Rex comes with a ready-made HTML snippet you can paste onto your own website. The snippet renders a booking button that points at that link's short URL, so clicks still run through Rex and still count toward the link's click total.

Rex provides a starting snippet for each link type: Package, Category, General booking, Venue, Membership, Events and Gift cards. A membership link and a gift card link therefore get appropriately different wording out of the box. You can edit the snippet for any single link without affecting the others.

โ„น๏ธNote

Save the link before you look for its embed code. The Get embed code button only appears once a link exists, so it is not on the panel while you are still creating one.

Copy the snippet

1

Open the link you want to embed

In the Links list, click the link you want to put on your site. The edit panel opens with the link's settings on the left and its Generated URL on the right.

Linksโ€บYour link
2

Click Get embed code

The button sits under the Generated URL box on the right side of the panel. An Embed code window opens, showing a live preview at the top and the raw HTML underneath.

3

Click Copy code

Rex fills in the placeholder values and copies the finished HTML to your clipboard. A Copied to clipboard message confirms it worked. The preview shows you exactly what your visitors will see.

4

Paste the snippet into your website

Paste it anywhere that accepts raw HTML: a custom HTML block in your page builder, an email template, or the page source itself. No script tag and no Rex account are needed on your side.

What Rex fills in automatically

The HTML box shows placeholders wrapped in double braces, such as {{shortUrl}}. Those are not literal text. Rex swaps each one for the real value at the moment you click Copy code, so what lands on your clipboard is finished HTML with no braces left in it.

FieldDescription
{{shortUrl}}The trackable short link this snippet points to, for example yourvenue.reservewithrex.com/halloween. Every embed needs this, otherwise the button leads nowhere and no clicks are recorded.
{{label}}The link's name, taken from the Name field on the link. It is normally used as the button text, so name your links the way you want the button to read.
{{venueName}}The venue attached to the link. This comes out blank on link types that are not tied to one venue, such as Membership, Events and Gift cards.
{{color}}The accent color used for styling the snippet. Rex currently fills this with a fixed dark tone rather than your own brand color, so edit the HTML directly if you need the button to match your site palette.

The HTML box is editable. Adjust the markup however you need, whether that is swapping the wording, changing the colors, or wrapping it in your own classes. Click Save template, and this link keeps your version from then on. Other links of the same type are untouched.

Click Reset to default to throw your version away and go back to the standard snippet for that link type. Your edits are not recoverable afterwards, so keep a copy if you might want them back.

Keep {{shortUrl}} in whatever you write. It is the part that routes the click through Rex, and a snippet without it stops reporting clicks on the link.

โ„น๏ธNote

If the HTML box opens empty, no standard snippet has been set for that link type yet. Write or paste your own HTML into the box and click Save template to use it for this link.

Where the clicks show up

Clicks on an embedded button are recorded against the link exactly like clicks on the short URL you share elsewhere, and they appear in the link's click count in the Links list. If you also set UTM values on the link, those carry through to your analytics tool, so traffic from a button on your homepage can be told apart from the same link in an email.

Updated Aug 14, 2026

Was this helpful?