@tsteur opened this Pull Request on May 22nd 2020 Member

refs https://github.com/matomo-org/matomo/issues/9939

early stage... usage:

within a service worker do

self.importScripts('https://your.matomo.domain/offline-service-worker.js');
matomoAnalytics.initialize();

to register service worker:

if ('serviceWorker' in navigator) {
  window.addEventListener('load', function() {
    navigator.serviceWorker.register('/your-service-worker.js');
  });
}
Powered by GitHub Issue Mirror