Conversion Optimization: Tracking Form Validation Errors with Google Analytics
After all the effort of getting your users interested in your product/service, the last thing you want is for them to exit your site because form validations were an afterthought.
Losing Conversions from Indian Street Addresses
For the last few weeks at Learnhub I’ve been trying to optimize the conversion rate of our school application form. This form is lengthy compared to most and we required that potential students entered their home address.

As an experiment, we hooked up Google Analytics to track every time a validation error happened.
We were surprised to discovered that 20% of users failed to enter their street address properly and half of those users then exited the site. This was a big warning sign that our validations need improvement.

So we began to look into why this is happening in more detail.
We realized that our indian users were skipping the address not because they didn’t want to share it but because Indian addresses are really complicated.
In India, especially in smaller towns, street address’s are not as established as other parts of the world. If they did know it, it frequently looked like this: 83, LAXMI APPT., SEC-5, PLOT NO-27/8, ROHINI.
Asking someone to type that out is a usability nightmare.
From this data we now had a new starting point for improving conversions: by making the process of entering address easier or by making the field optional.
How Did We Track Validation Errors with Google Analytics?
In Google Analytics they have an awesome feature called event tracking that can be easily trigger by on-page javascript.
Our site was developed with Rails so when a field fails to validate, it automatically gets wrapped in a div.
So we wrote up a tiny script that:
- scans the page for any divs with fieldWithErrors
- grabs the ID of the form field
- sends an event to Google Analytics with the label “Validation Error” and the value as the fields ID
The script (prototype):
With this data you can see see how many exited the form, what country they are from, validations per user, etc.
Fixing the Problem Fields
It may be beneficial to minimize the required fields to get that initial commitment.
Just like the old sales adage, if you can get the customer to say yes the first time it will be easier to get them to say yes later on for the bigger commitment.
Making fields a requirement is always a tough balance between hurting the forms usability and getting the information you want.
If you do decided to skip the tough questions early on, a process could be set up to get the needed information later on from something like a follow-up email or secondary form.
Either way it helps to have the analytics data to back it up those decisions.
- By Dan McGradyAdditional comments powered by BackType
Follow my RSS Feed
11 Comments
New blog post about improving form conversions by tracking validation errors with Google Analytics http://bit.ly/66KXH1
This comment was originally posted on Twitter
Improving Conversion Rates by Tracking Form Validation Errors with Google Analytics http://bit.ly/833Jp5
This comment was originally posted on Twitter
Improving Conversion Rates by Tracking Form Validation Errors with Google Analytics http://bit.ly/5YN8D7
This comment was originally posted on Twitter
Improving Conversion Rates by Tracking Form Validation Errors with Google Analytics http://bit.ly/4rr8MU #measure
This comment was originally posted on Twitter
Well done! Very insightful post. I was actually wondering how to track these types of errors. Not with the Indian addresses. But just online form abandonment.
Much appreciated!
using analytics to improve conversion rate wrt form validation errors: http://bit.ly/5YN8D7
This comment was originally posted on Twitter
Great Post. Form validations are one of the leading causes of conversion loss and most of the time it gets undetected. See my blog post on the same subject, http://webanalysis.blogspot.com/2009/12/are-form-validations-invalidating-your.html
Improving Conversion Rates by Tracking Form Validation Errors with Google Analytics http://bit.ly/4rr8MU #measure (via @KISSmetrics)
This comment was originally posted on Twitter
Improving Conversion Rates by Tracking Form Validation Errors with Google Analytics http://bit.ly/6kQIwJ
This comment was originally posted on Twitter
Tracking Form Validation Errors with Google Analytics: http://bit.ly/5YN8D7
This comment was originally posted on Twitter
Great article. It shows how even a ’standard’ question like an address can cause problems for a different audience.
Thanks
Caroline