
AnyTrack can automatically track form submissions on your website. By default, all tracking for unknown form submits are disable. Once you add a click ID placeholder to a form, AnyTrack automatically tracks that form and generates a unique click ID for that form. This is extremely useful if you need to generate a click ID for a postback conversion.
Click ID Placeholder on Forms
When tracking forms, you can add the click ID placeholder --CLICK-ID--
on the form url or on any input value.
Form URL
For example, adding the placeholder on the form URL:
<form action="/action_page.php?click_id=--CLICK-ID--">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe"><br><br>
<input type="submit" value="Submit">
</form>
In this example, AnyTrack will track the form submit and will send the form to the following URL:
/action_page.php?click_id=fATP5qZnwZMaPAZMvwMtXKErn8w7rAt5
You can change the parameter name click_id
to whatever param name you want.
Form Inputs
If you don't want to change the form URL and you prefer to receive the click ID on the form input, you can add an hidden input on the form with the click id placeholder:
<input type="hidden" name="click_id" value="--CLICK-ID--">
This will be replaced by the tracking script and will send the form with a populated click ID:
<input type="hidden" name="click_id" value="fATP5qZnwZMaPAZMvwMtXKErn8w7rAt5">
As always, you can change the input name from click_id
to whatever param name you want and you can also place the placeholder within an existing input value if needed.
<input type="hidden" name="redirect" value="http://example.com/?sid=--CLICK-ID--">
Tracking Unknown Form Submits
By default, AnyTrack will not track unknown forms that are missing the click id placeholders or not recognized by any of our integration.
If you wish to track all form submits even without a generated click id, you can update your property settings and configure an event name for all unknown form submits:
Comments
0 comments
Please sign in to leave a comment.