Umami 2.2.0 tracker XHR request works only on every second app restart
-
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.