{"id":951591,"date":"2019-01-29T11:04:27","date_gmt":"2019-01-29T10:04:27","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=951591"},"modified":"2023-11-20T09:51:51","modified_gmt":"2023-11-20T08:51:51","slug":"facebook-pixel-add-wordpress","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/","title":{"rendered":"What Is Facebook Pixel And How To Add It To WordPress?"},"content":{"rendered":"<p>Confused by what Facebook Pixel is and whether or not you need to add it to your WordPress site?<\/p><p>In this post, we&#8217;ll demystify the issue by telling you exactly what Facebook Pixel does and if it will help you.<\/p><p>Then, if you do need it, you&#8217;ll learn how to add Facebook Pixel to WordPress in two different ways:<\/p><ul class=\"wp-block-list\"><li>Manually<\/li>\n\n<li>With a free plugin<\/li><\/ul><p>Finally, to finish things out, you&#8217;ll learn how to test whether Facebook Pixel is working on your site.<\/p><p>That&#8217;s a lot to cover, so let&#8217;s dive in!<\/p><h2 class=\"wp-block-heading\">What Is Facebook Pixel (And Do You Need It On Your WordPress Site?)<\/h2><p><a href=\"https:\/\/www.facebook.com\/business\/learn\/facebook-ads-pixel\">Facebook Pixel<\/a> is an official analytics tool from Facebook. It&#8217;s not a general analytics tool like Google Analytics. Instead, Facebook Pixel specifically helps you measure, target, and enhance your Facebook ad campaigns.<\/p><p>After adding a single script to your WordPress site, Facebook Pixel can help you:<\/p><ul class=\"wp-block-list\"><li>Track the conversion rate from your Facebook ad campaigns, like how many people make a purchase after clicking a Facebook ad.<\/li>\n\n<li>Create targeted audiences for Facebook ads (<a href=\"https:\/\/www.facebook.com\/business\/learn\/facebook-ads-reach-existing-customers\">custom audiences<\/a>), including the ability to &#8220;retarget&#8221; people who&#8217;ve visited your site on Facebook.<\/li>\n\n<li>Optimize your ad campaign spend, like setting up automatic bidding to target the people who are most likely to make a purchase at your site.<\/li><\/ul><p>If you are <em><strong>not<\/strong><\/em> running Facebook ads (<em>and never plan to in the future<\/em>), then you do <strong>not<\/strong> need to add Facebook Pixel to WordPress.<\/p><p>However, if you <em>do<\/em> promote your WordPress site on Facebook in any way, you should definitely add Facebook Pixel to your site because it will help you optimize and analyze your Facebook advertising efforts.<\/p><p>Below, we&#8217;ll show you two different ways to add Facebook Pixel to WordPress:<\/p><ul class=\"wp-block-list\"><li><strong>Manually (without plugin)<\/strong> &#8211; you&#8217;ll need to generate the Facebook Pixel tracking code and then add the script to your site&#8217;s header.<\/li>\n\n<li><strong>With the free Pixel Caffeine plugin<\/strong> &#8211; beyond ease of use, the main benefits of using this plugin are that it will help you pass additional tracking information to Facebook, set up conversion tracking, and take advantage of new functionality, like custom audiences.<\/li><\/ul><h2 class=\"wp-block-heading\">How To Add Facebook Pixel To WordPress Without Plugin<\/h2><p>If you don&#8217;t want to the extra functionality offered by the plugin, here&#8217;s how to add Facebook Pixel to WordPress without a plugin.<\/p><h3 class=\"wp-block-heading\">Step 1: Create Your Facebook Pixel<\/h3><p>To get started, you&#8217;ll need to create your Facebook Pixel via Facebook&#8217;s interface. <em>Each Facebook Ads account can only have one pixel, so you&#8217;ll just reuse this same pixel across all your sites.<\/em><\/p><p>To create your Pixel, go to the <strong>Pixels<\/strong> tab in Facebook Events Manager (<a href=\"https:\/\/www.facebook.com\/login.php?next=https%3A%2F%2Fwww.facebook.com%2Fads%2Fmanager%2Fpixel%2Ffacebook_pixel\"><em>this link will take you straight there<\/em><\/a>). Then, click on the <strong>Create a Pixel<\/strong> button:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"413\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Create-a-Facebook-Pixel.jpg\" alt=\"How To Create a Facebook Pixel\" class=\"wp-image-951733\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Create-a-Facebook-Pixel.jpg 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Create-a-Facebook-Pixel-300x155.jpg 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Create-a-Facebook-Pixel-768x396.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><p>That should open a popup box. All you need to do is click <strong>Create<\/strong> on that popup.<\/p><h3 class=\"wp-block-heading\">Step 2: Get Facebook Pixel Tracking Code<\/h3><p>Once you&#8217;ve created your Facebook Pixel, you should see a list of options in a <strong>Install Your Pixel Code <\/strong>box (if you don&#8217;t, <a href=\"https:\/\/www.facebook.com\/login.php?next=https%3A%2F%2Fwww.facebook.com%2Fads%2Fmanager%2Fpixel%2Ffacebook_pixel\">head to the Pixel tab<\/a> and click <strong>Set up Pixel<\/strong>).<\/p><p>From these options, choose <strong>&#8220;Manually Install the Code Yourself&#8221;<\/strong>:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"523\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Manually-Install-Facebook-Pixel.png\" alt=\"Manually Install Facebook Pixel\" class=\"wp-image-951670\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Manually-Install-Facebook-Pixel.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Manually-Install-Facebook-Pixel-300x196.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Manually-Install-Facebook-Pixel-768x502.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><p>On the next page, scroll down to the Facebook Pixel tracking code section and copy it:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"570\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Install-Facebook-Pixel-Code.png\" alt=\"How To Install Facebook Pixel Code\" class=\"wp-image-951676\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Install-Facebook-Pixel-Code.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Install-Facebook-Pixel-Code-300x214.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Install-Facebook-Pixel-Code-768x547.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><h3 class=\"wp-block-heading\">Step 3: Add Tracking Code To WordPress<\/h3><p>Next, you need to add the tracking code that you just generated right <em>above<\/em> the closing <code><strong>&lt;\/head&gt;<\/strong><\/code> tag on your WordPress site.<\/p><p>There are a couple ways that you can do this. You can:<\/p><ul class=\"wp-block-list\"><li>Add it directly to the <strong>header.php file<\/strong> in your <em>child<\/em> theme.<\/li>\n\n<li>Use the free (<em>and lightweight<\/em>) Insert Headers and Footers plugin<\/li><\/ul><p>To use a child theme, find your <strong>header.php file<\/strong> and paste the Facebook Pixel script immediately before the&nbsp;<code><strong>&lt;\/head&gt;<\/strong><\/code>&nbsp;tag:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"486\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Edit-WordPress-Theme-Facebook-Pixel.png\" alt=\"Add Facebook Pixel Tracking Code in WordPress\" class=\"wp-image-951681\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Edit-WordPress-Theme-Facebook-Pixel.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Edit-WordPress-Theme-Facebook-Pixel-300x182.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/Edit-WordPress-Theme-Facebook-Pixel-768x467.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><p>Or, if you want to use the <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">Insert Headers and Footers plugin<\/a> instead, go to <strong>Settings \u2192 Insert Headers and Footers<\/strong> and paste the code into the <strong>Scripts in Header<\/strong> box:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"521\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Install-Headers-And-Footer-Facebook-Pixel.png\" alt=\"WordPress Install Headers And Footer Facebook Pixel\" class=\"wp-image-951687\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Install-Headers-And-Footer-Facebook-Pixel.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Install-Headers-And-Footer-Facebook-Pixel-300x195.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Install-Headers-And-Footer-Facebook-Pixel-768x500.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><p>And that&#8217;s it!<\/p><h2 class=\"wp-block-heading\">How To Add Facebook Pixel To WordPress Using A Free Plugin<\/h2><p>As an alternative to the manual route, you can also use the free <a href=\"https:\/\/wordpress.org\/plugins\/pixel-caffeine\/\">Pixel Caffeine plugin<\/a> from AdEspresso (<em>a popular digital advertising tool owned by Hootsuite<\/em>).<\/p><p>This plugin lets you add the Facebook Pixel tracking code with a few clicks <strong>and also<\/strong> helps you:<\/p><ul class=\"wp-block-list\"><li>Pass additional information to Facebook, like the content people look at or whether they&#8217;re a registered WordPress user.<\/li>\n\n<li>Create custom conversion events, like viewing a specific URL or clicking a link.<\/li>\n\n<li>Create custom audiences from your WordPress dashboard.<\/li><\/ul><p>So if you want those extra abilities, that&#8217;s the real reason to choose this plugin over the manual route.<\/p><p>To get started, install and activate the <a href=\"https:\/\/wordpress.org\/plugins\/pixel-caffeine\/\">free plugin from WordPress.org<\/a>. Then, here&#8217;s how to set it up\u2026<\/p><h3 class=\"wp-block-heading\">Step 1: Add Facebook Pixel Tracking<\/h3><p>To add the Facebook Pixel tracking code, you&#8217;ll need to connect your Facebook account to Pixel Caffeine (<em>giving Pixel Caffeine access also lets it help you create custom audiences later on<\/em>).<\/p><p>To do this, go to <strong>Pixel Caffeine \u2192 General Settings<\/strong> in your WordPress dashboard and then click the big <strong>Facebook Connect<\/strong> button:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"425\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Setup.png\" alt=\"WordPress Pixel Caffeine Setup\" class=\"wp-image-951692\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Setup.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Setup-300x159.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Setup-768x408.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><p>Then, after giving Pixel Caffeine the proper permissions, you can use the drop-downs to select which ad account and Pixel to use:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"533\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Facebook-Account.png\" alt=\"WordPress Pixel Caffeine Facebook Account\" class=\"wp-image-951697\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Facebook-Account.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Facebook-Account-300x200.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Facebook-Account-768x512.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><p>Once you&#8217;re finished, click <strong>Apply<\/strong>.<\/p><h3 class=\"wp-block-heading\">Step 2: Configure Plugin Tracking Options<\/h3><p>Once you&#8217;ve set up Facebook Connect, you can configure the plugin&#8217;s other tracking options.<\/p><p>First, you can scroll down to the <strong>Custom Audiences<\/strong> area in the<strong> General Settings<\/strong> tab to configure things like:<\/p><ul class=\"wp-block-list\"><li>Tracking for post types<\/li>\n\n<li>User logged-in status<\/li>\n\n<li>Taxonomies<\/li>\n\n<li>Etc.<\/li><\/ul><p>If you&#8217;re running a WooCommerce or Easy Digital Downloads store, you can also set up conversion tracking in the <strong>Conversions<\/strong> area:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"572\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Advanced-Tracking.png\" alt=\"WordPress Pixel Caffeine Advanced Tracking\" class=\"wp-image-951702\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Advanced-Tracking.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Advanced-Tracking-300x215.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Advanced-Tracking-768x549.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><h3 class=\"wp-block-heading\">Step 3: Set Up Conversion Tracking (Optional)<\/h3><p>If you want to track your own conversions &#8211; like when a user visits a certain page or clicks a link &#8211; you can do that from the <strong>Conversion\/Events<\/strong> tab:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"566\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Add-New-Tracking.png\" alt=\"WordPress Pixel Caffeine Add New Tracking\" class=\"wp-image-951712\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Add-New-Tracking.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Add-New-Tracking-300x212.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Add-New-Tracking-768x543.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><h3 class=\"wp-block-heading\">Step 4: Create Custom Audiences (Optional)<\/h3><p>To create a custom audience for ad targeting, you can use the <strong>Custom Audiences<\/strong> tab:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"575\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Custom-Audience.png\" alt=\"WordPress Pixel Caffeine Custom Audience\" class=\"wp-image-951707\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Custom-Audience.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Custom-Audience-300x216.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/WordPress-Pixel-Caffeine-Custom-Audience-768x552.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><p>And that&#8217;s it!<\/p><h2 class=\"wp-block-heading\">How To Test If Facebook Pixel Is Working<\/h2><p>To make sure that your newly-added Facebook Pixel snippet is working, <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/facebook-pixel-helper\/fdgfkebogiimcoedlicjlajpkdmockpc?hl=en\">you can use the official Facebook Pixel Helper browser extension for Chrome<\/a>.<\/p><p>Once you install the extension, navigate to the website to which you added the Facebook Pixel code and click on the extension&#8217;s icon.<\/p><p>If Facebook Pixel is active, you should see a success message, as well as more information about what&#8217;s being tracked (<em>like any conversion events<\/em>):<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"391\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/How-To-Test-If-Facebook-Pixel-Is-Working.png\" alt=\"How To Test If Facebook Pixel Is Working\" class=\"wp-image-951717\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/How-To-Test-If-Facebook-Pixel-Is-Working.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/How-To-Test-If-Facebook-Pixel-Is-Working-300x147.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/How-To-Test-If-Facebook-Pixel-Is-Working-768x375.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><div id=\"om-ulrdquoprwqcywqbbgci-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'ulrdquoprwqcywqbbgci')<\/script><h2 class=\"wp-block-heading\">Wrapping Up<\/h2><p>If you promote your WordPress site on Facebook, you should add Facebook Pixel to analyze the effectiveness of your Facebook Ads and get access to new functionality, like custom audiences and retargeting.<\/p><p>To add Facebook Pixel to WordPress, you can either manually add the tracking code before the closing<code><strong>&lt;\/head&gt;<\/strong><\/code> tag or you can use a free plugin like Pixel Caffeine.<\/p><p>Once you&#8217;ve added the tracking code, make sure to test whether it&#8217;s working with the free Facebook Pixel Helper extension.<\/p><p><strong>Do you have any other questions about using Facebook Pixel on WordPress? Let us know in the comments!<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>Confused by what Facebook Pixel is and whether or not you need to add it to your WordPress site? In this post, we&#8217;ll demystify the issue by telling you exactly what Facebook Pixel does and if it will help you. Then, if you do need it, you&#8217;ll learn how to add Facebook Pixel to WordPress [&hellip;]<\/p>\n","protected":false},"author":84133,"featured_media":951876,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[117],"tags":[],"class_list":["post-951591","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-themes-plugin"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What Is Facebook Pixel? Plus How To Add Facebook Pixel To WordPress<\/title>\n<meta name=\"description\" content=\"Confused by what Facebook Pixel is and whether you need to add it to your WordPress site? In this in-depth guide we see what it does and if it can help you.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Is Facebook Pixel? Plus How To Add Facebook Pixel To WordPress\" \/>\n<meta property=\"og:description\" content=\"Confused by what Facebook Pixel is and whether you need to add it to your WordPress site? In this in-depth guide we see what it does and if it can help you.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-29T10:04:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-20T08:51:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"591\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Colin Newcomer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Colin Newcomer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/\"},\"author\":{\"name\":\"Colin Newcomer\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed\"},\"headline\":\"What Is Facebook Pixel And How To Add It To WordPress?\",\"datePublished\":\"2019-01-29T10:04:27+00:00\",\"dateModified\":\"2023-11-20T08:51:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/\"},\"wordCount\":1183,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg\",\"articleSection\":[\"Themes &amp; Plugins\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/\",\"name\":\"What Is Facebook Pixel? Plus How To Add Facebook Pixel To WordPress\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg\",\"datePublished\":\"2019-01-29T10:04:27+00:00\",\"dateModified\":\"2023-11-20T08:51:51+00:00\",\"description\":\"Confused by what Facebook Pixel is and whether you need to add it to your WordPress site? In this in-depth guide we see what it does and if it can help you.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg\",\"width\":1100,\"height\":591,\"caption\":\"What Is Facebook Pixel And How To Add It On Your WordPress Site\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Themes &amp; Plugins\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-themes-plugin\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What Is Facebook Pixel And How To Add It To WordPress?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed\",\"name\":\"Colin Newcomer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g\",\"caption\":\"Colin Newcomer\"},\"description\":\"Colin Newcomer is a freelance writer who spends his days inside the WordPress dashboard. He lives a life of danger, riding a scooter through the chaos of Hanoi.\",\"sameAs\":[\"https:\/\/wp-rocket.me\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Is Facebook Pixel? Plus How To Add Facebook Pixel To WordPress","description":"Confused by what Facebook Pixel is and whether you need to add it to your WordPress site? In this in-depth guide we see what it does and if it can help you.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"What Is Facebook Pixel? Plus How To Add Facebook Pixel To WordPress","og_description":"Confused by what Facebook Pixel is and whether you need to add it to your WordPress site? In this in-depth guide we see what it does and if it can help you.","og_url":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2019-01-29T10:04:27+00:00","article_modified_time":"2023-11-20T08:51:51+00:00","og_image":[{"width":1100,"height":591,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg","type":"image\/jpeg"}],"author":"Colin Newcomer","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Colin Newcomer","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/"},"author":{"name":"Colin Newcomer","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed"},"headline":"What Is Facebook Pixel And How To Add It To WordPress?","datePublished":"2019-01-29T10:04:27+00:00","dateModified":"2023-11-20T08:51:51+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/"},"wordCount":1183,"commentCount":3,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg","articleSection":["Themes &amp; Plugins"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/","url":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/","name":"What Is Facebook Pixel? Plus How To Add Facebook Pixel To WordPress","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg","datePublished":"2019-01-29T10:04:27+00:00","dateModified":"2023-11-20T08:51:51+00:00","description":"Confused by what Facebook Pixel is and whether you need to add it to your WordPress site? In this in-depth guide we see what it does and if it can help you.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/What-Is-Facebook-Pixel-And-How-To-Add-It-On-Your-WordPress-Site.jpg","width":1100,"height":591,"caption":"What Is Facebook Pixel And How To Add It On Your WordPress Site"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/facebook-pixel-add-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Themes &amp; Plugins","item":"https:\/\/wp-rocket.me\/blog\/wordpress-themes-plugin\/"},{"@type":"ListItem","position":3,"name":"What Is Facebook Pixel And How To Add It To WordPress?"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/d591586bde54c0f702d335ee00c9f1ed","name":"Colin Newcomer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dbfc60b99dd357e490f84ef7099dc25c?s=96&d=mm&r=g","caption":"Colin Newcomer"},"description":"Colin Newcomer is a freelance writer who spends his days inside the WordPress dashboard. He lives a life of danger, riding a scooter through the chaos of Hanoi.","sameAs":["https:\/\/wp-rocket.me\/"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/951591"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/84133"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=951591"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/951591\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/951876"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=951591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=951591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=951591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}