Setup an analytics server for sites

I am trying to figure out how to setup an analytics server for sites. Is there a documentation anywhere that can guide me?

I think you need to setup Monitor Server and map it in Press settings

Setup the analytics and log server before your other servers

Hi, are you available for a short gig?

Hi, no sorry I’m not available :confused:. Good luck, I might be able to answer questions if you ask them on the forum.

1 Like

Setup the monitor server, you will get the analytics

I just set up something similar and used a webhook in frappe to send event data to small backend script that writes into a database, then query that for starts

And yes, there are a few good resources depending on what kind of analytics server you want to set up (e.g. Matomo, Plausible, Google Analytics alternative, etc.). Most open-source analytics platforms have official setup guides on GitHub or their websites. For example, Matomo and Plausible both offer step-by-step documentation for cloud or self-hosted installations.

Also, if you’re looking for curated tools or helpful resources for creators setting up their own platforms, check out https://toolsforcreators.org/ — it’s a great starting point."

How i can map server? Can’t find any button for this in press settings. Also i tried to reinstall n1, m1 and f1 servers after setup monitor server, analitycs don’t work. At same time there aro no problems with socket.io because i see dynamic elements like ansible play tasks running. I think that may be some problems with my nginx config? Standart config what bench create differs a lot with this.

To solve the internal server on the analytics page of the site

Log in to the monitor server as root user and then

cd agent/
source env/bin/activate
agent setup nginx

run this cmds

Output should look like this

{"command": "sudo systemctl reload nginx", "directory": "/home/frappe/agent", "start": "2025-03-27 09:11:14.867564", "status": "Running", "output": ""}
{"command": "sudo systemctl reload nginx", "directory": "/home/frappe/agent", "start": "2025-03-27 09:11:14.867564", "status": "Success", "output": "", "returncode": 0, "duration": "0:00:00.065231", "end": "2025-03-27 09:11:14.932795"}

1 Like

i already setup monitor and log server, but in analytics tab, i get no data. can you help me ?