A simple website statistics analyzer
APACHE-2.0 License
A simple visitor statistics system based on Golang + Redis
Support multiple running methods: compile and run from source code, run with Docker. See Install for details
docker-compose.yaml
file with your own configuration.docker-compose up -d
to start the service.http://localhost:8080
to view the data.Supports multiple custom attributes, compatible with pjax web pages, supports custom tag prefixes. See: Usage documentation
Busuanzi
uses Redis for data storage and retrieval. Redis, as an in-memory database, has extremely high read and write performance. At the same time, its unique RDB and AOF persistence mechanisms ensure the security of Redis data.UV and PV data are stored in the following keys:
index | Types | key |
---|---|---|
sitePv | String | bsz:site_pv:md5(host) |
siteUv | HyperLogLog | bsz:site_uv:md5(host) |
pagePv | ZSet | bsz:page_pv:md5(host) / md5(path) |
pageUv | HyperLogLog | bsz:site_uv:md5(host):md5(path) |
Logo created by ChatGPT