This guide shows you how to manually install PixelFlow on WordPress without using the PixelFlow plugin. This method involves embedding the tracking script directly in your site's header using a code snippet plugin.
Overview
Manual WordPress setup requires you to copy the PixelFlow tracking script from your dashboard and paste it into your site's header using a free plugin like WPCode. After embedding the script, you'll configure event tracking through the PixelFlow dashboard.
If you prefer an easier setup with automatic synchronization and WooCommerce auto-tracking, see WordPress Plugin Setup instead.
When to Use Manual Setup
Manual setup is ideal when:
You prefer not to install the PixelFlow plugin
You want more direct control over script placement
You're using a custom WordPress setup that doesn't support the plugin
You don't need WooCommerce auto-tracking features
Manual setup does not include automatic WooCommerce integration. You'll need to manually configure eCommerce event tracking using event classes or tracking URLs.
Prerequisites
WordPress admin access with permission to install plugins
A Meta Business Manager account with your Meta Pixel ID and Access Token
A PixelFlow account (sign up for a free 7-day trial at dashboard.pixelflow.so)
Remove any existing Facebook Pixel scripts to avoid duplicate tracking
If you currently have the Facebook Pixel script installed on your WordPress site, you'll need to remove it before setting up PixelFlow. Running both scripts simultaneously will cause duplicate event tracking.
Step 1: Install WPCode Plugin
WPCode is a free WordPress plugin that lets you safely add code snippets to your site's header without editing theme files.
In your WordPress admin panel, go to Plugins → Add New
Search for "Code Snippets"
Click Install Now on the "Code Snippets" plugin
Click Activate after installation completes
Alternative header injection plugins like "Insert Headers and Footers" or "Header Footer Code Manager" will also work. The key is adding code to the <head> section of your site.
Step 2: Login to PixelFlow Dashboard
Visit dashboard.pixelflow.so
Click Login or Start Free Trial if you're a new user
Enter your credentials or sign in with Google
New users receive a 7-day free trial with no credit card required. All tracking features are unlimited on every plan.
Step 3: Add Your Site in PixelFlow
After logging in, the setup wizard will automatically open to guide you through configuration.
In the wizard's first step, enter your WordPress site domain (e.g., yoursite.com)
Select your currency from the dropdown (optional, used for eCommerce tracking)
Click Continue
Your WordPress site is now connected to PixelFlow and will appear in your Sites list.
Step 4: Add Your Meta Pixel Credentials
In the second wizard step, configure your Meta Pixel:
Enter a Pixel Name for reference (e.g., "Main Website Pixel")
Add your Meta Pixel ID (find this in Facebook Events Manager)
Add your Meta Pixel Access Token (generate this in Facebook Events Manager under Settings)
Check the box to confirm you've removed any existing native Meta Pixel script
Click Add Pixel
Need help finding your credentials? See How to Find Your Meta Pixel ID and Access Token.
Step 5: Copy Your PixelFlow Script
In the third wizard step, you'll get your unique tracking script:
The wizard will display a code snippet starting with
<script>Click the Copy to Clipboard button (or manually select and copy the entire script)
Keep this script ready for the next step
Your PixelFlow script is unique to your account and includes your site configuration. It's a lightweight 11KB script that won't impact page performance.
Step 6: Paste Script in WPCode
Now you'll embed the PixelFlow script in your WordPress site's header:
In your WordPress admin, go to Code Snippets → Header & Footer
Scroll to the Header section
Paste your PixelFlow script into the header text box
Click Save Changes
Make sure you paste the script in the Header section, not the Footer. The script must load in the <head> of your pages for proper tracking.
Step 7: Clear Your WordPress Cache
If you use any caching plugins, you must clear your cache for the script to appear on your live site.
Common caching plugins:
WP Rocket: WP Rocket → Clear Cache
W3 Total Cache: Performance → Dashboard → Empty All Caches
WP Super Cache: Settings → WP Super Cache → Delete Cache
LiteSpeed Cache: LiteSpeed Cache → Toolbox → Purge All
Your PixelFlow tracking script is now live on your WordPress site!
Step 8: Verify Events Are Tracking
Return to the PixelFlow dashboard wizard to confirm your setup is working:
In the fourth wizard step, the dashboard will automatically poll for events every 10 seconds
Open your live website in a new browser window or incognito/private mode
Navigate to a few pages on your site
Return to the wizard—when the first Page View event is detected, you'll see:
A confetti animation celebrating your successful setup
A green congratulations modal
Your site status will change to "Connected"
Setup complete! PixelFlow is now tracking Page View events. Events should appear in your dashboard within 2-3 minutes.
No events appearing? Verify that: • You pasted the script in the Header section (not Footer) • You clicked "Save Changes" in WPCode • You cleared your cache • You're visiting the live site (not localhost or a staging environment)
Step 9: Configure Additional Event Tracking
After the wizard closes, you can set up tracking for specific user actions beyond Page Views.
Available tracking methods:
Event Classes: Track form submissions, button clicks, and interactions using CSS classes—see Event Classes on WordPress
Tracking URLs: Track specific page visits or link clicks—see How to Track Events
Form Submissions: Capture lead data from contact forms—see How to Track Events for Form Submissions
Calendly Integration: Track call bookings automatically—see How to Track Calendars & Call Bookings
All tracking is unlimited on every plan, with no limits on events or pixels.
Updating Your Script
If you make changes to your pixel configuration in the PixelFlow dashboard (such as adding new pixels or updating tracking settings), you'll need to update your script:
In the PixelFlow dashboard, go to your site's settings
Copy the updated script
Return to Code Snippets → Header & Footer in WordPress
Replace the old script with the new one
Click Save Changes
Clear your cache
Scripts are automatically updated for visitors after November 27, 2024. If you added your script before this date, you'll need to update it once manually to enable auto-updates.
Comparison: Manual vs Plugin Setup
Feature | Manual Setup | Plugin Setup |
|---|---|---|
Tracking script installation | Manual copy/paste required | Automatic via plugin |
Dashboard synchronization | Manual script updates | Automatic sync |
WooCommerce integration | Manual class assignment | Automatic tracking classes |
User role exclusions | Not available | Built-in toggle |
Script updates | Copy new script from dashboard | Click "Save & Insert Script" |
Setup time | 5-10 minutes | 10-15 minutes |
For most users, the WordPress Plugin Setup offers easier maintenance and automatic WooCommerce tracking. Use manual setup if you prefer direct script control or have specific technical requirements.
Troubleshooting
Symptom | Likely Cause | Solution |
|---|---|---|
No events appearing in PixelFlow | Script not in header or cache not cleared | Verify script is in Header section of WPCode, save changes, and clear all caches |
Events not in Facebook Events Manager | Incorrect Pixel ID or Access Token | Verify credentials in PixelFlow dashboard and update your script |
Script visible on page source but not tracking | JavaScript error or conflict | Open browser console (F12) to check for errors. Contact support if issues persist |
Duplicate events in Meta Events Manager | Old Facebook Pixel script still active | Remove the native Facebook Pixel from your theme files, plugins, or other code snippets |
No confetti after site interaction | Events delayed or wizard timeout | Wait 2-3 minutes and check the Events page manually |
Verification
To confirm your setup is working correctly:
Check the PixelFlow Events page to see incoming events
Visit Facebook Events Manager and look for events with both "Browser" and "Server" sources
Review your Event Match Quality score (should be 8.3-9.3/10 with PixelFlow)
For detailed verification steps, see How to Test and Verify Your PixelFlow CAPI Setup.
Getting Help
If you're experiencing issues with manual WordPress setup:
Verify the script is pasted in the Header section (not Footer)
Check that you've saved changes in WPCode and cleared your cache
Use browser developer tools (F12) to check for JavaScript errors
Confirm your Meta Pixel ID and Access Token are correct
Contact PixelFlow support at [email protected] or book a free setup call
When contacting support, please provide:
Your WordPress site URL
Screenshots of your WPCode header section
Whether you're seeing events in your PixelFlow dashboard
Any JavaScript errors from your browser console