How to track invalid user input in coupon code field?
We currently track all user errors in checkout through Events.
However, for coupon code errors, it would help to see which code the user tried to enter that caused the error, to find the root cause of some issues.
All checkout errors are done as follows:
- Event Category: errors
- Event Action: [input field]
- Event Label: [error message]
If I made the coupon code field have the error message as the event action, and the promo code as the event label, then it would make automated reporting difficult, due to the difference with all other errors.
Perhaps we should fire two Events when there's a coupon code error? One that's as per current format, and another that lists the promo code in the Event Label?
Curious to get advice on the best practice to follow here?