How to do statistics of a domain?


I have bought a server from DigitalOcean and a domain name from GoDaddy.

I have already done some configuration, at the moment the site is just a very simple html page.

I would like to trace the information of visitors, as much as possible… For example, the IP of visitors, the number of visitors and visits during a period, the location of visitors, etc.

Later, the site will grow, I want to trace action of visits with regard to each page, to see what they have hit (e.g., video).

Does anyone know how to realise this?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

There are quite a few options out there. The simplest solution to implement is going with a third party tool like Google Analytics that just requires you to insert some javascript code into your page(s). If you’re looking to analyze your logs to get some additional information there are some older packages like webalizer that can be configured to work with nginx. I’d recommend doing a bit of research to pick the solution that best fits your needs.