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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.