Communitygithub.com

analytics

ユーザーがアナリティクスのトラッキング設定、改善、監査を行いたい場合に使用します。また、ユーザーが特定のツールや指標について言及した場合にも使用します。

analytics とは?

このスキルは、アナリティクス実装と測定の専門家として、マーケティングおよびプロダクトの意思決定に役立つトラッキング設定を支援します。最初にプロダクトマーケティングのコンテキストを確認し、ビジネス背景、現在の状態、技術スタックを理解した上で、データではなく意思決定のためのトラッキングを設計します。具体的なイベント命名規則、トラッキング計画フレームワーク、GA4やGoogle Tag Managerの実装手順、UTMパラメータ戦略、デバッグ検証、プライバシーコンプライアンスまでをカバーします。このスキルはClaude Code、Cursor、CodexなどのAIエージェント向けに設計されており、開発チームやマーケティングチームが一貫性のある高品質なアナリティクスを実装するのを支援します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coreyhaines31/marketingskills/tree/main/skills/analytics

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

アナリティクストラッキング

あなたはアナリティクス実装と測定の専門家です。マーケティングおよびプロダクトの意思決定に役立つ洞察を提供するトラッキング設定を支援することが目標です。

初期評価

まずプロダクトマーケティングのコンテキストを確認してください: .agents/product-marketing.md が存在する場合(または .claude/product-marketing.md、旧セットアップのレガシー product-marketing-context.md)、質問する前にそれを読んでください。そのコンテキストを活用し、まだカバーされていない情報やこのタスクに固有の情報のみを質問してください。

トラッキングを実装する前に、以下を理解してください:

  1. ビジネスコンテキスト - このデータはどのような意思決定に活用されますか?主なコンバージョンは何ですか?
  2. 現在の状態 - どのようなトラッキングが存在しますか?どのツールが使用されていますか?
  3. 技術的コンテキスト - 技術スタックは何ですか?プライバシー/コンプライアンス要件はありますか?

基本原則

1. データではなく意思決定のためにトラッキングする

  • すべてのイベントは意思決定に役立つものであるべき
  • バニティメトリクスを避ける
  • イベントの質 > 量

2. 質問から始める

  • 何を知る必要がありますか?
  • このデータに基づいてどのようなアクションを取りますか?
  • トラッキングすべきものから逆算して考える

3. 一貫した命名

  • 命名規則は重要
  • 実装前にパターンを確立する
  • すべてを文書化する

4. データ品質を維持する

  • 実装を検証する
  • 問題を監視する
  • クリーンなデータ > 大量のデータ

トラッキング計画フレームワーク

構造

イベント名 | カテゴリ | プロパティ | トリガー | 備考
---------- | -------- | ---------- | ------- | -----

イベントタイプ

タイプ例
ページビュー自動、メタデータで拡張
ユーザーアクションボタンクリック、フォーム送信、機能使用
システムイベントサインアップ完了、購入、サブスクリプション変更
カスタムコンバージョンゴール達成、ファネルステージ

包括的なイベントリストについては: references/event-library.md を参照


イベント命名規則

推奨フォーマット: オブジェクト-アクション

signup_completed
button_clicked
form_submitted
article_read
checkout_payment_completed

ベストプラクティス

  • 小文字とアンダースコアを使用
  • 具体的に: cta_hero_clicked 対 button_clicked
  • コンテキストはプロパティに含め、イベント名には含めない
  • スペースや特殊文字を避ける
  • 決定事項を文書化する

必須イベント

マーケティングサイト

イベントプロパティ
cta_clickedbutton_text, location
form_submittedform_type
signup_completedmethod, source
demo_requested-

プロダクト/アプリ

イベントプロパティ
onboarding_step_completedstep_number, step_name
feature_usedfeature_name
purchase_completedplan, value
subscription_cancelledreason

ビジネスタイプ別の完全なイベントライブラリについては: references/event-library.md を参照


イベントプロパティ

標準プロパティ

カテゴリプロパティ
ページpage_title, page_location, page_referrer
ユーザーuser_id, user_type, account_id, plan_type
キャンペーンsource, medium, campaign, content, term
プロダクトproduct_id, product_name, category, price

ベストプラクティス

  • 一貫したプロパティ名を使用する
  • 関連するコンテキストを含める
  • 自動プロパティを重複させない
  • プロパティにPIIを含めない

GA4実装

クイックセットアップ

  1. GA4プロパティとデータストリームを作成
  2. gtag.jsまたはGTMをインストール
  3. 拡張計測機能を有効化
  4. カスタムイベントを設定
  5. 管理画面でコンバージョンをマーク

カスタムイベント例

gtag('event', 'signup_completed', {
  'method': 'email',
  'plan': 'free'
});

詳細なGA4実装については: references/ga4-implementation.md を参照


Googleタグマネージャー

コンテナ構造

コンポーネント目的
タグ実行されるコード(GA4、ピクセル)
トリガータグが発火するタイミング(ページビュー、クリック)
変数動的な値(クリックテキスト、データレイヤー)

データレイヤーパターン

dataLayer.push({
  'event': 'form_submitted',
  'form_name': 'contact',
  'form_location': 'footer'
});

詳細なGTM実装については: references/gtm-implementation.md を参照


UTMパラメータ戦略

標準パラメータ

パラメータ目的例
utm_sourceトラフィックソースgoogle, newsletter
utm_mediumマーケティング媒体cpc, email, social
utm_campaignキャンペーン名spring_sale
utm_contentバージョンの区別hero_cta
utm_term有料検索キーワードrunning+shoes

命名規則

  • すべて小文字にする
  • アンダースコアまたはハイフンを一貫して使用
  • 具体的かつ簡潔に: blog_footer_cta、cta1 ではない
  • すべてのUTMをスプレッドシートに文書化する

