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.
AnyTrack captures form submissions automatically. When a visitor submits a form, the AnyTrack Tag fires a FormSubmit or Lead event and forwards it to all connected ad platforms via Conversion API. No custom code required — install the Tag and forms start tracking.
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.
Before you begin
- The AnyTrack 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 Tracking Tags and analytics.
No configuration is needed — once the Tag is installed, every form submit triggers a tracking event. You can view these events in real time through the Conversions 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. AnyTrack's 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?clickid=--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?clickid=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_click_id" name="`atclid`" value="--CLICK-ID--">Full form example:
<form action="/action_page.php" method="post" id="optin123" name="optin">
<input type="hidden" id="subid1" name="clickid" 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 AnyTrack 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-02-25
Updated 1 day ago
