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★ 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):
- Go to Online Store → Preferences → Google Analytics
- Click Connect your Google account and select your GA4 property
- Shopify sends all standard e-commerce events automatically:
page_view,view_item,add_to_cart,begin_checkout,purchase - In Google Analytics → Configure → Events, mark the
purchaseevent as a conversion
Track checkout funnel with GA4 Explorations:
- In GA4, go to Explore → Funnel exploration
- Create funnel steps:
- Step 1:
begin_checkoutevent - Step 2:
add_shipping_infoevent - Step 3:
add_payment_infoevent - Step 4:
purchaseevent
- Step 1:
- This shows exactly where shoppers drop off in checkout
Add Meta Pixel:
- Go to the Shopify App Store and install the Meta channel app (free)
- Follow the setup wizard to connect your Facebook Business account
- Meta sends pixel events automatically through the Shopify integration, including the Conversions API for server-side deduplication
WooCommerce
Install MonsterInsights for GA4:
- Install MonsterInsights from wordpress.org (free tier available; Pro from $99/year adds enhanced e-commerce)
- Go to Insights → Settings → General and connect your GA4 property
- Enable Enhanced eCommerce Tracking in the MonsterInsights settings — this sends
add_to_cart,begin_checkout, andpurchaseevents to GA4 with product-level data
Add Meta Pixel:
- Install PixelYourSite (free tier available, pro from $69/year) from wordpress.org
- Enter your Pixel ID and connect via Facebook's Business Integration
- PixelYourSite includes the WooCommerce extension for
ViewContent,AddToCart,InitiateCheckout, andPurchaseevents
Verify events are firing:
- Install the Meta Pixel Helper Chrome extension
- Visit your product page and checkout — the extension shows which events fire on each page
- In GA4, use Admin → DebugView to confirm events arrive in real time
BigCommerce
Connect GA4 (built-in):
- Go to Advanced Settings → Data Solutions → Google Analytics
- Enter your GA4 Measurement ID (format:
G-XXXXXXXX) - BigCommerce fires e-commerce events automatically including
purchasewith full order data
Add Meta Pixel:
- Go to Channel Manager → Marketplace → Meta
- Connect your Facebook Business account
- 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 }
Установить analytics-integration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
claude-codecursorgemini-clicopilotcodex-clikiroopencodeВложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic