@Ryrenz: 网站访问数据全部留在自己服务器上的开源分析工具,不用 Cookie,也不用把访客行为交给第三方。 GitHub 揽获 3.8 万 Star,自托管一份,数据库归自己。 做个人网站或者小产品,想看每天多少人来、从哪来、点了什么,挂个第三方分…

X AI KOLs Timeline 工具

摘要

这是一个开源的分析工具,可以自托管,无需使用Cookie,将访客数据保留在自己的服务器上。该工具在GitHub上获得了3.8万星,支持流量来源、营销活动等功能。

网站访问数据全部留在自己服务器上的开源分析工具,不用 Cookie,也不用把访客行为交给第三方。 GitHub 揽获 3.8 万 Star,自托管一份,数据库归自己。 做个人网站或者小产品,想看每天多少人来、从哪来、点了什么,挂个第三方分析脚本最省事,代价是访客数据全进了别人的库,页面上还得多一条 Cookie 提示。Umami 的做法是你自己跑一份:用它给的 Docker Compose 把 PostgreSQL 一起拉起来,默认监听 3000 端口,首次构建自动建好数据表和 admin 账户,打开就是看板。 能看的也不只是访问量,流量来源、营销活动、用户路径、转化和收入都在里面,还带双因素登录,配一个 64 位十六进制的密钥就能开。 自己的网站,数据当然该在自己手里。 GitHub:
查看原文
查看缓存全文

缓存时间: 2026/08/27 09:53

网站访问数据全部留在自己服务器上的开源分析工具,不用 Cookie,也不用把访客行为交给第三方。

GitHub 揽获 3.8 万 Star,自托管一份,数据库归自己。

做个人网站或者小产品,想看每天多少人来、从哪来、点了什么,挂个第三方分析脚本最省事,代价是访客数据全进了别人的库,页面上还得多一条 Cookie 提示。Umami 的做法是你自己跑一份:用它给的 Docker Compose 把 PostgreSQL 一起拉起来,默认监听 3000 端口,首次构建自动建好数据表和 admin 账户,打开就是看板。

能看的也不只是访问量,流量来源、营销活动、用户路径、转化和收入都在里面,还带双因素登录,配一个 64 位十六进制的密钥就能开。

自己的网站,数据当然该在自己手里。

GitHub:


umami-software/umami

Source: https://github.com/umami-software/umami

Umami Logo

Umami

Umami is a privacy-first analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place — no cookies, no surveillance, self-hosted or in the cloud.

GitHub Release MIT License Build Status Umami Demo


🚀 Getting Started

A detailed getting started guide can be found at umami.is/docs.


🛠 Installing from Source

Requirements

  • A server with Node.js version 18.18+.
  • A PostgreSQL database version v12.14+.

Get the source code and install packages

git clone https://github.com/umami-software/umami.git
cd umami
pnpm install

Configure Umami

Create an .env file with the following:

DATABASE_URL=connection-url

Optional: set API_URL to change the base URL used by internal UI API calls. Relative paths are served under BASE_PATH; absolute URLs are proxied through the local /api route. For example, API_URL=/internal-api or API_URL=https://api.example.com/api.

Optional: set TWO_FACTOR_ENCRYPTION_KEY to a 64-character hex string to enable two-factor authentication. Generate one with openssl rand -hex 32. Two-factor authentication is unavailable and cannot be required until this key is set.

The connection URL format:

postgresql://username:mypassword@localhost:5432/mydb

Build the Application

pnpm run build

The build step will create tables in your database if you are installing for the first time. It will also create a login user with username admin and password umami.

Start the Application

pnpm run start

By default, this will launch the application on http://localhost:3000. You will need to either proxy requests from your web server or change the port to serve the application directly.


🐳 Installing with Docker

Umami provides Docker images as well as a Docker compose file for easy deployment.

Docker image:

docker pull docker.umami.is/umami-software/umami:latest

Docker compose (Runs Umami with a PostgreSQL database):

docker compose up -d

🔄 Getting Updates

To get the latest features, simply do a pull, install any new dependencies, and rebuild:

git pull
pnpm install
pnpm build

To update the Docker image, simply pull the new images and rebuild:

docker compose pull
docker compose up --force-recreate -d

🛟 Support

GitHub Twitter LinkedIn Discord

相似文章

@CycleDecoded: 别再花大价钱买那些破爬虫软件交智商税了!这几天有个开源工具简直离谱,直接把全网社交平台的数据底裤都给扒了,搞流量矩阵和数据变现的饭碗真危了! 这就是 GitHub 上狂砍 5.4 万+ 星标的超神开源项目 MediaCrawler。大白话…

X AI KOLs Timeline

MediaCrawler 是一个 GitHub 上 5.4 万+ Star 的开源多平台社交媒体爬虫工具,支持小红书、抖音、B站等 7 大平台的数据采集,具备多账号、IP 代理、断点续爬和 AI 集成等特性。

@Jolyne_AI: 做爬虫、搞数据采集,代理服务器几乎是标配,不然 IP 分分钟被封。更麻烦的是,网上一堆“免费代理”基本都失效了。 我在 GitHub 刚好挖到一个开源项目:Proxifly。它每 5 分钟自动抓取、更新并验证免费代理,把“可用”这件事做得…

X AI KOLs Timeline

介绍了 GitHub 上的开源项目 Proxifly,每 5 分钟自动抓取并验证可用代理,覆盖 60+ 国家,支持多种协议,提供多种格式下载和 npm 安装。