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 ‘value’ ‘name’ or ‘id’ attributes of the HTML form fields. Attributer just needs one of them to be set as above in order to function (technically, we look for the ‘value’ first and then the ‘name’ and then the ‘id’).

So for example, if you need to change the ‘name’ or ‘id’ attributes to match your CRM or other backend tools you could do that, but the variable in the ‘Value’ attribute would need to remain the same.

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

Our team are available to answer any questions you have

Support Images