@Ryrenz: 网站访问数据全部留在自己服务器上的开源分析工具,不用 Cookie,也不用把访客行为交给第三方。 GitHub 揽获 3.8 万 Star,自托管一份,数据库归自己。 做个人网站或者小产品,想看每天多少人来、从哪来、点了什么,挂个第三方分…
摘要
这是一个开源的分析工具,可以自托管,无需使用Cookie,将访客数据保留在自己的服务器上。该工具在GitHub上获得了3.8万星,支持流量来源、营销活动等功能。
查看缓存全文
缓存时间: 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
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.
🚀 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
相似文章
@CycleDecoded: 别再花大价钱买那些破爬虫软件交智商税了!这几天有个开源工具简直离谱,直接把全网社交平台的数据底裤都给扒了,搞流量矩阵和数据变现的饭碗真危了! 这就是 GitHub 上狂砍 5.4 万+ 星标的超神开源项目 MediaCrawler。大白话…
MediaCrawler 是一个 GitHub 上 5.4 万+ Star 的开源多平台社交媒体爬虫工具,支持小红书、抖音、B站等 7 大平台的数据采集,具备多账号、IP 代理、断点续爬和 AI 集成等特性。
@axichuhai: 兄弟们,这个开源项目直接开了上帝视角,把爬虫效率直接拉高数十倍,已经登顶 GitHub 热榜,5w+ star 数。 以前抓数据要写代码、维护选择器、对付各种反爬机制,现在全省了。 扔个 URL 进去,零代码、原生绕过屏蔽、不用维护选择器…
这个开源项目能零代码抓取网页数据,绕过反爬机制,效率提升数十倍,已获得5万+star。
@Jolyne_AI: 做爬虫、搞数据采集,代理服务器几乎是标配,不然 IP 分分钟被封。更麻烦的是,网上一堆“免费代理”基本都失效了。 我在 GitHub 刚好挖到一个开源项目:Proxifly。它每 5 分钟自动抓取、更新并验证免费代理,把“可用”这件事做得…
介绍了 GitHub 上的开源项目 Proxifly,每 5 分钟自动抓取并验证可用代理,覆盖 60+ 国家,支持多种协议,提供多种格式下载和 npm 安装。
@spicycandy00: 付费彭博终端:$24,000 一年。GitHub 平替:Star 29k,免费。 四个最猛的,按 Star 排。 daily_stock_analysis | 58k Star http://github.com/ZhuLinsen/da…
该推文推荐了四个高Star开源金融分析工具,可替代彭博终端,覆盖每日简报、专业终端、算法交易和深度研究,均基于GitHub免费部署。
@ChrisSlacker: 10个GitHub仓库帮你爬取整个互联网 全部收藏。每个都能从任何网站提取干净数据,这种访问权限通常需要销售电话和合同才能获得。 1. https://github.com/firecrawl/firecrawl… 指向任何网站,它就能爬…
这篇文章介绍了10个用于网络爬虫的GitHub开源仓库,包括Firecrawl、Crawl4AI等,能够从网站提取干净数据,支持AI就绪的格式。