Facebook Pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use Facebook Pixel to track page views and purchases on your Podia Storefront. Facebook Pixel and other advanced analytics tools are available on the Shaker plan. You can learn more about Podia's plans on our pricing page.

Step 1: Get your Facebook Pixel code

If you haven't already done so, head over to Facebook and create a pixel.

You'll be shown a chunk of code and instructed to paste it into your website, which we'll do in Step 2. The code Facebook gives you will look something like this:

<!-- 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', '123456789007');
  fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
  src="https://www.facebook.com/tr?id=123456789007&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->

Step 2: Paste the Facebook Pixel into your Podia Storefront

Go to the Settings page in Podia and scroll to the "Advanced tracking code" section. Paste your code from Step 1 into the top box labelled "Website tracking code" box and click the "Save" button at the bottom of the page.

The Facebook Pixel will now appear on every page of your Podia Storefront.

Step 3: Track conversion from your Podia storefront to Facebook

Paste the following code into the bottom box labelled "Conversion tracking code" to have Podia send conversion data to Facebook when a purchase is made:

<script type="text/javascript">
  Podia.trackConversion();
</script>

Unlike the code in Step 2, which fires on every page, this code fires only when a purchase occurs.

Finishing up

Your Facebook Pixel is now setup, and you'll soon start to see page view and purchase events appear in your Facebook Events Manager.

You can install the Facebook Pixel Helper extension for Google Chrome to verify that the pixel is correctly installed. Disable any ad-blockers and use private browsing (incognito mode) when testing your pixel installation.

If you run into any issues, see Troubleshooting Pixel Errors or give us a shout — we're happy to help! Drop us a line at hello@podia.com or click the icon below to chat 👍

Did this answer your question?