Meta PIXEL Finsweet Cookie Consent - Does not work

Hey @f.schneider!

The issue comes from a line within the Meta Pixel code. With how the scripts are triggered, this line revokes all previously granted consent:

fbq('consent', 'revoke');

This means Meta will stop tracking events for that user session.
You can simply remove this line from the script, and all events will continue to be tracked as expected.

This code has had that line removed, in case you want to copy/paste it into the site settings :slight_smile:

<!-- This script is managed by Finsweet Cookie Consent -->
<script type="fs-consent" fs-consent-categories="essential,marketing,personalization,analytics" fs-consent-scripttype="text/javascript">
  !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.agent='plwebflow';
    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', '1416098999743466');
  fbq('track', 'PageView');
</script>

Let me know if this helps!