Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

analytics-integration

БесплатноБез исполняемых скриптовНе проверен

Implement GA4, Meta Pixel, and server-side tagging with a proper data layer so you capture accurate conversion events for ad campaigns

finsilabsот finsilabs★ 69 звёзд на GitHub

Об этом скилле

Analytics Integration

Overview

Implement a robust analytics stack for e-commerce using Google Analytics 4 (GA4), Meta Pixel, and Google Tag Manager (GTM). Covers structured data layer design for product and checkout events, server-side tagging via GTM server containers to improve data accuracy and bypass browser restrictions, and Meta Conversions API for reliable ad attribution.

When to Use This Skill

  • When adding GA4 e-commerce tracking (product views, add-to-cart, checkout steps, purchase) to a new or existing store
  • When implementing Meta Pixel alongside the Conversions API for dual-mode event delivery to improve ad attribution
  • When migrating a GTM web container to a server-side container for better data control and cookie lifespans
  • When troubleshooting missing or duplicate conversion events caused by ad blockers or client-side failures
  • When meeting privacy requirements that mandate server-side deduplication between browser and server events

Core Instructions

Step 1: Determine your platform and recommended approach

Platform Recommended Analytics Setup Key Actions
Shopify Built-in GA4 integration + GTM app Connect GA4 in Online Store → Preferences → Google Analytics; install GTM4WP or the official Google & YouTube channel app for Meta Pixel
WooCommerce MonsterInsights plugin for GA4 + GTM Install MonsterInsights (free tier or Pro from $99/yr) for GA4; install WooCommerce Google Analytics Integration (free) for enhanced e-commerce events
BigCommerce Native GA4 integration + channel manager Connect GA4 in Advanced Settings → Data Solutions → Google Analytics; use BigCommerce's Meta Pixel integration under the Channel Manager
Custom / Headless GTM container + server-side container + custom data layer Implement a canonical data layer, deploy GTM server container on Cloud Run or Vercel, and add Meta Conversions API from your backend

Step 2: Platform-specific analytics setup


Shopify

Connect GA4 (built-in, no code required):

  1. Go to Online Store → Preferences → Google Analytics
  2. Click Connect your Google account and select your GA4 property
  3. Shopify sends all standard e-commerce events automatically: page_view, view_item, add_to_cart, begin_checkout, purchase
  4. In Google Analytics → Configure → Events, mark the purchase event as a conversion

Track checkout funnel with GA4 Explorations:

  1. In GA4, go to Explore → Funnel exploration
  2. Create funnel steps:
    • Step 1: begin_checkout event
    • Step 2: add_shipping_info event
    • Step 3: add_payment_info event
    • Step 4: purchase event
  3. This shows exactly where shoppers drop off in checkout

Add Meta Pixel:

  1. Go to the Shopify App Store and install the Meta channel app (free)
  2. Follow the setup wizard to connect your Facebook Business account
  3. Meta sends pixel events automatically through the Shopify integration, including the Conversions API for server-side deduplication

WooCommerce

Install MonsterInsights for GA4:

  1. Install MonsterInsights from wordpress.org (free tier available; Pro from $99/year adds enhanced e-commerce)
  2. Go to Insights → Settings → General and connect your GA4 property
  3. Enable Enhanced eCommerce Tracking in the MonsterInsights settings — this sends add_to_cart, begin_checkout, and purchase events to GA4 with product-level data

Add Meta Pixel:

  1. Install PixelYourSite (free tier available, pro from $69/year) from wordpress.org
  2. Enter your Pixel ID and connect via Facebook's Business Integration
  3. PixelYourSite includes the WooCommerce extension for ViewContent, AddToCart, InitiateCheckout, and Purchase events

Verify events are firing:

  1. Install the Meta Pixel Helper Chrome extension
  2. Visit your product page and checkout — the extension shows which events fire on each page
  3. In GA4, use Admin → DebugView to confirm events arrive in real time

BigCommerce

Connect GA4 (built-in):

  1. Go to Advanced Settings → Data Solutions → Google Analytics
  2. Enter your GA4 Measurement ID (format: G-XXXXXXXX)
  3. BigCommerce fires e-commerce events automatically including purchase with full order data

Add Meta Pixel:

  1. Go to Channel Manager → Marketplace → Meta
  2. Connect your Facebook Business account
  3. BigCommerce sends Pixel events natively and supports the Conversions API for server-side deduplication

Custom / Headless

Design a canonical data layer first — every event follows the same shape regardless of which vendor consumes it:

// dataLayer must be initialized in <head> before GTM loads
window.dataLayer = window.dataLayer || [];

// Always clear ecommerce before pushing a new event (prevents GTM from merging stale items)
window.dataLayer.push({ ecommerce: null }
Полный SKILL.md на GitHub

Установить analytics-integration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

claude-code
cursor
gemini-cli
copilot
codex-cli
kiro
opencode

Вложенные файлы

evals/data-layer-schema-and-e-commerce-events/criteria.jsonevals/data-layer-schema-and-e-commerce-events/task.mdevals/meta-pixel-conversions-api-deduplication/criteria.jsonevals/meta-pixel-conversions-api-deduplication/task.mdevals/spa-page-tracking-and-purchase-deduplica/criteria.jsonevals/spa-page-tracking-and-purchase-deduplica/task.mdtile.json

FAQ

Что делает скилл analytics-integration?

Implement GA4, Meta Pixel, and server-side tagging with a proper data layer so you capture accurate conversion events for ad campaigns

Как установить скилл analytics-integration?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл analytics-integration запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить analytics-integration с