Install
$ agentstack add skill-0-shiv-secondstep-claude-skills-track-meta-pixel ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Track Meta Pixel — Sub-Skill
Command
/track meta-pixel
Description
Audits Meta Pixel installation, standard event configuration, custom events, parameter accuracy, and event deduplication. The Meta Pixel is the client-side tracking foundation for Facebook and Instagram advertising. A misconfigured Pixel leads to poor audience building, broken optimization, and wasted ad spend. This skill validates every layer of the Pixel implementation.
Meta Pixel Architecture
How It Works
The Meta Pixel is a JavaScript snippet that fires HTTP requests to Facebook's servers when users take actions on your website. Each request carries event data (what happened), user data (who did it, for matching), and context data (page URL, referrer, device).
Base Pixel Code
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
Validation Checklist
1. Pixel Installation
Presence Check:
- Pixel code in `` of every page (or loaded via GTM)
fbq('init', 'PIXEL_ID')called with correct Pixel IDfbq('track', 'PageView')fires on every page load- noscript fallback image tag present
Common Installation Issues:
- Pixel only on homepage, missing from inner pages
- Wrong Pixel ID (staging vs production, old vs new)
- Multiple
fbq('init')calls with different IDs (causes double-counting) - Pixel loaded after consent but PageView not fired post-consent
- SPA not re-firing PageView on route changes
- Pixel blocked by ad blockers (use CAPI as redundancy)
2. Standard Events
Meta defines 17 standard events. Validate each relevant event fires with correct parameters:
| Event | When to Fire | Key Parameters | |-------|-------------|----------------| | PageView | Every page load | (none required) | | ViewContent | Product/service page viewed | contentname, contentids, contenttype, value, currency | | AddToCart | Item added to cart | contentids, contenttype, value, currency | | InitiateCheckout | Checkout started | contentids, numitems, value, currency | | AddPaymentInfo | Payment info entered | contentcategory, value, currency | | Purchase | Transaction completed | contentids, contenttype, value, currency, numitems | | Lead | Lead form submitted | contentname, value, currency | | CompleteRegistration | Sign-up completed | contentname, value, currency, status | | Search | Search performed | searchstring, contentcategory | | AddToWishlist | Item wishlisted | contentids, contenttype, value, currency | | Contact | Contact initiated | (none required) | | CustomizeProduct | Product customized | contentids, contenttype | | Donate | Donation made | value, currency | | FindLocation | Location searched | (none required) | | Schedule | Appointment scheduled | (none required) | | StartTrial | Trial started | value, currency, predictedltv | | SubmitApplication | Application submitted | (none required) |
Implementation Example:
// Purchase event
fbq('track', 'Purchase', {
content_ids: ['SKU123', 'SKU456'],
content_type: 'product',
value: 149.99,
currency: 'USD',
num_items: 2
});
3. Custom Events
For actions not covered by standard events:
fbq('trackCustom', 'QualifiedLead', {
lead_score: 85,
source: 'contact_form'
});
Validation:
- Custom event names are descriptive and consistent
- Parameters provide useful data for optimization
- Custom events are mapped to custom conversions in Events Manager
- Not duplicating a standard event with a custom event name
4. Pixel Helper Diagnostics
Using Meta Pixel Helper (Chrome Extension):
- Install from Chrome Web Store
- Visit each page type and check:
- Green checkmark: Pixel firing correctly
- Yellow warning: Pixel active but issues detected
- Red error: Pixel not found or broken
- Event count matches expected (no duplicates)
- Parameters present and correctly formatted
Common Pixel Helper Warnings:
- "Pixel activated multiple times" — duplicate init calls
- "Event received after long delay" — tag firing too late
- "Missing required parameter" — value or currency missing from Purchase
- "Pixel ID mismatch" — wrong ID configured
5. Event Deduplication
Why It Matters: If you use both Meta Pixel (client-side) and Conversions API (server-side), the same event can be counted twice. Deduplication ensures each conversion is counted only once.
How to Deduplicate:
- Assign a unique
event_idto each event - Send the same
event_idfrom both Pixel and CAPI - Meta deduplicates events with matching
event_idwithin a 48-hour window
// Client-side: Pixel with event_id
var eventID = 'order_' + Date.now() + '_' + Math.random().toString(36).substr(2, 9);
fbq('track', 'Purchase', {value: 99.99, currency: 'USD'}, {eventID: eventID});
// Server-side: CAPI with same event_id
// Send eventID as event_id parameter in CAPI request
Deduplication Validation:
- Check Events Manager > event_id coverage percentage
- Compare Pixel-only events vs CAPI events vs deduplicated total
- If deduplicated count equals Pixel count, CAPI events are being dropped (dedup working)
- If total is Pixel + CAPI combined, deduplication is NOT working (double-counting)
Diagnostic Queries
- What is your Meta Pixel ID?
- How is the Pixel installed (direct, GTM, partner integration)?
- Which standard events should be firing?
- Are you using Conversions API alongside the Pixel?
- What does Meta Events Manager show for event activity?
Scoring Contribution
This sub-skill contributes to the 15 points for Event Configuration:
- Pixel present on all pages: 4 points
- Standard events configured correctly: 4 points
- Parameters complete (value, currency, content_ids): 3 points
- Event deduplication with CAPI: 2 points
- No duplicate Pixel init or double-firing: 2 points
Fix Priority
| Issue | Priority | Impact | |-------|----------|--------| | Pixel not installed | Critical | Zero Meta conversion data | | Purchase/Lead event missing | Critical | Can't optimize for conversions | | Wrong Pixel ID | Critical | Data going to wrong account | | No event deduplication | High | Double-counted conversions, inflated ROAS | | Missing value/currency on Purchase | High | Can't use value optimization | | Duplicate Pixel init | Medium | Over-reported PageViews | | Missing ViewContent/AddToCart | Medium | Incomplete funnel data | | No custom events for key actions | Low | Less optimization signal |
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: 0-shiv
- Source: 0-shiv/secondstep-claude-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.