umami icon indicating copy to clipboard operation
umami copied to clipboard

Installed application, but no data!

Open pefman opened this issue 6 years ago • 5 comments

Hey there!

I just installed the application using the docker method, everything seems to install smooth. I can access the admin interface. If i manually go to the .js script its correctly loaded however i receive no data on the websites i have added.

Is there any form of debugging i can use?

Its seems like data is not dumped correctly into the database.

pefman avatar Sep 08 '20 08:09 pefman

Open up the browser devtools and check the Network tab. You should see a bunch of /api/collect calls on your website. Make sure they aren't returning errors.

mikecao avatar Sep 08 '20 08:09 mikecao

Open up the browser devtools and check the Network tab. You should see a bunch of /api/collect calls on your website. Make sure they aren't returning errors.

Thanks for your quick response! I cant find any errors, but when i checked the database it seems like its empty! :(

pefman avatar Sep 08 '20 08:09 pefman

I think i found the issue. site wont include the javascript, becuase its hosted on http not https and are giving mixed content.

pefman avatar Sep 08 '20 08:09 pefman

Someone had a similar issue here: https://github.com/mikecao/umami/issues/91#issuecomment-685451847

Routing the public umami endpoints (the umami.js file and /api/collect ) within your server to the https URL should do the trick if you have access to that nginx/apache config. The browser never knows about the http because externally its all the same domain (which would also bypasses some of the regex-tests for ^stats.* or ^tracker.* that some blockers use)

joshinat0r avatar Sep 08 '20 09:09 joshinat0r

The issue for me was that https sites would not allow the script to be loaded from http, causing mixed content so that the .js file was ignored. Running umami and js agent on https solved it :-)

pefman avatar Sep 08 '20 09:09 pefman