Skip to main content
Gravity Forms Form Tracking

Discover how to set up automatic form tracking for Gravity Forms, enabling the Cometly Pixel to seamlessly capture form field data.

Updated this week

Adding the Cometly Pixel to your Gravity Forms allows you to automatically track form submissions and capture key data like email addresses, names, and more. Follow the steps below to integrate the Cometly Pixel with your Gravity Forms.


Edit Your Gravity Form

  1. Log in to your WordPress dashboard and go to Forms.

  2. Select the Gravity Form you wish to edit (or create a new form if you haven’t already).


Add a Custom HTML Block

  1. Open the form editor by clicking on the form name.

  2. From the “Form Fields” panel on the right, look for the field type “HTML” (typically under “Standard Fields”).

  3. Drag and drop the HTML field to the top of your form—this is where you’ll insert your Cometly Pixel.


Insert the Cometly Pixel

  1. Click on the newly added HTML field to open its Field Settings.

  2. In the “Content” box, paste your Cometly Pixel code.

    • You can retrieve your Pixel code from Cometly under Space Setup > Install Cometly Pixel.

  3. Click “Save Form” (or “Update”) to publish your changes.

Important: Make sure you place the HTML block above any other fields in your form to ensure the Pixel is loaded first.


Test Form Tracking

  1. Open the page or post where your Gravity Form is embedded.

  2. Use the Cometly Pixel Helper (a browser extension) to verify that the Pixel is firing correctly on page load.

  3. Fill out the form (at least the email address field) and check if the Cometly Pixel Helper indicates automatic form field capture.



Send Event Data from Gravity Forms to Cometly via Cometly Webhooks

Adding the Pixel to your form captures page views and field inputs, but you also want to send form submission data (like form completions) as events to Cometly. Follow our Gravity Forms Integration article below for full instructions on configuring webhooks or using Zapier.

Did this answer your question?