Home

Awesome

soxft/busuanzi

self-hosted busuanzi

A simple visitor statistics system based on Golang + Redis

Installation

Support multiple running methods: compile and run from source code, run with Docker. See Install for details

Quick Start with Docker

  1. Edit the docker-compose.yaml file with your own configuration.
  2. Run docker-compose up -d to start the service.
  3. Visit http://localhost:8080 to view the data.

Usage

Supports multiple custom attributes, compatible with pjax web pages, supports custom tag prefixes. See: Usage documentation

Principle

UV and PV data are stored in the following keys:

indexTypeskey
sitePvStringbsz:site_pv:md5(host)
siteUvHyperLogLogbsz:site_uv:md5(host)
pagePvZSetbsz:page_pv:md5(host) / md5(path)
pageUvHyperLogLogbsz:site_uv:md5(host):md5(path)

Data Migration

Other

Logo created by ChatGPT

Upgrade Suggestions