Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matomo Offline : Problem pushing indexedDB request records #19750

Open
utsavkoju opened this issue Sep 20, 2022 · 2 comments
Open

Matomo Offline : Problem pushing indexedDB request records #19750

utsavkoju opened this issue Sep 20, 2022 · 2 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.

Comments

@utsavkoju
Copy link

Expected Behavior

We have a self hosted matomo server (Matomo version: 4.11.0).
For one of our PWA application, we have implemented offline tracking following this guide (https://matomo.org/faq/how-to/how-do-i-set-up-matomo-offline-tracking/) . We have initialize the matomoAnalytics to store 10000s record for 30 days.
The app users don't have a good connectivity so, our plan is to asking them connect to the internet once every week to push all these offline stored analytics.

Current Behavior

When the app is offline, the indexedDB has stored all the interaction we made with the app. We can even see 10 days old records store there. We take the app online, It started syncing some of these records but after a while, it failed to submit.
For example:
Total Request: 562
Records failed to sync: 382
We did some more interaction with our app in offline mode and try to sync again but the newer request were successfully submited leaving the older record as it is without properly syncing them.

Possible Solution

Steps to Reproduce (for Bugs)

  1. In our device, we turn off the internet and did some interaction with the application.
  2. Turn the internet on to sync these interaction after few days.

Context

As our app users are remotely located, we need to collect their interaction in offline mode. We heavily rely on these interaction for taking decision.

Your Environment

  • Matomo Version: 4.11.0
  • PHP Version: 7.4.3
  • Server Operating System: Ubuntu 20.04
  • Additionally installed plugins:
  • Browser: Chrome
  • Operating System: Windows 11
@utsavkoju utsavkoju added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Sep 20, 2022
@bx80
Copy link
Contributor

bx80 commented Sep 22, 2022

Hi @utsavkoju, thanks for reporting this issue. I've assigned the issue for prioritization.

If you have any additional detail such as error messages then that could be helpful.
It also might be worth attempting the synchronization with the Matomo tracker in debug mode to see if any additional information is shown.

@bx80 bx80 added this to the For Prioritization milestone Sep 22, 2022
@utsavkoju
Copy link
Author

utsavkoju commented Sep 27, 2022

Hi @bx80,
Thanks for the quick response. Here are the few records form the indexedDB. The browser tries to push these records but failed to do so. Let me know if you need anything else for debugging purpose.
indexedDB.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.
Projects
None yet
Development

No branches or pull requests

2 participants