A
A
Andrew Chil2015-01-27 21:21:08
PHP
Andrew Chil, 2015-01-27 21:21:08

How to display statistics on the site?

Hello! On some site I saw how a block was displayed, in which it was shown from which country and how many people are currently on the site (beautifully with country flags). Now it has become very interesting how this is done, this question is directly tormenting ...
Perhaps someone has come across this and knows how it is done?
Thanks in advance)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Taratin, 2015-01-27
@Taraflex

www.revolvermaps.com/?target=setup

I
ivkol, 2015-01-27
@ivkol

by ip

M
Maxim Kudryavtsev, 2015-01-27
@kumaxim


In private mode - Yandex.Metrica or Google Analytics

L
littlehobbit1992, 2015-01-27
@littlehobbit1992

For this, there is a GeoIP database, which stores data on the correspondence of IP addresses to countries and Internet providers. Popular web servers (nginx, Apache) have modules for working with GeoIP. There is a PHP library for working with GeoIP - https://php.net/manual/en/book.geoip.php. There are also solutions for other languages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question