javascript - Google Analytics Event Tracking - Page Exit -
i'm trying track when user exits page using code below doesn't seem firing event:
function storedata(){ _gaq.push(['_trackevent', 'application form', 'exit-form_application_', 4, '', false]); } $(window).on('unload',storedata); i've tried other ways such method shown here still can't fire. have other events firing e.g when form field completed/skipped can't seem 1 work.
any idea?
thanks
is not firing @ or not registering event? if last, maybe order of variables wrong think. value needs number. maybe work better?
_gaq.push(['_trackevent', 'application form', 'exit-form_application_', '', 4, false]);
Comments
Post a Comment