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

# Formstack form tracking

> Set up Formstack form tracking in Cometly: add the pixel to your form so the email each lead types in connects them to the ad they came from.

Formstack form tracking in Cometly works through the Cometly pixel, the tracking script you add to your site. To track a Formstack form, add the Cometly pixel to the form itself with an Embed Code field, and make sure the pixel is also installed on the page that holds the form.

This matters because the form is where a visitor becomes a lead. When the pixel captures the email typed into your Formstack form, Cometly can connect that person to events (the leads, sales and other actions Cometly records) from your integrations, so you can see which ad or channel produced them.

## Before you start

Copy your Cometly pixel. In Cometly, go to **Setup** > **Install the Cometly pixel**, find **Install the pixel** and click **Copy Code**. See [Install the Cometly pixel](https://docs.cometly.com/getting-started/install-pixel.md) for the full walkthrough.

## Add the pixel to your Formstack form

**1. Open the form in the Formstack form builder**

In your Formstack dashboard, select the form you want to track.

**2. Add an Embed Code field**

In the form builder, find **Embed Code** under **Advanced Fields** and drag it to the top of your form.

![Formstack form builder with the Embed Code field highlighted under Advanced Fields](https://mintcdn.com/cometly/4NU5YV9iL1PADmGE/images/integrations/forms/formstack/01.webp?fit=max\&auto=format\&n=4NU5YV9iL1PADmGE\&q=85\&s=3f38c646eb391ceae68aba5020f5625f)

**3. Paste the Cometly pixel**

Click the pencil icon to edit the Embed Code field, then paste your Cometly pixel into the code box.

Save your changes.

**4. Keep the Embed Code field at the top of the form**

This makes the Cometly pixel load and start tracking as soon as the form loads.

## Confirm the pixel is in both places

The pixel must be in both locations for Cometly to capture form field data:

* **On the Formstack form itself**, through the Embed Code field you added above.
* **On the web page where the form is embedded.**

## Test form tracking

[Use the Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md) to check that the email address field is captured automatically as you fill in the form.

## Check it worked

Open the Cometly Pixel Helper on the page that holds your form. You should see an **Init** event, which means the pixel is firing, and the email address you type into the Formstack form should show in the Pixel Helper.

## Send Formstack submissions to Cometly as events

To send an event to Cometly for each Formstack submission, use a Cometly webhook:

[Set up the Formstack integration](https://docs.cometly.com/integrations/platforms/formstack.md)

## Frequently asked questions

### Which Formstack form fields does Cometly capture?

Cometly only captures form fields related to name, email and phone. Email is the most important one, because Cometly uses it to connect a form submission to the right person.

### Can I test Formstack form tracking without the Chrome extension?

Yes. In Cometly, go to **Setup** > **Install the Cometly pixel** and use **Test form tracking**. The [Test form tracking](https://docs.cometly.com/guides/form-tracking/testing.md) guide walks you through it.

### Why is Cometly not capturing the email from my Formstack form?

Check that the pixel is in both places: in the Embed Code field at the top of the form, and on the web page where the form is embedded. If the email is still not captured, follow the [form tracking troubleshooting guide](https://docs.cometly.com/support/troubleshooting/form-tracking/troubleshooting-form-tracking.md).

## Next steps

* [Send Formstack submissions to Cometly as events](https://docs.cometly.com/integrations/platforms/formstack.md)
* [Test form tracking on a page](https://docs.cometly.com/guides/form-tracking/testing.md)
* [Set up form tracking for other third-party embedded forms](https://docs.cometly.com/guides/form-tracking/third-party-forms.md)
* [Learn how form tracking works](https://docs.cometly.com/getting-started/form-tracking.md)
* [Troubleshoot form tracking](https://docs.cometly.com/support/troubleshooting/form-tracking/troubleshooting-form-tracking.md)

Still have questions or need a hand? We're happy to help. Reach our team at [support@cometly.com](mailto:support@cometly.com).


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