Umami 2.2.0 tracker XHR request works only on every second app restart
-
@d19dotca yes, that update route sounds plausible. We released 3.0.0-1 after 3.1.0 . Weird but this was because we found the issue in 3.0.0 later (when you reported this bug).
So, at this point, there is nothing to update for you. We also don't know why it seems to work only every restart. Maybe clone the app and see if it's reproducible in the cloned app. It's easier for us to debug then on the cloned instance.
-
I just did a fresh install of Umami a few days ago, on May 13th, and I am experiencing the same exact issue.
Initially everything works.
If I restart the app, then on the site it loads a 200 for the js file but a 400 for the XHR request (so the data is not logged).
If I restart the app again, it works again as expected.
And so on...The only customization I have is in the env.sh where I added
export TRACKER_SCRIPT_NAME=get.js export COLLECT_API_ENDPOINT=/api/get
The installed version is:
App Title and Version: Umami 2.2.0 Package Version: is.umami.cloudronapp@3.1.0
-
I recently updated (funnily enough also on 13 May). I don't really use it much so only just went to look and lo and behold, zero data has been captured since 13 May (I also note that contrary to the warnings, the old data seems to still be there).
I've just restarted the app to see if like others on this thread that somehow magically makes the data collection work again... didn't seem to.
-
@jdaviescoates validate your tracker script still works and is being called correctly, or simply reinstall it with the new version with copy/pasta.
-
-
I tried to reproduce this but I am not able to. Here's what I did:
- Install umami
- Add domain in umami.
- Install surfer
- Put tracking code from umami into a sample index.html
- I refresh index.html 10 times. I see 10 in umami
Is there something special I need to do?
-
Try restarting either Umami or rebooting the server, after that Umami should stop working (you will see an error in the browser's console when loading the site).
Then after restarting/rebooting again, it will work again.Basically it stops working every other reboot, so when a reboot is needed I need to reboot twice to get Umami to work.
Not sure if it matters, but in my case the website I am tracking is on a different server than Umami.
-
Thanks for looking into this! I’m glad it’s not just me and others have seen this too. I know you said you couldn’t reproduce it a while back so assumed maybe it was an issue on my end, glad to know it’s something more with Umami and the build part. Thanks for sticking with it, @girish. And thanks to everyone else here commenting with their “me too” as well.