デバッグと検証

テストツール

ツール用途
GA4 DebugViewリアルタイムイベント監視
GTMプレビューモード公開前にトリガーをテスト
ブラウザ拡張機能Tag Assistant、dataLayer Inspector

検証チェックリスト

  • イベントが正しいトリガーで発火しているか
  • プロパティ値が正しく設定されているか
  • 重複イベントがないか
  • ブラウザやモバイルで動作するか
  • コンバージョンが正しく記録されているか
  • PIIが漏洩していないか

よくある問題

問題確認事項
イベントが発火しないトリガー設定、GTMが読み込まれているか
値が間違っている変数パス、データレイヤー構造
重複イベント複数のコンテナ、トリガーが2回発火

プライバシーとコンプライアンス

考慮事項

  • EU/UK/CAではCookie同意が必要
  • アナリティクスプロパティにPIIを含めない
  • データ保持設定
  • ユーザー削除機能

実装

  • 同意モードを使用(同意を待つ)
  • IP匿名化
  • 必要なものだけを収集
  • 同意管理プラットフォームと統合

出力フォーマット

トラッキング計画ドキュメント

# [サイト/プロダクト] トラッキング計画

## 概要
- ツール: GA4, GTM
- 最終更新日: [日付]

## イベント

| イベント名 | 説明 | プロパティ | トリガー |
|------------|-------------|------------|---------|
| signup_completed | ユーザーがサインアップを完了 | method, plan | 成功ページ |

## カスタムディメンション

| 名前 | スコープ | パラメータ |
|------|-------|-----------|
| user_type | ユーザー | user_type |

## コンバージョン

| コンバージョン | イベント | カウント方法 |
|------------|-------|----------|
| サインアップ | signup_completed | セッションあたり1回 |

タスク固有の質問

  1. どのツールを使用していますか?(GA4、Mixpanelなど)
  2. どのような主要アクションを追跡したいですか?
  3. このデータはどのような意思決定に活用されますか?
  4. 誰が実装しますか?(開発チーム or マーケティング)
  5. プライバシー/同意要件はありますか?
  6. すでに追跡されているものは何ですか?

ツール連携

実装については、ツールレジストリ を参照してください。主要なアナリティクスツール:

ツール最適な用途MCPガイド
GA4ウェブ解析、Googleエコシステム✓ga4.md
Mixpanelプロダクト分析、イベントトラッキング-mixpanel.md
Amplitudeプロダクト分析、コホート分析-amplitude.md
PostHogオープンソース分析、セッションリプレイ-posthog.md
Segmentカスタマーデータプラットフォーム、ルーティング-segment.md

関連スキル

  • ab-testing: 実験トラッキング用
  • attribution: アトリビューションモデル、マルチタッチ/MMM/インクリメンタリティ、およびツール間の矛盾する数値の調整用(トラッキングがライブになった後)
  • seo-audit: オーガニックトラフィック分析用
  • cro: コンバージョン最適化用(このデータを使用)
  • revops: パイプラインメトリクス、CRMトラッキング、収益アトリビューション用

Individual skills in this repo

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

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions

ads

When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions

ai-seo

When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions

aso

When the user wants to audit or optimize an App Store or Google Play listing. Also use when the user mentions

attribution

When the user wants to figure out which marketing actually drives conversions and revenue, choose or interpret an attribution model, or reconcile conflicting numbers across tools. Also use when the user mentions

churn-prevention

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions

cold-email

Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Also use when the user mentions

co-marketing

When the user wants to find co-marketing partners, plan joint campaigns, or brainstorm partnership opportunities. Use when the user says

community-marketing

Build and leverage online communities to drive product growth and brand loyalty. Use when the user wants to create a community strategy, grow a Discord or Slack community, manage a forum or subreddit, build brand advocates, increase word-of-mouth, drive community-led growth, engage users post-signup, or turn customers into evangelists. Trigger phrases: \

competitor-profiling

When the user wants to research, profile, or analyze competitors from their URLs. Also use when the user mentions

competitors

When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions

content-strategy

When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions

copy-editing

When the user wants to edit, review, or improve existing marketing copy, or refresh outdated content. Also use when the user mentions

copywriting

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says

coreyhaines31/ab-test-setup

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics-tracking. For page-level conversion optimization, see page-cro.

coreyhaines31/analytics-tracking

When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "attribution," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wants to measure marketing results. For A/B test measurement, see ab-test-setup.

coreyhaines31/aso-audit

When the user wants to audit or optimize an App Store or Google Play listing. Also use when the user mentions 'ASO audit,' 'app store optimization,' 'optimize my app listing,' 'improve app visibility,' 'app store ranking,' 'audit my listing,' 'why aren't people downloading my app,' 'improve my app conversion,' 'keyword optimization for app,' or 'compare my app to competitors.' Use when the user shares an App Store or Google Play URL and wants to improve it.

coreyhaines31/competitor-alternatives

When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'battle card,' or 'competitor teardown.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For sales-specific competitor docs, see sales-enablement.

coreyhaines31/email-sequence

When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold outreach emails, see cold-email. For in-app onboarding, see onboarding-cro.

coreyhaines31/form-cro

When the user wants to optimize any form that is NOT signup/registration — including lead capture forms, contact forms, demo request forms, application forms, survey forms, or checkout forms. Also use when the user mentions "form optimization," "lead form conversions," "form friction," "form fields," "form completion rate," "contact form," "nobody fills out our form," "form abandonment," "too many fields," "demo request form," or "lead form isn't converting." Use this for any non-signup form that captures information. For signup/registration forms, see signup-flow-cro. For popups containing forms, see popup-cro.

関連スキル