Return to Snippet

Revision: 39787
at March 12, 2011 02:19 by nicomollet


Updated Code
$(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'));
        } 
    });
});

Revision: 39786
at January 21, 2011 01:08 by nicomollet


Initial Code
$(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'));
        } 
    });
});

Initial URL

                                

Initial Description

                                

Initial Title
jQuery Google Analytics Form Field tracking event

Initial Tags
form, jquery

Initial Language
jQuery