Updated: Form analytics plugin
Following on from my previous post Form field plugin for google analytics, I have been asked to update the form analytics plugin with tracking capabilities for check boxes.
This version of the script still contains the automatic form field tracking showing:
- Drop off by form field
- Time spent in each field
And now also includes tracking of:
- Check boxes – See which check boxes visitors are selecting (these are now counted as form fields). There is also a separate report on unchecked check boxes, showing how many visitors are opting out of pre-checked fields.
- Radio boxes – see which radio boxes visitors are selecting
- Submit button – quickly see how many visitors are pressing submit on your form, allowing easy comparison of total submit clicks VS uniques (showing the rate at which visitors submissions fail due to validation or other) and this can be set as a goal.
As with the previous version of the script, this plugin automatically tracks all of the above once it is included in the page. The events appear in Google Analytics as:
Category: Form: Page title
Action: Field completed / unchecked checkbox / submit
Label: Field name
Value: Time spent in field in seconds
You can download the plugin below, it’s free to use and share etc. just link back if you find this script useful and let me know if you have any ideas for how to improve it further or other reports/tracking plugins that would be useful.
Be sure to check the scroll reach tracking plugin too.
- Requires JQuery to be installed – paste this line of code in the head of your page: <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script>
Download the file here: form-tracking-google-analytics-v2