Communitygithub.com

Umami 웹 분석 스킬

Umami — 개인정보 보호 중심의 오픈소스 Google Analytics 대안을 사용하여 웹사이트 분석을 추적합니다. '웹사이트 분석 추적', 'Umami', '프라이버시 친화적 분석', '자체 호스팅 분석', 'GDPR 준수 분석', 'Google Analytics 대체', '쿠키 없는 웹사이트 트래픽 추적' 요청 시 사용합니다. 설정, 이벤트 추적, 사용자 정의 속성, API 및 자체 호스팅을 포함합니다.

Umami 웹 분석 스킬란 무엇인가요?

Umami는 쿠키나 개인 데이터 수집 없이 페이지 뷰, 방문자 및 사용자 정의 이벤트를 추적하는 개인정보 보호 중심의 웹 분석 플랫폼입니다. 기본적으로 GDPR/CCPA를 준수하므로 별도의 동의 배너가 필요하지 않으며, Docker, Vercel, Netlify 또는 Railway를 통해 자체 인프라에 호스팅하거나 Umami Cloud를 사용할 수 있습니다. 이 스킬은 웹사이트 분석 요구 사항을 처리하는 AI 에이전트를 위해 설계되었으며, 자체 호스팅 설정, 추적 스크립트 추가(HTML/Next.js), `umami.track()`을 통한 사용자 정의 이벤트 추적, 그리고 API 기반 분석 데이터 가져오기(예: `GET /api/websites/{id}/pageviews`)를 안내합니다. 이를 통해 에이전트는 복잡한 GA4 설정 없이도 깔끔하고 개인정보를 존중하는 분석 솔루션을 배포하고, SaaS 제품에 분석을 통합하며, 맞춤형 대시보드를 구축할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/TerminalSkills/skills/tree/HEAD/skills/umami

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Umami

개요

Umami는 개인정보 보호에 중점을 둔 웹 분석 플랫폼입니다. 쿠키나 개인 데이터 수집 없이 페이지 뷰, 방문자 및 사용자 정의 이벤트를 추적합니다. 기본적으로 GDPR/CCPA를 준수하므로 동의 배너가 필요하지 않습니다. 자체 인프라에 직접 호스팅하거나 Umami Cloud를 사용할 수 있습니다. 깔끔한 대시보드, 실시간 통계 및 프로그래밍 방식 액세스를 위한 API를 제공합니다. 오픈소스 Google Analytics 대안 1위입니다.

사용 시기

  • 쿠키 동의 배너 없이 웹사이트 분석이 필요한 경우
  • GDPR/CCPA 준수가 필수인 경우
  • 분석 데이터를 Google에 신뢰하고 싶지 않은 경우
  • 자체 인프라에서 분석을 호스팅하려는 경우
  • GA4의 복잡성 없이 간단하고 깔끔한 분석이 필요한 경우
  • 대시보드/리포팅을 위한 분석 데이터에 API로 액세스해야 하는 경우

지침

자체 호스팅 설정하기

# Docker Compose 사용
git clone https://github.com/umami-software/umami.git
cd umami
docker compose up -d

# 또는 Vercel/Netlify/Railway에 한 번 클릭 배포
# 참고: https://umami.is/docs/install

추적 스크립트 추가하기

<!-- 사이트의 <head>에 추가 -->
<script
  defer
  src="https://analytics.mysite.com/script.js"
  data-website-id="your-website-id"
></script>
// Next.js — app/layout.tsx
import Script from "next/script";

export default function RootLayout({ children }) {
  return (
    <html>
      <head>
        <Script
          defer
          src="https://analytics.mysite.com/script.js"
          data-website-id="your-website-id"
        />
      </head>
      <body>{children}</body>
    </html>
  );
}

사용자 정의 이벤트 추적하기

// 사용자 정의 이벤트 추적
// Umami는 전역 `umami` 객체를 노출합니다.

