RELATED TO: RealHomes Theme

Facebook Pixel is an official analytics tool from Facebook. It helps you measure, target, and enhance your Facebook ad campaigns. You can integrate Facebook Pixel in two simple steps without installing any third-party plugin.

Step 1: Getting Facebook Pixel ID:

First, go to your Facebook Event Manager to find your Facebook Pixel ID.

Step 2: Add Tracking Code to the website:

It’s recommended to use the child theme for changes to functions.php. If you don’t, your edits will simply be wiped out the next time your theme updates. A pre-built ready-to-use child theme is included in the main theme pack you downloaded from ThemeForest. It is commonly called

Copy and paste the following code into functions.php and replace the {your-pixel-id-goes-here} with pixel id.

add_action('wp_head', function () {
<!-- Facebook Pixel Code -->
s.parentNode.insertBefore(t,s)}(window, document,'script',
fbq('init', '{your-pixel-id-goes-here}');
fbq('track', 'PageView');
<!-- End Facebook Pixel Code -->

Please sign up at our support center and create a support ticket for any further assistance, and our support team will be happy to assist you.