Gravity Form Tracking
Last updated
Last updated
If you want to track your forms and use the Gravity Forms Wordpress plugin, you can use our official LeadBoxer for Gravity Forms add-on
Here are the steps:
Install and activate the Wordpress plugin like you would normally do: either searching for it on the plugins page or by downloading/uploading.
If you do not have gravity Forms installed you will get a error and warning.
Once installed and activated, you need to configure / add your dataset ID in the global gravity Forms Plugin settings
Next, you need to map your form fields to the correct default LeadBoxer field names for each form.
If you have form fields that cannot be mapped to a default LeadBoxer field, you can add manual mappings. These form fields and values will be shown under Lead Properties. you can add up to 20 custom fields.
Manual setup (legacy)
If you do not want or can use our Add-on you can try one of these manual / legacy integrations:
will need to manually add some javascript to your pages to make this happen.
There are multiple ways to accomplish this goal. Lets show you 2 options.
Submit form data when the Confirmation message loads (recommended)
Simply go to the confirmation settings for your form, switch to 'text' view and append a snippet of javascript like this:
You will need to
replace the variables like {Email:4} with the form specific values.
Add all the form fields you want to track
You will need to go through these 2 steps:
Add a function to execute the tracking code when someone clicks on the submit button and
Grab the values of all your form elements and send them to our endpoint.
First you will need to find the ID of the submit button, eg 'gform_submit_button_1' and use this in a javascript to execute the form tracking function when someone clicks the submit button in your form.
in step 1, we are executing a function called 'sendTextForm' once the submit button is clicked.
In this step we create this function in where we are going to grab the values of the form fields.
Note: As you may know, Gravity forms has dynamically generated form ID's so that makes it a little harder to grab the right fields, but by using your browser dev tools/ inspector you should be able to figure this out.
Here is an example of the actual function:
Thats it, place both pieces of javascript on your form page (and make sure the tracking pixel is loaded as well) and you should see your form submissions appear in LeadBoxer.
Feel free to contact us if you would like us to help.
You can use the form field dropdown to insert them.