Posted By

nicomollet on 01/21/11


Tagged

form jquery Analytics


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

AllKnightAccess
virendrakryadav


jQuery Google Analytics Form Field tracking event


 / Published in: jQuery
 

  1. $(document).ready(function() {
  2. var currentPage = jQuery.url.attr("path");
  3. $(':input').blur(function () {
  4. if($(this).val().length > 0){
  5. pageTracker._trackEvent("Form: " + currentPage, "input_exit",$(this).attr('name'));
  6. }
  7. });
  8. });

Report this snippet  

You need to login to post a comment.