umami

Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.

分析・BIGoogle Analyticsの代替MIT
35,900 スター6,780 フォーク
AIによる要約
ひとことで言うと

訪問者のプライバシーを守りながら、自社サーバーでウェブサイトのアクセス解析(誰がいつどのページを見たかを集計・分析すること)ができるツールです。

こんな方におすすめ

・企業:顧客データを外部サービスに預けずに自社管理したい場合に活用でき、情報漏洩リスクの低減やコンプライアンス対応の強化が期待できます。 ・スタートアップ:Google Analyticsなどの有料プランに頼らず自前でアクセス解析環境を構築でき、コスト削減とデータの完全な自社管理を同時に実現できます。 ・個人事業主・フリーランス:ブログや自社サイトの訪問状況をシンプルな画面で把握でき、複雑な設定なしにすぐ使い始められます。

有料サービスとの違い

Google Analyticsなどの有料・商用サービスと異なり、収集したデータが第三者のサーバーに送られないため、訪問者のプライバシーを守りやすい点が最大の強みです。また、無料で自社サーバーに設置して使い続けられるため、月額費用が一切かかりません。


🚀 はじめに

詳しいスタートガイドが umami.is/docsにあります。


ソースからのインストール

要件

  • Node.jsバージョン18.18以上のサーバー。
  • PostgreSQL データベースバージョン v12.14+.

ソースコードの入手とパッケージのインストール

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

Umamiを設定する

以下のように.envファイルを作成します:

bash DATABASE_URL=connection-url


接続URLのフォーマット:

バッシュ
postgresql://username:mypassword@localhost:5432/mydb

アプリケーションのビルド

pnpm run build

初めてインストールする場合は、ビルドステップによってデータベースにテーブルが作成されます。また、ユーザー名 admin 、パスワード umami のログインユーザーも作成されます。

アプリケーションの起動

bash pnpm run start


デフォルトでは、アプリケーションは `http://localhost:3000` で起動します。Webサーバーからのリクエストを[proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/)するか、アプリケーションを直接提供するために[port](https://nextjs.org/docs/api-reference/cli#production)を変更する必要があります。

---

## 🐳 Dockerでのインストール

UmamiはDockerイメージとDocker composeファイルを提供します。

Dockerイメージ

バッシュ
docker pull docker.umami.is/umamii-software/umami:latest

Docker compose(PostgreSQLデータベースでUmamiを実行する):

bash docker compose up -d


---

## ᔄ アップデートの取得

最新の機能を入手するには、単にプルを行い、新しい依存関係をインストールし、再構築します:

バッシュ
git pull
pnpm install
pnpm build

Dockerイメージを更新するには、新しいイメージをプルして再構築するだけです:

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


---

## 🛟サポート

<p align="center">
  <a href="https://github.com/umami-software/umami"><img src="https://img.shields.io/badge/GitHub--blue?style=social&logo=github" alt="GitHub" /></a>
  <a href="https://twitter.com/umami_software"><img src="https://img.shields.io/badge/Twitter--blue?style=social&logo=twitter" alt="ツイッター" /></a>
  <a href="https://linkedin.com/company/umami-software"><img src="https://img.shields.io/badge/LinkedIn--blue?style=social&logo=linkedin" alt="LinkedIn" /></a>
  <a href="https://umami.is/discord"><img src="https://img.shields.io/badge/Discord--blue?style=social&logo=discord" alt="Discord" /></a>
</p>

[リリースシールド]: https://img.shields.io/github/release/umami-software/umami.svg
[リリース-url]: https://github.com/umami-software/umami/releases
[ライセンス・シールド]: https://img.shields.io/github/license/umami-software/umami.svg
[ライセンス-url]: https://github.com/umami-software/umami/blob/master/LICENSE
[ビルドシールド]: https://img.shields.io/github/actions/workflow/status/umami-software/umami/ci.yml
[ビルド-url]: https://github.com/umami-software/umami/actions
[github-shield]: https://img.shields.io/badge/GitHub--blue?style=social&logo=github
[github-url]: https://github.com/umami-software/umami
[twitter-シールド]: https://img.shields.io/badge/Twitter--blue?style=social&logo=twitter
[twitter-url]: https://twitter.com/umami_software
[リンクトイン・シールド]: https://img.shields.io/badge/LinkedIn--blue?style=social&logo=linkedin
[リンクトイン-url]: https://linkedin.com/company/umami-software
[discord-シールド]: https://img.shields.io/badge/Discord--blue?style=social&logo=discord
[discord-url]:https://discord.com/invite/4dz4zcXYrQ