// 버튼 클릭 추적
document.getElementById("signup-btn")?.addEventListener("click", () => {
  umami.track("signup-click", { plan: "pro", source: "header" });
});

// 양식 제출 추적
function handleSubmit(formData: FormData) {
  umami.track("form-submit", {
    form: "contact",
    subject: formData.get("subject"),
  });
}

// React로 추적하기
function PricingCard({ plan }: { plan: string }) {
  return (
    <button
      onClick={() => umami.track("pricing-click", { plan })}
      data-umami-event="pricing-click"
      data-umami-event-plan={plan}
    >
      Choose {plan}
    </button>
  );
}

API 액세스하기

// api/analytics.ts — 분석 데이터를 프로그래밍 방식으로 가져오기
const UMAMI_URL = "https://analytics.mysite.com";
const UMAMI_TOKEN = process.env.UMAMI_API_TOKEN;

async function getPageViews(websiteId: string, days = 30) {
  const endDate = Date.now();
  const startDate = endDate - days * 24 * 60 * 60 * 1000;

  const res = await fetch(
    `${UMAMI_URL}/api/websites/${websiteId}/pageviews?startAt=${startDate}&endAt=${endDate}&unit=day`,
    { headers: { Authorization: `Bearer ${UMAMI_TOKEN}` } }
  );
  return res.json();
}

async function getTopPages(websiteId: string) {
  const endDate = Date.now();
  const startDate = endDate - 7 * 24 * 60 * 60 * 1000;

  const res = await fetch(
    `${UMAMI_URL}/api/websites/${websiteId}/metrics?startAt=${startDate}&endAt=${endDate}&type=url`,
    { headers: { Authorization: `Bearer ${UMAMI_TOKEN}` } }
  );
  return res.json();  // [{ x: "/pricing", y: 1234 }, ...]
}

예시

예시 1: SaaS에 개인정보 보호 친화적인 분석 추가하기

사용자 프롬프트: "쿠키나 동의 배너 없이 SaaS에 분석을 추가해주세요."

에이전트는 Umami를 배포하고, 추적 스크립트를 추가하며, 주요 작업(가입, 업그레이드, 기능 사용)에 대한 사용자 정의 이벤트를 설정하고, 내부 대시보드를 위한 API 통합을 생성합니다.

예시 2: 사용자 정의 분석 대시보드 구축하기

사용자 프롬프트: "마케팅 팀을 위해 Umami 데이터를 사용자 정의 대시보드로 가져와주세요."

에이전트는 Umami API를 사용하여 페이지 뷰, 인기 페이지, 리퍼러(referrers) 및 이벤트를 가져온 후 React 대시보드에 표시합니다.

지침

  • 쿠키 없음 = 동의 배너 불필요 — 기본적으로 GDPR 준수
  • data-umami-event 속성 — JavaScript 없이 클릭 추적 가능
  • 사용자 정의 이벤트: umami.track(name, data) — 유연한 이벤트 추적
  • 완전한 제어를 위한 자체 호스팅 — Docker, Vercel, Railway 또는 모든 Node.js 호스트
  • 프로그래밍 방식 액세스를 위한 API — 사용자 정의 대시보드 및 리포트 구축
  • 다중 사이트 지원 — 하나의 Umami 인스턴스로 여러 웹사이트 추적
  • 실시간 대시보드 — 현재 활성 방문자 확인
  • UTM 추적 — 캠페인 기여도 분석 자동 작동
  • 경량 스크립트 — 2KB 미만, 사이트 속도 저하 없음
  • PostgreSQL 또는 MySQL — 백엔드 데이터베이스 선택 가능

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

TerminalSkills/skills

>- Run GitHub Actions locally with act. Use when a user asks to test GitHub Actions workflows locally, debug CI pipelines without pushing, or run workflows offline.

TerminalSkills/skills

>- You are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.

TerminalSkills/skills

>- Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.

TerminalSkills/skills

