Analytics & tracking

This feature is available to organizations on the Pro, Team, and Enterprise plans.

Connect your Google Analytics account to optimize your forms, gain insights into your form users, and measure your advertising success. Once enabled, each click on your embedded form generates a pageview in Google Analytics.

For multi-page forms, each page of the form generates a unique pageview. You can use this data to monitor the number of visitors and set conversion goals. In addition to Google Analytics, you can also use tracking pixels to connect your form to Facebook or another third party ad service.

Getting started

To connect your form to your Google Analytics account:

Enable Analytics & Tracking.

  1. Log in to your Cognito Forms account.
  2. Open the form builder and enable Analytics and Tracking in the Form Settings menu.
  3. Copy/paste your Google Analytics Tracking ID.
  4. Save your form.

At this point, your form will start sending over pageview data to Google Analytics. If you turn off Analytics & Tracking, the tracking ID is saved so that you can easily turn it back on as needed.

If you copy your form within the same organization, the Analytics & Tracking settings will be copied over as well. However, if you copy your form between different organization, the settings will not be retained.

Additionally, if you have Save & Resume enabled on your form, please note that individual save links will not be sent to Google Analytics; when someone returns to your form via save link, it will simply appear as another page view for the page where the form is embedded.

Creating conversion goals

You can create goals in Google Analytics to measure the ROI of your PPC campaigns. To create a conversion goal:

  1. Log in to your Cognito Forms account.

  2. Open the form builder and enable Analytics and Tracking. Copy/paste your Google Analytics Tracking ID as outlined in the section above.

  3. Select Create GA Form Submission Goal.
    Select Create GA Form Submission Goal.

  4. By default, the Goal Category is the form name, and the Goal Action is Form Submission.

  5. Specify a static value or calculation for the Goal Label and Goal Value. The Goal Value must be an integer.

  6. Save your form.

  7. Sign in to Google Analytics.

  8. Click Admin. In the View column, select Goals.

  9. Select New Goal. Give your goal a name, and choose Event as the Type.

    description.png

  10. Select Continue to edit your goal details:

    • Category is the name of your form
    • Action is “Form Submission”
    • Label is the name of your Event Label (if you specified one)
    • Value is whatever makes sense for what you put in on your form. This is optional.
  11. Set Use the Event value as the Goal Value for the conversion to Yes.

  12. Save your new goal.

    goals.png

At this point, your form will start sending events to Google Analytics upon submission. If you turn off Analytics & Tracking, the labels and values are so that you can easily turn it back on as needed. Learn more about how to create, edit, and share goals in Google Analytics.

Adding tracking pixels

Quick Tip

You can add any number of tracking pixels to your form - give each one a unique name for easy identification!

A tracking pixel is an HTML code snippet which is loaded when a user visits a website or opens an email. You can use tracking pixels on your forms to track form submission performance and send this data back to Facebook or another third party ad service. Please note that the tracking pixel only records or sends data when a user submits your form. Additionally, the tracking pixel does not support custom JavaScript and does not place any script on the form itself.

To add a tracking pixel to your form:

  1. Open the form builder and enable Analytics and Tracking in the Form Settings menu.
  2. Select New Pixel in the Tracking Pixels section.
  3. Enter your tracking code or URL in the dialog.
  4. Hit Save to create your new tracking pixel. This pixel tracks your form when submitted from the public link or submitted from the embedded form on your website. In the Tracking Pixels section, you can add, delete, and edit all your pixels as needed.

tracking-pixel.png

To test that your Facebook pixel is firing:

  1. Go to the Facebook Events Manager.
  2. Select your Pixel from the list of Data Sources and click the Test Events tab.
  3. Under Test Browser Events, enter your form’s public url in the area labeled Enter website URL and click Open Website. If you do not see that block, you may need to Clear Activity.
  4. You should see your form in the new browser tab. Fill it out and submit it.
  5. Go back to the the Facebook Events Manager. If the event successfully fired, you should see that the pageview was processed.

Test that your Facebook tracking pixel is firing in the Facebook Events Manager.