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

# Tracking & Pre-fill

> Create named tracking links per source and generate pre-fill links with field values already populated

Tracking & Pre-fill help you understand where submissions come from and make forms faster to complete for specific audiences.

<img src="https://mintcdn.com/formhug-8bc4ebd1/G9oY8IClAvYHkhzC/images/basic-features/form-settings-tracking-prefill.jpg?fit=max&auto=format&n=G9oY8IClAvYHkhzC&q=85&s=96002bc032c7fa8c68724b0f44d6a804" alt="FormHug tracking links and pre-fill link settings" width="2374" height="1626" data-path="images/basic-features/form-settings-tracking-prefill.jpg" />

This is useful for <a href="https://formhug.ai/templates/use-case/lead-generation" target="_blank">lead generation</a>, partner campaigns, event invitations, and source-specific survey links.

## Source Tracking

Create named tracking links for each traffic source. Each link uses the same form URL but tags submissions with the source name, so you can see where responses originated.

**Common tracking sources:**

| Source name | Channel                  |
| ----------- | ------------------------ |
| `x`         | Posts on X (Twitter)     |
| `facebook`  | Facebook posts or ads    |
| `tiktok`    | TikTok bio or posts      |
| `email`     | Email campaigns          |
| `website`   | Links from your own site |

Each tracking link has a **Copy Link** button and a **QR code** icon for quick sharing.

### Creating a Tracking Link

<Steps>
  <Step title="Open Tracking & Pre-fill">
    Go to your form → **Settings → Tracking & Pre-fill**.
  </Step>

  <Step title="Add a source">
    Enter a name for the source (e.g. `instagram`).
  </Step>

  <Step title="Copy the link">
    Copy the generated tracking link and use it when sharing to that channel.
  </Step>
</Steps>

## Pre-fill Links

Generate a link with certain fields already completed. Useful for personalized invitations or when you already know some of the submitter's data.

### Creating a Pre-fill Link

<Steps>
  <Step title="Open Tracking & Pre-fill">
    Go to your form → **Settings → Tracking & Pre-fill** and find the Pre-fill section.
  </Step>

  <Step title="Name the link">
    Enter a descriptive name so you can identify this pre-fill link later.
  </Step>

  <Step title="Set field values">
    Choose which fields to pre-fill and enter the values.
  </Step>

  <Step title="Copy the link">
    Copy the generated URL with pre-fill parameters included.
  </Step>
</Steps>

<Tip>
  Use a pre-fill link with a locked field to pass a referral code or event name that submitters can't change.
</Tip>

## Related

<CardGroup cols={2}>
  <Card title="Share Link" icon="link" href="/features/sharing/share-link">
    Publish and share your form
  </Card>

  <Card title="Submissions" icon="inbox" href="/features/data/submissions">
    View and filter your responses
  </Card>

  <Card title="Lead Generation Guide" icon="book-open" href="https://formhug.ai/blog/how-to-build-a-lead-generation-form" target="_blank">
    Learn how to structure campaign forms and track response sources
  </Card>

  <Card title="Lead Generation Templates" icon="bullseye" href="https://formhug.ai/templates/use-case/lead-generation" target="_blank">
    Start from demo, quote, callback, and early-access forms
  </Card>
</CardGroup>
