JSFiddle - React, Tailwind, and code Playground
JavaScript
$(document).ready(function() {
var currentPage = jQuery.url.attr("path");
$(':input').blur(function () {
if($(this).val().length > 0){
pageTracker._trackEvent("Form: " + currentPage, "input_exit", $(this).attr('name'));
}
});
});