Facebook Pixel: GDPR, cookies and installation

Social media
Consent-controlled integration
Facebook Pixel
8 cookies listed Privacy policy
service facebookpixel
31.9M
requests / 30 days

38.96% consent


Facebook Pixel: social media and consent

Facebook Pixel belongs to the social media service category. Social buttons, widgets and features may load resources from third-party domains and transmit information to the provider.

tarteaucitron can delay the activation of Facebook Pixel until the visitor has made a choice when the service requires consent.

Managing Facebook Pixel with tarteaucitron

When Facebook Pixel is integrated through tarteaucitron, its activation is managed according to the visitor's consent choice. The service can therefore be loaded only when the corresponding permission has been granted and the visitor can later change this choice through the consent interface.

Cookies and storage used by Facebook Pixel

The current tarteaucitron integration declares 8 cookies associated with Facebook Pixel:

  • datr
  • fr
  • reg_ext_ref
  • reg_fb_gate
  • reg_fb_ref
  • sb
  • wd
  • x-src

This list corresponds to the cookies currently declared in the tarteaucitron service definition. The service provider may change its technical implementation over time.

Configuring Facebook Pixel

Add the following code to your website after initializing tarteaucitron. Replace the example values with those provided by Facebook Pixel.

<script>
tarteaucitron.user.facebookpixelId = 'YOUR-ID'; tarteaucitron.user.facebookpixelMore = function () { /* add here your optionnal facebook pixel function */ };
(tarteaucitron.job = tarteaucitron.job || []).push('facebookpixel');
</script>

Code to remove

Default HTML code to remove from your website:

<script> !function(f,b,e,v,n,t,s) { if(f.fbq) return; n=f.fbq=function(){ n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments); }; if(!f._fbq) f._fbq=n; n.push=n; n.loaded=!0; n.version='2.0'; n.queue=[]; t=b.createElement(e); t.async=!0; t.src=v; s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s); } (window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', 'YOUR-ID'); fbq('track', 'PageView'); </script>

For a complete guide, read the documentation to install tarteaucitron.js.

Privacy information

For detailed information about the processing of data by Facebook Pixel, cookies and applicable retention periods, refer to the documentation or privacy policy published by the service provider:

Facebook Pixel privacy information

Frequently asked questions about Facebook Pixel

Does Facebook Pixel require consent?

When Facebook Pixel loads third-party resources or uses non-essential tracking technologies, its activation should be managed according to the visitor’s consent choice.

How does tarteaucitron block Facebook Pixel?

tarteaucitron controls the activation of Facebook Pixel according to the consent choice recorded for the visitor. The service code is triggered through tarteaucitron instead of being loaded independently from the consent manager.