0

I'm looking to set up an A/B test which is supposed to measure the amount of times someone closes the browser window on a mobile phone.

Is this even possible? My research basically tell me it's not.

Sweely
  • 386
  • 3
  • 15
  • well it isn't possible to track when user closes browser. what you can do is use a beacon which executes even if browser gets closed and maybe track time difference or something. but beacon is not supported throughout right now. – Sp0T Nov 09 '16 at 09:15
  • also possible duplicate - http://stackoverflow.com/questions/21227383/how-to-detect-browser-window-tab-close-event – Sp0T Nov 09 '16 at 09:16
  • A comprehensive article on the topic: https://www.igvita.com/2015/11/20/dont-lose-user-and-app-state-use-page-visibility/ – Artyom Neustroev Nov 09 '16 at 09:17

1 Answers1

0

No but you can use Page Visibility API to determine the current visibility state of the page.

Browser support is not bad.

CastenettoA
  • 673
  • 5
  • 17