Skip to content

Help Center

Adding Hidden Fields to HTML Forms

If your forms are just hand-coded HTML (which is common for things like signup forms on SaaS products) then all you need to do is add some extra HTML code to the form.

The code you need to add to is:

<input type="hidden" id="[attributer-channel]" name="[attributer-channel]" value="[channel]">
<input type="hidden" id="[attributer-channeldrilldown1]" name="[attributer-channeldrilldown1]" value="[channeldrilldown1]">
<input type="hidden" id="[attributer-channeldrilldown2]" name="[attributer-channeldrilldown2]" value="[channeldrilldown2]">
<input type="hidden" id="[attributer-channeldrilldown3]" name="[attributer-channeldrilldown3]" value="[channeldrilldown3]">
<input type="hidden" id="[attributer-channeldrilldown4]" name="[attributer-channeldrilldown4]" value="[channeldrilldown4]">
<input type="hidden" id="[attributer-landingpage]" name="[attributer-landingpage]" value="[landingpage]">
<input type="hidden" id="[attributer-landingpagegroup]" name="[attributer-landingpagegroup]" value="[landingpagegroup]">

This will add a series of hidden fields to your forms, with the required variables in the ‘Value’ element of the form. Attributer will then write the marketing attribution information into these hidden fields and you can then send it into your backend tools alongside the other information entered into the form (like the person’s name, email, company, etc).

If needed, you can change the ‘name’ & ‘id’ attributes of the HTML form fields to match whatever names you want to use in your CRM or other backend tools, but the variables need to remain in the ‘Value’ attribute for it to work.

Can't find the answer you need? Contact us!

Our team are available to answer any questions you have

Support Images