Once the Trace snippet is in your site's <head>, form submissions are tracked automatically. Every time a visitor submits a form, we send a form_submit event and use it as a conversion for journeys and attribution. No extra code required.
We use the form’s id, name, or the path part of action as the form identifier. To exclude a specific form from auto-tracking, add the attribute data-trace-no-auto="true" to that form.
Optional: manual tracking
If you need a custom form ID or you handle submissions with JavaScript (e.g. AJAX) instead of a normal submit, you can fire the event yourself:
trace.formSubmit("contact"): shorthand for a form_submit withform_id: "contact"trace.track("form_submit", { form_id: "newsletter" }): full control over the payload
For lead-gen or non-ecommerce sites, treat form_submit or sign_up as your conversion event and use the same name consistently so journeys and reports stay accurate.