How to Set Up Meta Pixel & Conversions API in 2026
A step-by-step technical guide to implementing Meta Pixel and Conversions API for accurate tracking and better ad performance.

Why Proper Tracking Is Non-Negotiable
Without accurate tracking, Meta's algorithm can't optimize your campaigns. In 2026, you need BOTH the Meta Pixel and Conversions API working together.
Part 1: Meta Pixel Setup
Step 1: Create Your Pixel
- Go to Events Manager
- Click "Connect Data Sources"
- Select "Web" → "Meta Pixel"
- Name your pixel and enter your website URL
Step 2: Install the Base Code
Add the pixel base code to your website's <head> section. If you're using a platform like Shopify or WordPress, use their native integration.
Step 3: Set Up Standard Events
Key events to track:
PageView— Every page loadViewContent— Product pagesAddToCart— Cart additionsInitiateCheckout— Checkout startPurchase— Completed orders (include value and currency)Lead— Form submissions
Step 4: Verify with Pixel Helper
Install the Meta Pixel Helper Chrome extension to confirm events are firing correctly.
Part 2: Conversions API Setup
Why CAPI Matters:
- Captures events that pixels miss (ad blockers, browser restrictions)
- Improves match rates by 15-25%
- Required for optimal Advantage+ performance
Implementation Options:
Option A: Partner Integration
Platforms like Shopify, WooCommerce, and Segment offer native CAPI integrations. This is the easiest path.
Option B: Gateway Setup
Meta's Conversions API Gateway runs on your cloud infrastructure and automatically forwards pixel events server-side.
Option C: Custom API Integration
For full control, implement direct API calls:
POST https://graph.facebook.com/v18.0/{pixel_id}/events
Required parameters:
event_name: Standard or custom event nameevent_time: Unix timestampuser_data: Hashed PII (email, phone, etc.)action_source: "website"event_id: For deduplication
Step 5: Deduplication
Send the same event_id from both pixel and CAPI to prevent double-counting.
Part 3: Testing and Validation
Use the Test Events Tool:
- Go to Events Manager → Test Events
- Generate a test event code
- Append
?fbclid=testto your URL - Verify events appear in the tool
Check Event Match Quality (EMQ):
- Score of 6+ is good
- Score of 8+ is excellent
- Improve by sending more user data parameters
Part 4: Domain Verification
- Add your domain in Business Settings
- Verify via DNS TXT record or meta tag
- Configure Aggregated Event Measurement (AEM) priority events
Managing Tracking Across Accounts
Kapao helps you manage pixel IDs and tracking parameters across multiple ad accounts, ensuring consistent UTM tagging and event configuration.
Key Takeaways
- Install both Pixel and CAPI — neither alone is sufficient
- Deduplicate events to avoid inflated numbers
- Check Event Match Quality regularly
- Verify your domain for AEM compliance