1 Introduction
Umami is a lightweight website access statistics tool, open source and free, self-hosted, similar to Google Analytics.
On Umami's official website, it says: Umami is an open source, privacy-centric alternative to Google Analytics.
Well-known visitor website statistics tools include Baidu Statistics, Google Analytics, 51la, CNZZ, etc. I am currently using Google Analytics.
For Google Analytics, in addition to the inconvenience of accessing the statistical background, the loading of the front end is also a problem. Not to mention that some browsers block domain names such as hm.baidu.com
and googletagmanager.com
by default, and Google Analytics cannot even be loaded in some network environments. Therefore, I plan to try to build a website visitor statistics program by myself.
2. Installation
2.1, automatic installation
The automatic installation will automatically create a PostgreSQL container as the database. If you have your own database, it is recommended to use the custom installation method.
implement:
1 | git clone https://github.com/umami-software/umami.git cd umami |
Pull the code locally, edit
docker-compose.yaml
To modify configurations such as ports, execute
Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.
to start.
2.2, custom installation
Custom installs only pull Umami itself, along with database adapters that you can use to connect to your own database.
Available mirrors:
1 | # PostgreSQL docker pull docker.umami.dev/umami-software/umami:postgresql-latest # MySQL docker pull docker.umami.dev/umami-software/umami:mysql-latest |
Then use docker run
to start the corresponding image.
3. Use
Reverse generation, open the website.
Default account: admin
Default password: umami
Click Settings->Add website to add a website:
Copy the Tracking Code and add it to the website code.
After there are visitors, you can see the statistics:
Docker Website (15) Umami
Comments