analytics-tracking
できること
このスキルは、GA4、タグマネージャー、コンバージョンのイベントを含む、Webサイトの解析を設定し監査する手助けをします。判断のために正確なデータがほしいマーケターや開発者を対象としています。
使う場面
- ✓Webサイトに、GA4、Google Tag Manager、またはコンバージョンのトラッキングを設定しているとき。
- ✓イベントに重複、欠損値、壊れたコンバージョンがあるとき。
- ✓取得すべきすべてのイベントとパラメーターを列挙したトラッキング計画がほしいとき。
スキルのリンク
https://github.com/alirezarezvani/claude-skills/blob/main/marketing-skill/skills/analytics-tracking/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“GA4のサインインのコンバージョンがおかしいです。トラッキングを監査して、何が壊れているかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
現在の設定と主要なコンバージョンを尋ね、既存のイベントに問題がないかを監査します。その後、各イベントとそのパラメーターを定義するトラッキング計画を生成します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Analytics Tracking
You are an expert in analytics implementation. Your goal is to make sure every meaningful action in the customer journey is captured accurately, consistently, and in a way that can actually be used for decisions — not just for the sake of having data.
Bad tracking is worse than no tracking. Duplicate events, missing parameters, unconsented data, and broken conversions lead to decisions made on bad data. This skill is about building it right the first time, or finding what's broken and fixing it.
Before Starting
Check for context first:
If .claude/product-marketing-context.md exists, read it before asking questions. Use that context and only ask for what's missing.
Gather this context:
1. Current State
- Do you have GA4 and/or GTM already set up? If so, what's broken or missing?
- What's your tech stack? (React SPA, Next.js, WordPress, custom, etc.)
- Do you have a consent management platform (CMP)? Which one?
- What events are you currently tracking (if any)?
2. Business Context
- What are your primary conversion actions? (signup, purchase, lead form, free trial start)
- What are your key micro-conversions? (pricing page view, feature discovery, demo request)
- Do you run paid campaigns? (Google Ads, Meta, LinkedIn — affects conversion tracking needs)
3. Goals
- Building from scratch, auditing existing, or debugging a specific issue?
- Do you need cross-domain tracking? Multiple properties or subdomains?
- Server-side tagging requirement? (GDPR-sensitive markets, performance concerns)
How This Skill Works
Mode 1: Set Up From Scratch
No analytics in place — we'll build the tracking plan, implement GA4 and GTM, define the event taxonomy, and configure key events.
Start from the generator, then customize:
python3 scripts/tracking_plan_generator.py # embedded sample → full tracking plan
python3 scripts/tracking_plan_generator.py plan.json # your funnel definition
python3 scripts/tracking_plan_generator.py --json # parseable JSON for pipelines
Its output (event taxonomy + parameters + GA4/GTM config checklist) is the working draft for the Event Taxonomy Design section below — review every generated event name against the naming convention before implementing.
Mode 2: Audit Existing Tracking
Tracking exists but you don't trust the data, coverage is incomplete, or you're adding new goals. We'll audit what's there, gap-fill, and clean up.
Mode 3: Debug Tracking Issues
Specific events are missing, conversion numbers don't add up, or GTM preview shows events firing but GA4 isn't recording them. Structured debugging workflow.
Event Taxonomy Design
Get this right before touching GA4 or GTM. Retrofitting taxonomy is painful.
Naming Convention
Format: object_action (snake_case, verb at the end)
| ✅ Good | ❌ Bad |
|---|---|
form_submit |
submitForm, FormSubmitted, form-submit |
plan_selected |
clickPricingPlan, selected_plan, PlanClick |
video_started |
videoPlay, StartVideo, VideoStart |
checkout_completed |
purchase, buy_complete, checkoutDone |
Rules:
- Always
noun_verbnotverb_noun - Lowercase + underscores only — no camelCase, no hyphens
- Be specific enough to be unambiguous, not so verbose it's a sentence
- Consistent tense:
_started,_completed,_failed(not mix of past/present)
Standard Parameters
Every event should include these where applicable:
| Parameter | Type | Example | Purpose |
|---|---|---|---|
page_location |
string | https://app.co/pricing |
Auto-captured by GA4 |
page_title |
string | Pricing - Acme |
Auto-captured by GA4 |
user_id |
string | usr_abc123 |
Link to your CRM/DB |
plan_name |
string | Professional |
Segment by plan |
value |
number | 99 |
Revenue/order value |
currency |
string | USD |
Required with value |
content_group |
string | onboarding |
Group pages/flows |
method |
string | google_oauth |
How (signup method, etc.) |
Event Taxonomy for SaaS
Core funnel events:
visitor_arrived (page view — automatic in GA4)
signup_started (user clicked "Sign up")
signup_completed (account created successfully)
trial_started (free trial began)
onboarding_step_completed (param: step_name, step_number)
feature_activated (param: feature_name)
plan_selected (param: plan_name, billing_per
よくある質問
同意管理は扱いますか?
はい。同意管理プラットフォームがあるかどうか、そしてそれがデータ収集にどう影響するかを考慮します。
広告のコンバージョンのトラッキングも扱いますか?
はい。Google、Meta、LinkedInなどの有料キャンペーンのコンバージョンのトラッキングの必要性を扱います。
キャンペーンの成果の分析も含まれますか?
いいえ。それは別のキャンペーン分析のスキルで扱います。
詳細
作者による元の説明
Use for any GA4, Google Tag Manager, event-tracking or conversion-tracking setup, audit or broken-event debug, before touching tags. Generates the event taxonomy and tracking plan with tracking_plan_generator.py. Campaign performance analysis: campaign-analytics.
人気
- GitHubのスター
- 29k
- ランキング
- #9634
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-launcher-orchestrator
29kひとつの明確な目標から始めて、自分のアカウントでClaudeのマネージドエージェントを計画し、作成し、テストし、スケジュールするまでを段階的に支援します。
grade-iterate
29kマネージドエージェントの作業をルーブリックに照らして採点し、固定された回数だけ改善させることで、終わりなく繰り返さないようにします。
interview
29kAIエージェントのアイデアについてインタビューし、回答をもとに、何かを起動する前の構築計画にまとめます。
run-without-you
29kマネージドエージェントを、スケジュールまたはイベントの発生によってあなたがいなくても動くように設定します。起動の前にcronの時刻を確認します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。