Skip to main content
Cognito Forms form tracking in Cometly works by adding the Cometly pixel (the tracking script you install on your site) to your Cognito Forms form. With the pixel on the form, Cometly can track form submissions and capture key data such as email addresses and names. The email address is what matters most. Cometly uses it to connect the person who filled in your form to the ad or channel that brought them to your site, so you can see which ads produce your leads.

Before you start

Copy your Cometly pixel script. In Cometly, go to Setup, open step 2 Install the Cometly pixel, and click Copy Code in the Install the pixel section.

Add the Cometly pixel to your form

Cognito Forms builder with arrows on the Settings tab and the New Pixel link under Tracking Pixels
1

Open the Settings tab

Open the Cognito Forms form you want to add the pixel to, and go to the Settings tab.
2

Add a new pixel

  1. In the Tracking Pixels section, click + New Pixel.
  2. Paste your Cometly pixel script into the Pixel Code field.
  3. Click Save.
3

Enable Analytics & Tracking

Locate the Analytics & Tracking section under Form Settings and toggle it on. This is required for the tracking pixel to work.
Cognito Forms Form Settings with an arrow on the Analytics and Tracking toggle
4

Save and publish the form

Save your changes so the pixel is applied, then publish your form to start tracking form submissions.

Confirm the pixel is installed in both places

The pixel must exist in both locations to capture form field data correctly:
  • On the Cognito Forms form itself: the Cometly pixel script is added in the form’s Tracking Pixels section, as described above.
  • On the page where the form is embedded: the Cometly pixel is also installed on the webpage that embeds the form. See Install the pixel.

Check it worked

Use the Cometly Pixel Helper to verify that the email address field is captured automatically. You can also test a page in Cometly under Setup, step 2, in the Test form tracking section. See Test form tracking. When the test passes, the page appears under Tested pages with the status Forms detected, and its email field is listed under Detected fields.

Send event data from Cognito Forms to Cometly

To send events for Cognito Forms submissions to Cometly with Cometly webhooks, see Set up the Cognito Forms integration. An event is an action Cometly records, such as a lead or a sale.

Frequently asked questions

Which Cognito Forms fields does Cometly capture?

The Cometly pixel captures full name, first name, last name, email address and phone number. Email is the most important one, because Cometly uses it to match a form submission to the right person.

Do I need the Cognito Forms webhook as well as form tracking?

They do different jobs. Form tracking captures the contact details a visitor types into the form, and the webhook sends each form entry to Cometly as an event. If you want form entries to appear as events in Cometly, set up form tracking first, then add the webhook.

Why is Cometly not capturing data from my Cognito Forms form?

Check that the Cometly pixel is in both places: in the form’s Tracking Pixels section and on the page that embeds the form. Then make sure Analytics & Tracking is toggled on in the form’s settings and that the form is published. If a field is still missing, follow the form tracking troubleshooting guide.

Next steps

Still have questions or need a hand? We’re happy to help. Reach our team at support@cometly.com.