Manual form tracking
Last updated
Last updated
The LeadBoxer javascript library can be used to capture forms that are submitted by your audience.
The method is straightforward:
Using javascript you add the data to a map
You send the map data when a form is submitted
There is no limit on the number of key / value pairs you submit
You might need to add a small delay if you redirect to a 'thank-you' page right after a form is submitted
See the Pen by Wart Fransen () on .
Note: don't forget to run this function when the form is submitted, for example by setting onclick="sendTextForm()" on the submit button.
When the form submit redirects or reloads the page, it is necessary to delay the form submission for one or two second (literally), in order to create a small window during which the form data can be sent to our servers.
Here are a few examples, using jQuery and pure javascript.
You can do this by adding the following to the bottom of the sendTextForm function
Working example
For a working example on how to submit form fields go