googleanalytics / autotrack

Automatic and enhanced Google Analytics tracking for common user interactions on the web.
Other
4.92k stars 560 forks source link

Safari disallows the Beacon API when the page is unloading #233

Closed philipwalton closed 5 years ago

philipwalton commented 5 years ago

https://bugs.webkit.org/show_bug.cgi?id=188329

In my initial testing it does work when clicking on outbound links, but the pageVisibilityTracker plugin needs to be updated to use beforeunload instead of unload in Safari (related: https://github.com/GoogleChromeLabs/page-lifecycle/issues/2).

philipwalton commented 5 years ago

This has been fixed and shipped in iOS 12.2 and macOS 10.14.4.