How to Integrate Facebook Ads Pixel with Your Website
Adam Ingram, Soku AI Team
Sep 16, 2025



Updated: September 24, 2025
To unlock the full power of Soku AI for your Meta Ads, install the Meta Pixel. This simple code tracks visitor actions on your site—like views, add-to-carts, and purchases—helping Soku optimize campaigns, boost ROI, and target the right audience.
This guide is tailored for Soku users, most of whom promote websites. We'll prioritize easy steps for sites, with optional notes for apps or advanced tracking. If setup feels tricky, our Soku-managed accounts simplify everything—no Meta hassle required.
Why Install the Meta Pixel?
Measures ad performance and sales.
Enables retargeting and lookalike audiences.
Feeds data to Soku for AI-driven improvements.
Part 1: Get Your Meta Pixel ID
Choose the easy path first—it's designed for busy business owners.
Option A: The Easy Way (Recommended) – Use a Soku-Managed Account
Meta setup can be confusing. Skip it with Soku-managed accounts.
In your Soku dashboard during campaign publish, select "Use Soku-managed Account" when prompted to connect Meta.
Soku provides a pre-configured Meta Ad Account with a built-in Pixel ID.
Copy the Pixel ID displayed.
Benefits: Instant setup, pre-approved for Meta, optimized settings. No Business Manager needed. Ideal if DIY feels overwhelming.
Option B: The DIY Way – Create in Your Own Meta Account
If you prefer your existing Meta account:
Log in to Meta Events Manager.
Click "+" > "Connect Data Sources" > "Web."
Name your Pixel (e.g., "Soku Website Pixel") and add your site URL.
After creation, go to "Settings" and copy the Pixel ID (15-16 digits).
Tip: If stuck, switch to Option A in Soku—it's faster.
Part 1: Get Your Meta Pixel ID
Choose the easy path first—it's designed for busy business owners.
Option A: The Easy Way (Recommended) – Use a Soku-Managed Account
Meta setup can be confusing. Skip it with Soku-managed accounts.
In your Soku dashboard during campaign publish, select "Use Soku-managed Account" when prompted to connect Meta.
Soku provides a pre-configured Meta Ad Account with a built-in Pixel ID.
Copy the Pixel ID displayed.
Benefits: Instant setup, pre-approved for Meta, optimized settings. No Business Manager needed. Ideal if DIY feels overwhelming.
Option B: The DIY Way – Create in Your Own Meta Account
If you prefer your existing Meta account:
Log in to Meta Events Manager.
Click "+" > "Connect Data Sources" > "Web."
Name your Pixel (e.g., "Soku Website Pixel") and add your site URL.
After creation, go to "Settings" and copy the Pixel ID (15-16 digits).
Tip: If stuck, switch to Option A in Soku—it's faster.
Part 1: Get Your Meta Pixel ID
Choose the easy path first—it's designed for busy business owners.
Option A: The Easy Way (Recommended) – Use a Soku-Managed Account
Meta setup can be confusing. Skip it with Soku-managed accounts.
In your Soku dashboard during campaign publish, select "Use Soku-managed Account" when prompted to connect Meta.
Soku provides a pre-configured Meta Ad Account with a built-in Pixel ID.
Copy the Pixel ID displayed.
Benefits: Instant setup, pre-approved for Meta, optimized settings. No Business Manager needed. Ideal if DIY feels overwhelming.
Option B: The DIY Way – Create in Your Own Meta Account
If you prefer your existing Meta account:
Log in to Meta Events Manager.
Click "+" > "Connect Data Sources" > "Web."
Name your Pixel (e.g., "Soku Website Pixel") and add your site URL.
After creation, go to "Settings" and copy the Pixel ID (15-16 digits).
Tip: If stuck, switch to Option A in Soku—it's faster.
Part 2: Install Your Pixel ID on Your Website
Paste the ID into your site. Focus on your platform for simplicity.
For Shopify
In Shopify Admin, go to "Online Store" > "Preferences."
Scroll to "Meta Pixel" and paste your ID.
Save.
For Best Results: Add the "Facebook & Instagram" app in "Apps," set data sharing to "Maximum" for better tracking (auto-enables optional Conversions API).
For WordPress/WooCommerce
In dashboard, "Plugins" > "Add New."
Search and install "Meta Pixel for WordPress" or "Meta for WooCommerce."
Activate and follow the wizard to connect Meta and select your Pixel.
For Best Results: Enable standard events like Purchase in plugin settings.
For Wix
In Wix dashboard, "Marketing & SEO" > "Marketing Integrations."
Select "Meta Pixel" > "Connect" and paste ID.
For Best Results: Enable CAPI in integrations for improved accuracy (optional).
For Squarespace
"Settings" > "Marketing" > "Meta Pixel & Ads."
Paste ID and save.
For Best Results: Use Zapier for optional server-side events if needed.
For Custom-Built Websites
In Events Manager, "Continue Pixel Setup" > "Install code manually."
Copy the full code snippet provided.
Paste it in the
<head>section of every page, before</head>. We recommend developer help for this step.
Tip: Use Google Tag Manager for easier future updates.
Part 2: Install Your Pixel ID on Your Website
Paste the ID into your site. Focus on your platform for simplicity.
For Shopify
In Shopify Admin, go to "Online Store" > "Preferences."
Scroll to "Meta Pixel" and paste your ID.
Save.
For Best Results: Add the "Facebook & Instagram" app in "Apps," set data sharing to "Maximum" for better tracking (auto-enables optional Conversions API).
For WordPress/WooCommerce
In dashboard, "Plugins" > "Add New."
Search and install "Meta Pixel for WordPress" or "Meta for WooCommerce."
Activate and follow the wizard to connect Meta and select your Pixel.
For Best Results: Enable standard events like Purchase in plugin settings.
For Wix
In Wix dashboard, "Marketing & SEO" > "Marketing Integrations."
Select "Meta Pixel" > "Connect" and paste ID.
For Best Results: Enable CAPI in integrations for improved accuracy (optional).
For Squarespace
"Settings" > "Marketing" > "Meta Pixel & Ads."
Paste ID and save.
For Best Results: Use Zapier for optional server-side events if needed.
For Custom-Built Websites
In Events Manager, "Continue Pixel Setup" > "Install code manually."
Copy the full code snippet provided.
Paste it in the
<head>section of every page, before</head>. We recommend developer help for this step.
Tip: Use Google Tag Manager for easier future updates.
Part 2: Install Your Pixel ID on Your Website
Paste the ID into your site. Focus on your platform for simplicity.
For Shopify
In Shopify Admin, go to "Online Store" > "Preferences."
Scroll to "Meta Pixel" and paste your ID.
Save.
For Best Results: Add the "Facebook & Instagram" app in "Apps," set data sharing to "Maximum" for better tracking (auto-enables optional Conversions API).
For WordPress/WooCommerce
In dashboard, "Plugins" > "Add New."
Search and install "Meta Pixel for WordPress" or "Meta for WooCommerce."
Activate and follow the wizard to connect Meta and select your Pixel.
For Best Results: Enable standard events like Purchase in plugin settings.
For Wix
In Wix dashboard, "Marketing & SEO" > "Marketing Integrations."
Select "Meta Pixel" > "Connect" and paste ID.
For Best Results: Enable CAPI in integrations for improved accuracy (optional).
For Squarespace
"Settings" > "Marketing" > "Meta Pixel & Ads."
Paste ID and save.
For Best Results: Use Zapier for optional server-side events if needed.
For Custom-Built Websites
In Events Manager, "Continue Pixel Setup" > "Install code manually."
Copy the full code snippet provided.
Paste it in the
<head>section of every page, before</head>. We recommend developer help for this step.
Tip: Use Google Tag Manager for easier future updates.
Part 3: Final Checks and Configuration
Verify everything works, then configure for privacy compliance.
Verify Your Pixel
Install Meta Pixel Helper Chrome Extension. Visit your site—the icon turns blue if active.
In Events Manager > "Test Events," browse your site. See real-time activity (allow 1-2 hours for full data).
Configure Events for iOS 14+ (Required for Accurate Tracking on Apple Devices)
This ensures tracking for iPhone users.
Verify your domain in Business Manager > "Brand Safety" > "Domains."
In Events Manager > "Aggregated Event Measurement" > "Configure Web Events."
Add and prioritize up to 8 events (e.g., #1 Purchase, #2 AddToCart).
Part 3: Final Checks and Configuration
Verify everything works, then configure for privacy compliance.
Verify Your Pixel
Install Meta Pixel Helper Chrome Extension. Visit your site—the icon turns blue if active.
In Events Manager > "Test Events," browse your site. See real-time activity (allow 1-2 hours for full data).
Configure Events for iOS 14+ (Required for Accurate Tracking on Apple Devices)
This ensures tracking for iPhone users.
Verify your domain in Business Manager > "Brand Safety" > "Domains."
In Events Manager > "Aggregated Event Measurement" > "Configure Web Events."
Add and prioritize up to 8 events (e.g., #1 Purchase, #2 AddToCart).
Part 3: Final Checks and Configuration
Verify everything works, then configure for privacy compliance.
Verify Your Pixel
Install Meta Pixel Helper Chrome Extension. Visit your site—the icon turns blue if active.
In Events Manager > "Test Events," browse your site. See real-time activity (allow 1-2 hours for full data).
Configure Events for iOS 14+ (Required for Accurate Tracking on Apple Devices)
This ensures tracking for iPhone users.
Verify your domain in Business Manager > "Brand Safety" > "Domains."
In Events Manager > "Aggregated Event Measurement" > "Configure Web Events."
Add and prioritize up to 8 events (e.g., #1 Purchase, #2 AddToCart).
Part 4: For Mobile Apps & Advanced Options
For Mobile Apps (If You're Promoting an App)
Use Meta SDK instead of Pixel—requires a developer.
Register at Meta Developers for App ID.
Integrate SDK: Follow iOS/Android guides in docs. Log events like installs or purchases.
For better accuracy, add optional CAPI for server events.
Skip if you're website-only (most Soku users).
For Higher Data Accuracy: Conversions API (CAPI)
Optional for websites—complements Pixel against ad blockers. If using Shopify/WooCommerce with "Maximum" sharing, it's often auto-set. For manual: Follow Meta'sCAPI docs (developer needed).
Part 4: For Mobile Apps & Advanced Options
For Mobile Apps (If You're Promoting an App)
Use Meta SDK instead of Pixel—requires a developer.
Register at Meta Developers for App ID.
Integrate SDK: Follow iOS/Android guides in docs. Log events like installs or purchases.
For better accuracy, add optional CAPI for server events.
Skip if you're website-only (most Soku users).
For Higher Data Accuracy: Conversions API (CAPI)
Optional for websites—complements Pixel against ad blockers. If using Shopify/WooCommerce with "Maximum" sharing, it's often auto-set. For manual: Follow Meta'sCAPI docs (developer needed).
Part 4: For Mobile Apps & Advanced Options
For Mobile Apps (If You're Promoting an App)
Use Meta SDK instead of Pixel—requires a developer.
Register at Meta Developers for App ID.
Integrate SDK: Follow iOS/Android guides in docs. Log events like installs or purchases.
For better accuracy, add optional CAPI for server events.
Skip if you're website-only (most Soku users).
For Higher Data Accuracy: Conversions API (CAPI)
Optional for websites—complements Pixel against ad blockers. If using Shopify/WooCommerce with "Maximum" sharing, it's often auto-set. For manual: Follow Meta'sCAPI docs (developer needed).
Still Stuck? We're Here to Help
Setup can be frustrating—that's why Soku-managed accounts exist. Bypass Meta complexity and focus on growth.
Questions? Use the chat button on this webpage. Let's get your Pixel running today!
Still Stuck? We're Here to Help
Setup can be frustrating—that's why Soku-managed accounts exist. Bypass Meta complexity and focus on growth.
Questions? Use the chat button on this webpage. Let's get your Pixel running today!
Still Stuck? We're Here to Help
Setup can be frustrating—that's why Soku-managed accounts exist. Bypass Meta complexity and focus on growth.
Questions? Use the chat button on this webpage. Let's get your Pixel running today!
Start Your AI Advertising Journey with Soku
Automate your Meta ads from creation to optimization - boost ROI and grow your business effortlessly.
Start Your AI Advertising Journey with Soku
Automate your Meta ads from creation to optimization - boost ROI and grow your business effortlessly.
Start Your AI Advertising Journey with Soku
Automate your Meta ads from creation to optimization - boost ROI and grow your business effortlessly.