{"id":3549,"date":"2020-07-22T11:46:27","date_gmt":"2020-07-22T08:46:27","guid":{"rendered":"https:\/\/elementor.com\/help\/?p=3549"},"modified":"2023-08-03T11:58:17","modified_gmt":"2023-08-03T08:58:17","slug":"how-to-add-facebook-pixel-to-elementor","status":"publish","type":"post","link":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/","title":{"rendered":"Add Facebook Pixel to Elementor"},"content":{"rendered":"\n<p>The Facebook Pixel allows you to&nbsp;<a href=\"https:\/\/www.facebook.com\/business\/help\/742478679120153?id=1205376682832142\">track, measure, and analyze user actions<\/a>&nbsp;on your site and then be able to use this information to reach customers again in future Facebook ads. To make use of it, you\u2019ll need to first create the Pixel in your Facebook Events Manager by following the&nbsp;<a href=\"https:\/\/www.facebook.com\/business\/help\/952192354843755?id=1205376682832142\">official Facebook instructions to manually add pixel code.<\/a>&nbsp;Once you have the code, you are ready to paste it into your site.<\/p>\n\n\n\n<p>There are two basic ways to add this code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method 1 (easiest): Use Elementor&#8217;s Custom Code Feature To Manage The Code<\/h2>\n\n\n\n<p>You can easily insert tracking codes to your website by using the Custom Code feature in Elementor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2021\/11\/image-27-1024x488.png\" alt=\"\" class=\"wp-image-27800\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Navigate To Dashboard &gt; Elementor Custom Code<\/li><li>Create A New Custom Code, and name it Facebook Pixel (or as desired)<\/li><li>Paste the code that you obtain from Facebook into the main content region of the Custom Code editor<\/li><li>Select the location of the code to load at the header<\/li><li>Set the display conditions to Entire Site, or a selected landing page if needed. <\/li><\/ol>\n\n\n\n<p>For more info <a href=\"https:\/\/elementor.com\/help\/custom-code-pro\/\">click here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method 2 (more technical): Edit Your Child Theme\u2019s\u00a0<em>header.php<\/em>\u00a0Code<\/h2>\n\n\n\n<p>Simply paste the code that you obtain from Facebook into the header.php of your <strong>child theme<\/strong>.<\/p>\n\n\n\n<p class=\"callout-red\"><strong>Warning<\/strong>: Never update your core \/ parent theme code, as anything you change will be deleted during the next theme update. Always use a&nbsp;<a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\">child theme<\/a>&nbsp;if you plan to edit any of the code.&nbsp;<\/p>\n\n\n\n<p class=\"callout-yellow\"><strong>Note<\/strong>: You can also choose to use one of Facebook\u2019s Pixel Partner Integrations such as its WooCommerce integration if you prefer. This document does not address that method since there are many integrations to choose from, and Facebook has documented each of them. The following directions are only for the manual method of adding the code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to add a Facebook pixel to your site via either of two methods<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_elementor_kustomer_id":["62c6c515e999bc7fe3aaef1f","62c6c515e999bc7fe3aaef1f"],"footnotes":""},"categories":[1439],"tags":[],"class_list":["post-3549","post","type-post","status-publish","format-standard","hentry","category-basic-functionality"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add Facebook Pixel to Elementor | Elementor<\/title>\n<meta name=\"description\" content=\"Learn everything about Add Facebook Pixel to Elementor in this article from Elementor&#039;s Knowledge Base. Get Elementor tips &amp; more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Facebook Pixel to Elementor | Elementor\" \/>\n<meta property=\"og:description\" content=\"Learn everything about Add Facebook Pixel to Elementor in this article from Elementor&#039;s Knowledge Base. Get Elementor tips &amp; more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/\" \/>\n<meta property=\"og:site_name\" content=\"Help\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-22T08:46:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-03T08:58:17+00:00\" \/>\n<meta name=\"author\" content=\"Alan Kaler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alan Kaler\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/\"},\"author\":{\"name\":\"Alan Kaler\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/ebf805be1a1abdd587d4b97e3328f430\"},\"headline\":\"Add Facebook Pixel to Elementor\",\"datePublished\":\"2020-07-22T08:46:27+00:00\",\"dateModified\":\"2023-08-03T08:58:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/\"},\"wordCount\":311,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/elementor.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2021\/11\/image-27-1024x488.png\",\"articleSection\":[\"Basic functionality\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/\",\"url\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/\",\"name\":\"Add Facebook Pixel to Elementor | Elementor\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2021\/11\/image-27-1024x488.png\",\"datePublished\":\"2020-07-22T08:46:27+00:00\",\"dateModified\":\"2023-08-03T08:58:17+00:00\",\"description\":\"Learn everything about Add Facebook Pixel to Elementor in this article from Elementor's Knowledge Base. Get Elementor tips & more.\",\"breadcrumb\":{\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Help Center\",\"item\":\"https:\/\/elementor.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elementor Editor\",\"item\":\"https:\/\/elementor.com\/help\/elementor-editor\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Widgets\",\"item\":\"https:\/\/elementor.com\/help\/elementor-editor\/widgets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Basic functionality\",\"item\":\"https:\/\/elementor.com\/help\/elementor-editor\/widgets\/basic-functionality\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Add Facebook Pixel to Elementor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/elementor.com\/help\/#website\",\"url\":\"https:\/\/elementor.com\/help\/\",\"name\":\"Elementor\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/elementor.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/elementor.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/elementor.com\/help\/#organization\",\"name\":\"Elementor\",\"url\":\"https:\/\/elementor.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png\",\"contentUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png\",\"width\":225,\"height\":225,\"caption\":\"Elementor\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/ebf805be1a1abdd587d4b97e3328f430\",\"name\":\"Alan Kaler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7618989d1401c38afe50748601d8dad91fdb8930f53fe037881768b15ab4b108?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7618989d1401c38afe50748601d8dad91fdb8930f53fe037881768b15ab4b108?s=96&d=mm&r=g\",\"caption\":\"Alan Kaler\"},\"description\":\"Alan Kaler is an expert Elementorist at Elementor and a WordPress Magician who thinks that the three most beautiful words in our language are: I told you\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Facebook Pixel to Elementor | Elementor","description":"Learn everything about Add Facebook Pixel to Elementor in this article from Elementor's Knowledge Base. Get Elementor tips & more.","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:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/","og_locale":"en_US","og_type":"article","og_title":"Add Facebook Pixel to Elementor | Elementor","og_description":"Learn everything about Add Facebook Pixel to Elementor in this article from Elementor's Knowledge Base. Get Elementor tips & more.","og_url":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/","og_site_name":"Help","article_published_time":"2020-07-22T08:46:27+00:00","article_modified_time":"2023-08-03T08:58:17+00:00","author":"Alan Kaler","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alan Kaler","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#article","isPartOf":{"@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/"},"author":{"name":"Alan Kaler","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/ebf805be1a1abdd587d4b97e3328f430"},"headline":"Add Facebook Pixel to Elementor","datePublished":"2020-07-22T08:46:27+00:00","dateModified":"2023-08-03T08:58:17+00:00","mainEntityOfPage":{"@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/"},"wordCount":311,"commentCount":0,"publisher":{"@id":"https:\/\/elementor.com\/help\/#organization"},"image":{"@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2021\/11\/image-27-1024x488.png","articleSection":["Basic functionality"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/","url":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/","name":"Add Facebook Pixel to Elementor | Elementor","isPartOf":{"@id":"https:\/\/elementor.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#primaryimage"},"image":{"@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2021\/11\/image-27-1024x488.png","datePublished":"2020-07-22T08:46:27+00:00","dateModified":"2023-08-03T08:58:17+00:00","description":"Learn everything about Add Facebook Pixel to Elementor in this article from Elementor's Knowledge Base. Get Elementor tips & more.","breadcrumb":{"@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/elementor.com\/help\/how-to-add-facebook-pixel-to-elementor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Help Center","item":"https:\/\/elementor.com\/help\/"},{"@type":"ListItem","position":2,"name":"Elementor Editor","item":"https:\/\/elementor.com\/help\/elementor-editor\/"},{"@type":"ListItem","position":3,"name":"Widgets","item":"https:\/\/elementor.com\/help\/elementor-editor\/widgets\/"},{"@type":"ListItem","position":4,"name":"Basic functionality","item":"https:\/\/elementor.com\/help\/elementor-editor\/widgets\/basic-functionality\/"},{"@type":"ListItem","position":5,"name":"Add Facebook Pixel to Elementor"}]},{"@type":"WebSite","@id":"https:\/\/elementor.com\/help\/#website","url":"https:\/\/elementor.com\/help\/","name":"Elementor","description":"","publisher":{"@id":"https:\/\/elementor.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elementor.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/elementor.com\/help\/#organization","name":"Elementor","url":"https:\/\/elementor.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png","contentUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png","width":225,"height":225,"caption":"Elementor"},"image":{"@id":"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/ebf805be1a1abdd587d4b97e3328f430","name":"Alan Kaler","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7618989d1401c38afe50748601d8dad91fdb8930f53fe037881768b15ab4b108?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7618989d1401c38afe50748601d8dad91fdb8930f53fe037881768b15ab4b108?s=96&d=mm&r=g","caption":"Alan Kaler"},"description":"Alan Kaler is an expert Elementorist at Elementor and a WordPress Magician who thinks that the three most beautiful words in our language are: I told you"}]}},"_links":{"self":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/3549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/comments?post=3549"}],"version-history":[{"count":1,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/3549\/revisions"}],"predecessor-version":[{"id":37796,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/3549\/revisions\/37796"}],"wp:attachment":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/media?parent=3549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/categories?post=3549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/tags?post=3549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}