Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

Meta (Facebook) Pixel

Adds the Meta Pixel base code and counts a page view on every page. Visits by administrators aren’t counted.

  • Type HTML
  • Runs Public site, in <head>
  • Tested with WordPress 7.1

Fill in your details first. Replace YOUR_PIXEL_ID (twice) with your pixel ID from Meta Events Manager.

HTML
<!-- Replace YOUR_PIXEL_ID (twice) with your pixel ID. -->
<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_PIXEL_ID');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none" alt="" src="https://www.facebook.com/tr?id=YOUR_PIXEL_ID&ev=PageView&noscript=1"></noscript>

Good to know

In the EU, load it only after consent (marketing cookies).

Comes with a rule

It doesn't run for administrators, so your own visits don't count in your statistics. You can change the rule after installing.

In these packs

  • Analytics and pixels: The usual tracking codes, ready to paste your ID into. Administrators’ visits aren’t counted.

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.