Communitygithub.com

YepAPI/skills

網頁分析整合 — 事件追蹤、自訂儀表板、隱私優先。

skills 是什麼?

此技能專注於隱私優先的網頁分析整合,提供事件追蹤、自訂儀表板及 GDPR 合規指引。它支援 Plausible、Fathom、Umami 等第三方服務,或自託管 PostHog。技能強調伺服器端追蹤以確保資料準確性,並鼓勵透過 Next.js 中介軟體或 API 路由進行,避免客戶端追蹤被廣告攔截器屏蔽。此外,它規範了自訂事件的命名約定(snake_case, verb_noun 格式),並要求解析 UTM 參數以追蹤轉換事件。此技能也涵蓋了建立內部分析儀表板、歐盟要求的同意橫幅,以及過濾內部流量(如管理員 IP)的最佳實踐。不建議使用未經同意的 Google Analytics,並避免追蹤個人識別資訊(PII)。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/analytics

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

網頁分析

規則

  • 隱私優先:使用 Plausible、Fathom 或 Umami 以符合 GDPR — 或自託管 PostHog
  • 伺服器端追蹤以確保準確性:Next.js 中介軟體或 API 路由 — 而非僅客戶端
  • 自訂事件:追蹤有意義的動作(註冊、購買、feature_used)— 而非僅頁面瀏覽
  • UTM 參數:從 URL 解析 utm_source、utm_medium、utm_campaign — 與轉換事件一同儲存
  • 事件命名慣例:snake_case,verb_noun 格式:click_cta、submit_form、view_pricing
  • 儀表板:使用 YepAPI 領域資料 + 你自己的事件資料建立內部分析頁面
  • 同意橫幅:歐盟境內必需 — 僅在取得同意後載入追蹤
  • 排除內部流量:按 IP 或已驗證的管理員使用者過濾

避免

  • 未經 Cookie 同意的 Google Analytics — GDPR 違規
  • 追蹤所有內容 — 專注於可操作的指標,而非虛榮頁面瀏覽量
  • 僅客戶端追蹤 — 廣告攔截器會移除 20-40% 的資料
  • 向分析工具發送 PII(電子郵件、姓名)— 使用匿名 ID

Individual skills in this repo

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

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相關技能