> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ontreasure.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed Treasure checkout and venue maps on your site

> Add ticket checkout, your vendor table application, your venue map, or your host profile to any website, styled to match your brand.

Embeds put your Treasure ticket checkout, vendor table application, venue map, or host profile on your own website or link-in-bio page. Visitors buy tickets, apply for tables, and browse the map without leaving your site.

> [!NOTE]
>
> Payments work inside the embed. You don't need any extra payment setup.

## Get an embed code

**1. Open the embed page**

In your event dashboard sidebar, expand **Event Tools**, select **Social Media**, and open the **Embed** tab.

**2. Pick an embed type**

Choose from the embed type menu:

| Embed type | What visitors see |
| - | - |
| **Ticket sales** | Your ticket checkout, from choosing tickets through confirmation |
| **Table application** | Your vendor table application, from choosing a table through payment |
| **Venue map** | Your interactive venue map |
| **Your profile** | Your host profile and upcoming events |

**3. Set the options**

The options depend on the embed type:

* **Tracking link** (**Ticket sales** and **Table application**): attribute visits and purchases through this embed to one of your tracking links. Leave it as **None** for no attribution.
* **Show the vendor list below the map** (**Venue map**): list your vendors under the map. This is unavailable when the vendor list is hidden in your event settings.
* **Show events in a grid instead of a carousel** (**Your profile**).

**4. Preview and copy**

The **Preview** shows the embed as it will look on a **Light site** or a **Dark site**. For checkout and applications, step through each screen with the arrows.

Under **Embed code**, click **Copy**, then paste the code into your site's HTML where you want the embed to appear. Click **Show code** to see it first.

> [!NOTE]
>
> The **Venue map** embed needs a published map. The **Your profile** embed needs a username in your profile settings. If either is missing, the embed page tells you what to set up. See [Venue maps](https://docs.ontreasure.com/hosts/venue-maps.md#map-visibility).

## Match the embed to your site

Use the **Appearance** section to style your embeds. Changes apply only to embeds, not to your Treasure event page.

* **Presets**: start from **Treasure**, **Dark**, **Midnight**, or **Clear**.
* **Theme**: **Light** or **Dark** text and surfaces.
* **Accent**: the color of buttons and highlights. Choose any color, or use Treasure green or your event poster's color.
* **Background**: **Default**, a solid **Color**, a **Gradient**, or **Clear** to show your site behind the embed.

Click **Save appearance** to apply your changes, or **Discard** to undo them. Event appearance applies to all of that event's embeds. Profile appearance applies to your profile embed and the checkouts opened from it.

> [!TIP]
>
> With a **Clear** background, set **Theme** to match your site: **Light** for light pages, **Dark** for dark ones. The preview warns you if text may be hard to read.

## What the embed code looks like

Each embed is an `<iframe>` plus a short script. The script resizes the frame to fit its content as visitors move through checkout, so there's no fixed-height box or inner scrollbar. Always copy the code from your dashboard, since it's filled in with your event and the options you chose.

```html ticket-sales-embed.html theme={null}
<div class="iframe-section">
  <iframe
    style="width: 100%; height: 500px; border: none; border-radius: 10px; padding: 0px"
    id="treasure-embed-tickets-my-event-2026"
    sandbox="allow-same-origin allow-forms allow-scripts allow-popups allow-popups-to-escape-sandbox"
    src="https://www.ontreasure.com/events/my-event-2026/embed-checkout?embed=true&iframeId=treasure-embed-tickets-my-event-2026"
    title="Ticket Booking"
    loading="lazy"
    allow="fullscreen; payment"
  ></iframe>
</div>

<script>
  /* Resizes the iframe to fit its content. Copy the full script from your dashboard. */
</script>
```

> [!WARNING]
>
> Don't change the `sandbox` or `allow` attributes. Payments need `allow-popups`, `allow-same-origin`, and `payment` to work.

### Place several embeds on one page

Each iframe needs a unique `id`. The resize script matches each frame by its ID, so two frames with the same ID resize each other. The codes Treasure generates already use different IDs for each embed type and event.

If you copied an embed code a long time ago, copy it again to get the latest script.

## Get help with your integration

The **Pro** plan includes an embedded checkout support team that helps you add embeds to your site. See [Pricing](https://docs.ontreasure.com/account/pricing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.