>- Animate 3D objects and characters in Blender with Python. Use when the user wants to keyframe properties, create armatures and rigs, set up IK/FK chains, animate shape keys for facial animation, edit F-Curves, use the NLA editor to blend actions, add drivers for expression-based animation, or script any animation workflow in Blender.

TerminalSkills/skills

>- Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.

TerminalSkills/skills

>- You are an expert in Bolt.new by StackBlitz, the AI-powered full-stack development environment that runs entirely in the browser. You help developers go from idea to deployed app in minutes using natural language prompts — Bolt generates complete applications with frontend, backend, database, and deployment, all running in a WebContainer without local setup.

TerminalSkills/skills

>- Assists with using Bun as an all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building HTTP servers, managing packages, running tests, or migrating from Node.js. Trigger words: bun, bun serve, bun install, bun test, bun build, javascript runtime, bun runtime.

TerminalSkills/skills

>- Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills

>- You are an expert in Chi, the lightweight, idiomatic Go HTTP router built on `net/http`. You help developers build composable HTTP services using Chi's middleware stack, route groups, URL parameters, sub-routers, and context-based request scoping — providing Express-like ergonomics while staying 100% compatible with Go's standard library.

TerminalSkills/skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused passes.

TerminalSkills/skills

>- Add live chat and customer support with Crisp. Use when a user asks to add a chat widget, implement live customer support, set up a help desk, create a knowledge base, or add a chatbot to a website.

TerminalSkills/skills

>- Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.

TerminalSkills/skills

dbt (data build tool) transforms data in your warehouse using SQL SELECT statements. Learn project setup, models, tests, documentation, incremental materializations, and integration with data warehouses like PostgreSQL, BigQuery, and Snowflake.

TerminalSkills/skills

>- You are an expert in dlt, the open-source Python library for building data pipelines. You help developers load data from any API, file, or database into warehouses and lakes using simple Python decorators — with automatic schema inference, incremental loading, and built-in data contracts. dlt is the "requests library for data pipelines.

TerminalSkills/skills

Data Version Control for ML projects. Track large datasets and models alongside Git, build reproducible ML pipelines, and run experiments with metric comparison. Works with any storage backend including S3, GCS, Azure, and local filesystems.

TerminalSkills/skills

>- You are an expert in E2B, the cloud platform for running AI-generated code in secure sandboxes. You help developers give AI agents the ability to execute code, install packages, read/write files, and run long processes in isolated cloud environments — each sandbox is a lightweight VM that boots in ~150ms with full Linux, filesystem, and networking.

TerminalSkills/skills

>- Transcode, convert, edit, and process audio and video with FFmpeg. Use when a user asks to convert video formats (webm to mp4, mkv to mp4), extract audio from video, compress video files, trim or cut clips, concatenate videos, add subtitles, create thumbnails, apply filters, change resolution or bitrate, re-encode media, create GIFs from video, add watermarks, normalize audio, stream media, or build automated media processing pipelines.

TerminalSkills/skills

>- Create advanced animations with GSAP. Use when building complex timelines, scroll-driven animations, SVG morphing, text animations, or high-performance web animations beyond CSS capabilities.

TerminalSkills/skills

>- Generate deterministic MP4 videos from HTML, CSS, media, and seekable animations using HeyGen's HyperFrames framework. Use when someone asks to "render HTML to video", "make a video with HyperFrames", "create a programmatic video", "turn an animation into MP4", "build a launch/product video from HTML", "render GSAP/Lottie/Three.js to video", or set up an agent-driven video pipeline. Covers init/preview/render/add/lint/inspect commands, data-* timing attributes, animation adapters, and the component catalog.

TerminalSkills/skills

When the user wants to perform load testing, stress testing, or performance testing of APIs and websites using k6. Also use when the user mentions "k6," "load test," "performance test," "stress test," "spike test," "soak test," "thresholds," "virtual users," or "VUs." For browser-based testing, see selenium.

관련 스킬