Form Tracking
Learn how AnyTrack captures form submissions automatically, passes the Click ID to your CRM through hidden fields or action URLs, and enables offline conversion tracking by connecting leads back to the original ad click. Covers basic AutoTrack, advanced Click ID passing, and unknown form tracking.
Form tracking is the automatic capture of every form submission on your website by AnyTrack's AutoTrack. When a visitor submits a form, the Tracking Tag fires a FormSubmit or Lead event, attaches the Click ID and UTM parameters from the originating ad click, and forwards the event to all connected ad platforms via Conversion API. The result: every lead is tied back to the exact campaign that generated it, with no custom code required.
For advanced use cases like CRM integration and offline conversion tracking, pass the AnyTrack Click ID through a hidden field or form action URL. The Click ID connects each lead back to the specific ad click that generated it, even when the deal closes weeks later in your CRM.
Before you begin
- The Tracking Tag is installed on your website
- Your form uses standard HTML form markup
- You have an active AnyTrack property
Basic Form Tracking
AnyTrack automatically captures standard form submission events emitted by the browser and forwards them to your connected ad platforms and analytics.
No configuration is needed — once the Tracking Tag is installed, every form submit triggers a tracking event. You can view these events in real time through the Conversion Report or Google Analytics real-time dashboard.
StandardForms must follow standard HTML form markup. Learn more on Mozilla's developer reference.
Advanced Form Tracking
Advanced form tracking passes the AnyTrack Click ID to your CRM, enabling offline conversion tracking. When your sales team closes a deal in HubSpot or Salesforce, the Click ID ties that revenue back to the original ad.
The Click ID can be passed through the form action URL or a hidden field. AutoTag substitutes the --CLICK-ID-- placeholder with the actual value at runtime.
ImportantYour CRM must have a custom field to receive the Click ID. Consult your CRM documentation to create this field before proceeding.
Form Action URL
Add the --CLICK-ID-- placeholder to the form action URL. AnyTrack substitutes it with the real Click ID value before submission:
<form action="/action_page.php?click_id=--CLICK-ID--" method="post" id="optin123" name="optin" data-payout="10">
<input type="text" id="fname" name="fname" value="John">
<input type="text" id="lname" name="lname" value="Doe">
<input type="email" id="email" name="email" value="[email protected]">
<input type="submit" value="Submit">
</form>After AutoTag substitution, the action URL becomes:
/action_page.php?click_id=fATP5qZnwZMaPAZMvwMtXKErn8w7rAt5
Hidden Field
Add a hidden input with --CLICK-ID-- as the default value. AnyTrack replaces the placeholder automatically:
<input type="hidden" id="field_id_123" name="click_id" value="--CLICK-ID--">Full form example:
<form action="/action_page.php" method="post" id="optin123" name="optin">
<input type="hidden" id="subid1" name="click_id" value="--CLICK-ID--">
<input type="text" id="fname" name="fname" value="John">
<input type="text" id="lname" name="lname" value="Doe">
<input type="email" id="email" name="email" value="[email protected]">
<input type="submit" value="Submit">
</form>
AutoTrackBy default, AutoTrack is disabled for forms that do not include the Click ID parameter. To enable AutoTrack for all forms, update the Client Side Tracking settings in the Property.
Tracking Unknown Forms
By default, AnyTrack does not track untagged forms like login forms or blog comment sections. To track all form submissions regardless of tagging, update your property settings and assign an event name for unknown form submissions:
What to Do with the Click ID
Once the Click ID reaches your CRM, you can use it for:
- Offline conversion tracking — Send the Click ID back to AnyTrack via webhook when a deal closes, and the conversion attributes back to the original ad
- Cross-platform journeys — Connect a lead that started on ClickFunnels and converted through Calendly into a single attribution path
- Custom audiences — Build CRM segments based on Click ID data and sync them to ad platforms for retargeting
For the full server-side tracking workflow, see Server Side Tracking.
FAQ & Troubleshooting
FAQ was last reviewed on 2026-05-13
Updated 10 days ago
