CJM
Lead Forms

Connect a form to the Pixel

Align form and question identifiers between CJM and your website for correct answer capture and scoring.

Use the Pixel for a form on your website when you want to send its confirmed submission to CJM and, when available, connect it to the visitor journey. Create and publish the form configuration in Setup → Lead Forms first.

Align the form

  1. Install the Pixel and verify that it is active on your website.
  2. Retrieve the configuration’s formId. Do not use the Pixel ID.
  3. For every question you want to send, note its questionId and the exact value of every configured option.
  4. In the handler that confirms the form was saved on your website, call trackLead once.
  5. Send a test and check the lead and answers in CJM.

The Pixel must send the form ID in source_metadata.formId, every answer in form_responses, and the matching question ID. The complete field table and code examples are in Capture a lead.

Current limitation: the dashboard does not show a copyable formId or questionId for a manual form. If the person integrating your website cannot retrieve these identifiers from the configuration, use the form webhook instead: its generated URL is already connected to the correct form.

Check mapping before release

In the CJM formIn the Pixel
formIdsource_metadata.formId
questionIdform_responses[].questionId
option valueform_responses[].answer

Send the option value, not only the label shown to the person. Keep identifiers stable even when you change a question’s visible text.

Avoid incomplete or duplicate sends

  • Call the Pixel after validation and successful saving, not on a simple Submit click.
  • Send first name and email inside contact; do not put them in form answers.
  • Do not call the Pixel both on click and on save confirmation.
  • An unknown form ID or unmatched question does not necessarily block lead capture, but prevents configured scoring from being applied.

The Pixel does not save the form on your website or confirm delivery. Keep your normal form success message and use a test submission to verify the connection.

To configure answers first, read Answers and score.

On this page