{"id":9048,"date":"2021-11-29T13:03:46","date_gmt":"2021-11-29T12:03:46","guid":{"rendered":"https:\/\/www.myagileprivacy.com\/how-to-install-facebooks-gdpr-compliant-pixel\/"},"modified":"2026-01-02T15:11:22","modified_gmt":"2026-01-02T14:11:22","slug":"how-to-install-facebooks-gdpr-compliant-pixel","status":"publish","type":"post","link":"https:\/\/www.myagileprivacy.com\/en\/how-to-install-facebooks-gdpr-compliant-pixel\/","title":{"rendered":"How to install Facebook's GDPR-compliant Pixel"},"content":{"rendered":"<p>In general, the Facebook Pixel is used to track user behavior on your website, such as page views and conversions, and sends this data to Facebook. With the information collected, you can create custom audiences, run remarketing campaigns, and optimize your campaign targeting. This includes automatically excluding users who have already completed \"conversions,\" such as making a purchase, filling out a form, or adding products to their shopping cart.<\/p>\n<p>Due to regulations like the GDPR and cookie law, it is essential to obtain explicit consent from users before engaging in these activities.<\/p>\n<p>In this article, we'll explore how to <strong>bring the Facebook Pixel into compliance with GDPR regulations using the My Agile Privacy<sup>\u00ae<\/sup><\/strong> WordPress plugin. Below is a step-by-step guide:<\/p>\n<h2>Solution 1 \u2013 Automatic Scan<\/h2>\n<p>You can take advantage of the advanced \"Cookie Shield\" feature.<br \/>\nThis mode automatically detects the Facebook Pixel on your website. By setting the Shield to \"Learning\" mode, the plugin will scan your site\u2019s pages and configure the necessary settings. You may also choose manual configuration if you prefer.<\/p>\n<h2>Solution 2 \u2013 Manual Configuration<\/h2>\n<h3>Part 1 \u2013 Identify Your Pixel Code<\/h3>\n<p>The first step is to locate your Facebook Pixel code.<br \/>\nIt will look similar to this example below:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-4501\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/fb_pixel_1.png\" alt=\"\" width=\"1920\" height=\"558\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/fb_pixel_1.png 1920w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/fb_pixel_1-300x87.png 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/fb_pixel_1-1024x298.png 1024w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/fb_pixel_1-768x223.png 768w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/fb_pixel_1-1536x446.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h3>Part 2 \u2013 Find the Facebook Pixel Cookie in the My Agile Privacy<sup>\u00ae<\/sup> Cookie List<\/h3>\n<p>Go to the \"My Agile Privacy<sup>\u00ae<\/sup>\" section in your WordPress admin menu and select \"Cookie List.\" Here, you\u2019ll see a list of cookies imported during plugin installation.<br \/>\nBy default, these cookies will be in draft status. Be sure to publish only the cookies necessary for your website.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-9467\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en.jpg\" alt=\"\" width=\"1000\" height=\"303\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en.jpg 1000w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en-300x91.jpg 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en-768x233.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>On this screen, you\u2019ll see a number of columns:<\/p>\n<ul>\n<li><em>Cookie<\/em> Name: the name of the cookie.<\/li>\n<li><em>Is Necessary<\/em>: Indicates whether the cookie is essential for your website\u2019s functionality. If rejecting the cookie makes your site unusable, it\u2019s considered essential. This detail is pre-filled for each cookie.<\/li>\n<li><em>Auto Update<\/em>: Specifies if the reference text for the cookie (explained next) is kept up to date automatically. If set to \"yes,\" we will handle updating the cookie references for GDPR compliance.<\/li>\n<li>Installation <em>Type<\/em>: Shows the chosen insertion type for the cookie. This value changes based on the inclusion method required, which will be covered in these guides.<\/li>\n<\/ul>\n<p>To install the Facebook Pixel cookie, search the list for the entry titled \"Facebook Remarketing (Facebook, Inc.)\" and click on it.<br \/>\nThe detail page provides a pre-filled informational text and two blank fields where you can enter the required code.<br \/>\nThe pre-filled text appears in your cookie policy and is automatically updated for compliance when \"Allow Automatic Update\" is enabled.<br \/>\nRight below the text, you\u2019ll find the option to select the \"Type of Installation\" (Javascript and Noscript, or Raw).<br \/>\nKeep \"Javascript-noscript code\" selected; you will then see two fields:<\/p>\n<ul>\n<li><em>Javascript Activation Code<\/em> \u2013 where to enter your main Facebook Pixel code<\/li>\n<li>NoScript code \u2013 where to enter any NoScript code if necessary<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-9477\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookie-script-code2-en.jpg\" alt=\"\" width=\"1000\" height=\"451\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookie-script-code2-en.jpg 1000w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookie-script-code2-en-300x135.jpg 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookie-script-code2-en-768x346.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<h3>Part 3 \u2013 Enter the Facebook Pixel Code<\/h3>\n<p>Now you simply need to enter your Facebook Pixel code, found in the first step, into the two fields as shown in the image below.<br \/>\nBe sure to insert the code WITHOUT the opening and closing <em>&lt;script&gt;<\/em> and <em>&lt;\/script&gt;<\/em> tags, or <em>&lt;noscript&gt;<\/em> and <em>&lt;\/noscript&gt;<\/em> tags.<br \/>\nDon\u2019t forget to save and publish your Cookie by clicking the blue \"Publish\" button in the top right corner.<\/p>\n<h2>Final Step \u2013 Verifying Proper Operation<\/h2>\n<p>Check that the Facebook Pixel is correctly installed on your website using tools provided by Google or Facebook. Visit any page of your site to ensure that the Facebook Pixel remains inactive until the user has given explicit consent to cookie installation. Users can provide this either by clicking \"I agree\" on the cookie consent banner or by activating the Facebook cookie in the \"Customize\" section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In general, the Facebook Pixel is used to track user behavior on your website, such as page views and conversions, and sends this data to Facebook. With the information collected, you can create custom audiences, run remarketing campaigns, and optimize your campaign targeting. This includes automatically excluding users who have already completed \"conversions,\" such as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8674,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[33],"tags":[35],"class_list":["post-9048","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cookies","tag-free"],"acf":{"visibilita_box_autore":false,"autore_associato":null,"elenco_faq_articolo":null,"url_esterno":"","titolo":"Facebook pixel"},"_links":{"self":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/comments?post=9048"}],"version-history":[{"count":10,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9048\/revisions"}],"predecessor-version":[{"id":15174,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9048\/revisions\/15174"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media\/8674"}],"wp:attachment":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media?parent=9048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/categories?post=9048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/tags?post=9048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}