> ## 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.

# Leads and Attribution

> Capture homeowner intent, preserve marketing context, and connect public visualizer activity to operational lead workflows.

## Lead capture

Public visualizer flows can save progressive selections and final lead capture fields so contractors can follow up with homeowner context.

* Landing configuration controls which form fields appear.
* Lead capture can include contact fields and custom questions.
* Public routes create lead records from homeowner actions, while internal previews avoid production lead persistence.

## Attribution

Embeds pass a sanitized host\_page\_url with supported marketing parameters so reporting can connect the lead to source, medium, campaign, ad click ids, and referrer context.

> [!NOTE]
>
> **Deep links are separate**
>
> material, shape, and color are forwarded as visualizer params, not as host\_page\_url attribution params.


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