Facebook Pixel


How to Connect the Facebook Pixel to the Privacy Panel 3 simple Steps:

In this example we will show you how to modify the Facebook Pixel. Please not that people also refer to the Pixel as a tracking cookie, a cookie, a pixel cookie, the facebook cookie or the pixel tag amoung other things.

Step 1:

Find the Facebook Pixel in the source code of your website. It should look like what you see below:

 1<!-- Facebook Pixel Code -->
 2<script>
 3  !function(f,b,e,v,n,t,s)
 4  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
 5  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
 6  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
 7  n.queue=[];t=b.createElement(e);t.async=!0;
 8  t.src=v;s=b.getElementsByTagName(e)[0];
 9  s.parentNode.insertBefore(t,s)}(window, document,'script',
10  'https://connect.facebook.net/en_US/fbevents.js');
11  fbq('init', 'Facebook-Pixel-ID');
12  fbq('track', 'PageView');
13</script>
14<noscript><img height="1" width="1" style="display:none"
15  src="https://www.facebook.com/tr?id= Facebook-Pixel-ID&ev=PageView&noscript=1"
16/></noscript>
17<!-- End Facebook Pixel Code -->
Step 2:

Look at line 2 from Step 1. Add the orange text between “script” and “>” (the angle bracket): type=“text/plain” data-trucookiecontrol=“marketing”.

Before

1<!-- Facebook Pixel Code -->
2<script>
3  !function(f,b,e,v,n,t,s)

After

1<!-- Facebook Pixel Code -->
2<script type="text/plain" data-trucookiecontrol="marketing">
3  !function(f,b,e,v,n,t,s)
Step 3:

Delete the noscript tag found in lines 14 - 16 in Step 1.

The modified Facebook Pixel that is connected to the Privacy Panel will look like this:

Final Result

 1<!-- Facebook Pixel Code -->
 2<script type="text/plain" data-trucookiecontrol="marketing">
 3  !function(f,b,e,v,n,t,s)
 4  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
 5  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
 6  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
 7  n.queue=[];t=b.createElement(e);t.async=!0;
 8  t.src=v;s=b.getElementsByTagName(e)[0];
 9  s.parentNode.insertBefore(t,s)}(window, document,'script',
10  'https://connect.facebook.net/en_US/fbevents.js');
11  fbq('init', 'Facebook-Pixel-ID');
12  fbq('track', 'PageView');
13</script>
14<!-- End Facebook Pixel Code -->

To finish the process Save Your Changes.

The noscript tag is deleted because TRUENDO’s Privacy Panel is a javascript program. The noscript tag is therefor incompatible with the Privacy Panel. Deleting the noscript tag does not affect the performance of the Facebook pixel.


What is the NoScript tag?

As defined by W3Schools: The noscript tag defines an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support script.