A Bundle of Love - Get one year of Dynamic Shortcodes + Code Snippets Pro - for just $39
View Offer
A Bundle of Love - Get one year of Dynamic Shortcodes + Code Snippets Pro - for just $39
View Offer

How to add a Facebook Pixel

Adding a Facebook Pixel to your site is easy with when using Code Snippets. When setting up the pixel, select Install code manually, and then create a snippet similar to the one below including your pixel base code:

add_action( 'wp_head', function () { ?>

<!-- paste pixel code here -->

<?php }, 1000 );

Related Articles