Offline tracking in Matomo JavaScript Tracker – We need your feedback

As part of our Matomo 4 release we are working on adding support for offline tracking using service workers (SW) and IndexedDB. An early version of this new feature is now available as part of our latest Matomo 4 beta and we now need your feedback to fix any outstanding issues.

How does it work behind the scenes?

  • The service worker caches the Matomo JavaScript tracker so if a user becomes offline on subsequent requests the JS tracker will be still loaded.
  • If a user is offline, any tracking request will be put into the local IndexedDB.
  • Once the user becomes online, all requests from the IndexedDB will be retried.

How do I integrate offline tracking into my website or app?

Follow the steps in our FAQ on how to set up offline tracking

We need your feedback

We’d love to hear your feedback if this new feature is working for you or not. Simply leave a comment on the offline tracking issue and let us know if it worked for you, if something didn’t work, whether you miss any options or any other kind of feedback.

Are you a service worker or IndexedDB pro? We’d love if you could help us review our implementation. You can check out the code in the offline tracking pull request. We appreciate any feedback to help us improve this feature!

Thank you for your help!

Share this post

Share on facebook
Share on twitter
Share on linkedin
Share on print
Share on email