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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -