Pixelflow
Wordpress

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.

  1. In your WordPress admin panel, go to Plugins → Add New

  2. Search for "Code Snippets"

  3. Click Install Now on the "Code Snippets" plugin

  4. 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

  1. In your PixelFlow dashboard, add your new website, select Wordpress and follow the instructions.

  2. Once you get to the "Install Script" screen, copy the code snippet starting with <script>

3. Add Code Snippet in Wordpress

  1. In your WordPress admin, go to Code Snippets → Header & Footer

  2. Scroll to the Header section

  3. Paste your PixelFlow script into the header text box

  4. 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!

Was this helpful?