diff --git a/tracker/index.js b/tracker/index.js index d7ccb86f..f6329633 100644 --- a/tracker/index.js +++ b/tracker/index.js @@ -122,7 +122,11 @@ import { removeTrailingSlash } from '../lib/url'; payload, }); - navigator.sendBeacon(`${root}/api/collect`, data); + fetch(`${root}/api/collect`, { + method: 'POST', + body: data, + keepalive: true, + }); }; const addEvents = node => {