Select Page

Installing the Facebook (Meta) Pixel on your website is crucial for tracking visitor actions and optimizing ad performance. Here’s a step-by-step guide to install it properly:

1. Create a Facebook Pixel

  1. Go to Meta Business SuiteMeta Events Manager
  2. Click “Connect Data Sources” → Select “Web” → Click “Connect”
  3. Choose “Meta Pixel” → Click “Continue”
  4. Name your Pixel → Enter your website URL → Click “Continue”

2. Add the Pixel to Your Website

There are three main methods:

A) Using Partner Integration (Easy Method)

If you’re using platforms like Shopify, WordPress, Wix, or Squarespace:

  1. Choose “Use a Partner Integration” in Events Manager.
  2. Select your website platform.
  3. Follow the on-screen instructions to connect your pixel.

B) Manually Adding the Pixel Code (For Any Website)

If your website doesn’t support direct integration:

  1. Copy the Pixel base code from Meta Events Manager.
  2. Paste it inside the <head> section of your website’s HTML (on every page).

Example:

<!-- Facebook Pixel Code -->
<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"
  src="https://www.facebook.com/tr?id=YOUR_PIXEL_ID&ev=PageView&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->

Replace YOUR_PIXEL_ID with the Pixel ID from Events Manager.

C) Using Google Tag Manager (Recommended for Easy Management)

  1. Go to Google Tag Manager
  2. Create a New Tag → Choose Custom HTML
  3. Paste the Pixel base code into the tag.
  4. Set the trigger to “All Pages” → Save → Publish.

3. Verify Pixel Installation

  1. Install the Meta Pixel Helper Chrome Extension (Download here).
  2. Visit your website → Click the extension → Check if the Pixel is detected.

4. Set Up Event Tracking (Optional, but Recommended)

To track purchases, sign-ups, or button clicks:

  • Use Facebook Event Setup Tool in Events Manager.
  • Or manually add event tracking code to specific buttons/pages.

Example: Track a purchase:

<script>
  fbq('track', 'Purchase', {value: 49.99, currency: 'USD'});
</script>

Done! Your Pixel is Now Tracking Visitors. 🚀

This helps you run retargeting ads, optimize conversions, and track user behavior effectively.

SUBSCRIBE!

Subscribe and learn how to turn big profits from tiny lists.  I have 25 years of kicking ass and taking names to offer.

You have Successfully Subscribed!