This feature is only available in the Pro version of Independent Analytics.
If you are building a site for a client and you’ve coded your own forms, then you won’t find an automatic integration available to track submissions. However, it is possible to add automatic tracking for forms you develop yourself, and it’s easy too!
All you have to do is trigger the iawp_custom_form_submissions
hook after a submission is completed by your form, like this:
do_action('iawp_custom_form_submissions', 1, 'My Form');
The second argument is the form’s ID, which must be an integer. The third argument is the name of the form and must be a string.
The ID is used to recognize the form, so you can place it on multiple pages and have all submissions recorded as the same form. The title will be displayed inside the analytics interface. Once you have at least one submission recorded, you’ll see it appear in the Toggle Stats modals for the Quick Stats and data table.
When testing submissions, please make sure that you’re being tracked, or the submission won’t be recorded. You may need to visit your site in a private browser tab or enable tracking of logged-in visitors.
If you are a plugin developer, please email us, and we’ll be happy to add an official integration for your plugin. The hook described here is recommended for developers building custom form solutions for their clients.