You might not have access to this feature!

This feature is only available on our premium and enterprise plans. [Talk to our team](mailto:premium@customer.io) about upgrading your plan.

# Lead capture

[PremiumThis feature is available for Premium plans.](/accounts-and-workspaces/plan-features/) [EnterpriseThis feature is available for Enterprise plans.](/accounts-and-workspaces/plan-features/)

Use the Lead Form component for in-app messages to gather the names and email addresses of people who see your messages.

## How it works[](#how-it-works)

The **Lead Form** component is a form containing *Name* and *Email* fields. When people submit the form, we’ll add the person to your workspace so you can send them messages and convert them to a customer or user. This component helps you capture leads from [anonymous messages](/journeys/anonymous-in-app/).

For example, you might send an anonymous message with a *Lead Form* that offers people coupons when they sign up with their email addresses. When they submit the form, we’ll add them to your workspace and you can send them an email or in-app message with their coupon code.

Note that when people submit your form, we’ll add them to your workspace, but we *won’t* automatically identify them in the browser. By default, people remain anonymous as they browse your website or use your app. [Learn more](#the-lead-form-adds-people-to-your-workspace).

## The Lead Form component[](#the-lead-form-component)

When you drag a *Lead Form* component into your message, it adds two things to your message: a box containing form fields and a submit button.

You can customize both, but you’ll select them separately. For example, when you select the form, you can customize the names of the fields, text size, and so on. But, if you want to change the name of the button from *Submit* to something like *Let’s go!*, you’ll have to select the button itself.

[![The setup step of an anonymous in-app message showing the form and button components](https://docs.customer.io/images/anonymous-form-setup.png)](#dab2ee4a09c11d4d625af9ce70d15ccc-lightbox)

**You must be a Workspace Admin to add a Lead Form component to your message.** See [Form integrations require Workspace Admin permissions](#lead-form-permissions) for more information.

 Add a *Tracked Name* for the submit button!

The *Tracked Name* field helps you track when people submit your form. Make sure you select the submit button and add a tracked name to help you track the success of your lead capture form.

### The Name field[](#the-name-field)

People can provide their names along with their email addresses. This gives you a way to address people in follow-up messages.

If you use this field, we’ll add a `name` [attributeA key-value pair that you associate with a person or an object—like a person’s name, the date they were created in your workspace, or a company’s billing date etc. Use attributes to target people and personalize messages.](/journeys/attributes/) to people who submit your form. If you separate names into first and last name attributes, or use other attributes to store names, you may want to disable the *Name* field and capture names some other way.

[![The form fields in an anonymous in-app message, including whether or not you show the name field](https://docs.customer.io/images/anonymous-form-fields.png)](#ae8d6aded6b97cafa5b0be92892e8302-lightbox)

### Set a tracked name for the submit button[](#set-a-tracked-name-for-the-submit-button)

The *Tracked Name* is how we group responses to messages. Setting a tracked name helps us do things like count the number of responses to your form and generate metrics like the percentage of people who submit your form. It also helps you understand what button people click—whether they dismiss your message or submit your form.

[![The submit button in an anonymous in-app message, with a tracked name set to 'submitted'](https://docs.customer.io/images/anonymous-form-submit.png)](#51427eeead6c0b6f8f6e0ecfca39f96c-lightbox)

### Give your message a close button[](#give-your-message-a-close-button)

Not everybody will respond to your form. If you set up an anonymous message, and you don’t set it inline, make sure that you add a *Close Button* to your message so there’s a clear and obvious way for your audience to dismiss it.

## The lead form does not identify people in the browser session[](#the-lead-form-adds-people-to-your-workspace)

When someone submits the form, we’ll add them to your workspace, but we *won’t* automatically identify them in the browser. We’ll capture their anonymous activity up to that point, but anything they do after they submit your form will remain anonymous.

## Each form generates a new *Form* integration[](#each-form-generates-a-new-form-integration)

Whenever you add a form component to your message, Customer.io creates a new *Form* integration on the **[Integrations](https://fly.customer.io/workspaces/last/journeys/integrations/all/overview)** page. This integration has the same name as your anonymous message.

[![The integrations page showing two form integration with the name of the anonymous message](https://docs.customer.io/images/anonymous-forms-integrations-general.png)](#f82a99b977a3118d1b276d2bf42523ef-lightbox)

Click the form integration to view submissions. From here you can:

*   Trigger different campaigns for each independent form
*   Track and troubleshoot form submissions separately from other integrations

[![The form integration in the integrations page, with the name of the anonymous message](https://docs.customer.io/images/anonymous-form-integration.png)](#180f29121ee9ae9516fec155432f8bfe-lightbox)

### Form integrations require Workspace Admin permissions[](#lead-form-permissions)

The lead form component generates a new “Forms” integration, and the ability to create integrations is limited to Workspace Admins today.

If the lead-form component is disabled, it’s likely that you don’t have the Workspace Admin role and need to talk to your account administrator to upgrade your role.