Wordpress
This article guides you through the process of how to set up the Facebook Conversions API on Wordpress using PixelFlow.
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.
2: Add Your Site in PixelFlow
In your PixelFlow dashboard, add your new website, select Wordpress and follow the instructions.
Once you get to the "Install Script" screen, copy the code snippet starting with
<script>
3. Add Code Snippet in Wordpress
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.
Note: 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!