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

# Embeds

> Install RoofKit on contractor websites with a floating button widget or an inline iframe that forwards attribution and deep-link parameters.

## Install modes

| Mode | Behavior | Best for |
| - | - | - |
| Button widget | Loads roofkit-embed.js, renders a launcher, and opens the visualizer in a modal iframe. | Sites that need a compact persistent CTA. |
| Inline iframe | Places the visualizer directly in the contractor page layout. | Landing pages with a dedicated visualizer section. |

> [!NOTE]
>
> **One button widget per host page**
>
> A contractor page should mount only one floating button widget. Inline iframe snippets are container-scoped and can be used in multiple placements.

New inline installs copy one script tag from the RoofKit tenant origin.

```html Inline iframe install theme={null}
<script src="https://roofkit.site/roofkit-inline.js?id=ROOFER_ID" async></script>
```

A slug landing adds the landing query. The primary landing omits it. An optional height query can set a shorter iframe.

An inline install that is already on a website keeps working. Do not replace that install.

## Parameter forwarding

Both install modes forward supported marketing attribution into host\_page\_url and forward deep-link params separately as top-level iframe URL params.

* Attribution allowlist includes UTM parameters and common ad click identifiers.
* Deep-link params are material, shape, and color.
* Deep-link params are intentionally not embedded inside host\_page\_url.

```text Button widget host page URL theme={null}
https://contractor.example/roof-replacement?material=lib-tiles&shape=high_barrel&color=westlake-fn-barcelona-900-avalonbeachblend
```


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