← Form tracking demos Click ID arrives

3 · Click ID in the action URL

Same idea as the hidden field, but the placeholder lives in the form's action. Useful when the receiving endpoint reads query parameters and you would rather not add a field.

What to look for. The inspector prints the form's action attribute as it currently stands. Before the Tag runs it ends in click_id=--CLICK-ID--; after, the real value is in its place.
Where this placeholder does not work. Only inside elements on a page where the Tag is running. Never put it in an ad's destination URL — no tag has run at that point, so the visitor lands with the literal text --CLICK-ID-- in the address bar.

The markup

<form action="/thank-you.html?click_id=--CLICK-ID--" method="get"
      name="optin" data-payout="10">
  <input type="text"   name="fname">
  <input type="email"  name="email">
  <input type="submit" value="Submit">
</form>
Bonus attribute. data-payout="10" on the form declares a value for this lead — handy when you want the conversion to carry revenue rather than just a count.