Skip to content
analytics-measurement logo

Analytics & Measurement Skill

analytics-measurement

Analytics and conversion tracking for lead generation websites. Use when implementing GTM, GA4, or any measurement. Works with astro-architecture for GTM setup. No CRO mérés nélkül vakrepülés.

SKILL.md

Full skill instructions

Analytics & Measurement Skill

Measurement rules for lead generation sites. GTM + GA4 focused.

Core Rules (Non-Negotiable)

  1. Every conversion MUST have a measurable event — Form submit, phone click, WhatsApp = tracked
  2. GTM is the only tag container — No inline GA4, no direct scripts
  3. One GTM container per site — No multiple containers
  4. Consent before tracking — GDPR: no GA4 until cookie accepted
  5. Event naming convention MUST be followed — See naming rules below
  6. Every event MUST have context — Location, element, value where applicable
  7. Test before deploy — GTM Preview + GA4 DebugView MUST pass
  8. Production and staging MUST be separated — Different GA4 properties or filtered

Event Types

TypePurposeUse as KPI?
ConversionBusiness outcome (lead, sale)✅ Yes
MicroSupports analysis (scroll, click)❌ No

Conversion events: form_submit, phone_click, whatsapp_click, calculator_complete Micro events: cta_click, scroll_depth, video_play, calculator_start

Only conversion events may be used as primary KPIs. Micro events support optimization, not reporting.

Environment Policy

  • Production and staging MUST use separate GA4 properties (or filtered views)
  • Staging data MUST NOT pollute production analytics
  • Debug mode MUST be disabled in production
  • Test events MUST be filtered out before reporting

Forbidden (STOP)

STOP and fix if any of these occur:

Implementation

  • ❌ GA4/​Ads script outside GTM
  • ❌ Multiple GTM containers
  • ❌ Tracking before consent (GDPR violation)
  • ❌ Hardcoded Measurement ID in code
  • ❌ Staging data in production property

Events

  • ❌ Double-firing events (same action = multiple events)
  • ❌ Auto-events without explicit need (enhanced measurement spam)
  • ❌ Event without naming convention
  • ❌ Conversion without event
  • ❌ Micro event used as KPI

Privacy (Non-Negotiable)

  • ❌ PII in event parameters (email, phone, name, address)
  • ❌ Tracking without consent where required
  • ❌ IP not anonymized (GA4 does this by default)
  • ❌ User ID without consent

Quality

  • ❌ Deploy without GTM Preview test
  • ❌ Event names with spaces or capitals
  • ❌ Parameters without documentation

Event Naming Convention

Format: [action]_[object] (lowercase_snake_case)

  • action: click, submit, view, start, complete
  • object: form, cta, video, phone, whatsapp

Parameter rules: lowercase_snake_case, max 40 chars, no PII

See events.md for full event list with parameters.

Required Events

EventTriggerPage Type
page_viewPage loadAll
scroll_depth25%, 50%, 75%, 90%All
cta_clickCTA button clickLanding
phone_clicktel: link clickLanding
whatsapp_clickWhatsApp linkLanding
form_startFirst form interactionLanding
form_submitSuccessful submissionLanding
calculator_startFirst stepCalculator
calculator_completeResult shownCalculator
video_playPlay clickedVideo

See events.md for parameters and implementation. See gtm-setup.md for GTM container configuration.

Conversions (Mark in GA4)

EventConversion?Send to Ads?
form_submit✅ Yes✅ Yes
phone_click✅ Yes✅ Yes
whatsapp_click✅ Yes✅ Yes
calculator_complete✅ Yes✅ Yes
cta_click❌ No❌ No
scroll_depth❌ No❌ No

Server-Side Tracking

For ad blocker bypass and enhanced conversions, use server-side GTM via Cloudflare:

Browser → Web GTM → Cloudflare Worker → sGTM → GA4 + Google Ads

Requirements:

  • First-party subdomain (e.g., data.yourdomain.com)
  • Cloudflare Worker as proxy
  • Server-Side GTM container
  • Enhanced conversions: SHA256 hashed PII only

See server-side.md for full implementation.

References

Required

Conditional

Definition of Done

Core (Zero Tolerance)

  • GTM is only tag container
  • Consent blocks tracking until accepted
  • Staging and production separated
  • 0 double-firing events
  • 0 PII in parameters
  • All events follow naming convention

Conversions (MUST fire correctly)

  • form_submit, phone_click, whatsapp_click fire once per action
  • All marked as conversions in GA4
  • Sending to Google Ads (if enabled)

Testing

  • All events tested in GTM Preview
  • All events visible in GA4 DebugView
  • GTM container exported as backup

Server-Side (If Enabled)

  • Cloudflare Worker + sGTM deployed
  • Enhanced conversions SHA256 hashed

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View