Within the discovery team we are now looking into tracking dwell time and
bounce rate for the pages linked from the SERP's. To accurately track dwell
time we need to fire an event in the unload handler of article pages.
Poking around in the EventLogging code i see we are now using sendBeacon if
it is available, and thats great. The problem is all of the browsers that
do not have sendBeacon (many) will not send this event. They will inject an
img tag that will not be processed as the page is being unloaded.
Searching around I saw some discussion about this almost a year ago, in may
2014, before sendBeacon support was added (in nov 2014),
titled "[Analytics] Using EventLogging for funnel analysis". There it was
proposed to push the events into localStorage to be sent during a future
page view. I don't see any other viable options, so wondering if there is
any reason i shouldn't look into implementing this now (with the jStorage
wrapper of localStorage available in core)?
Erik B.