Install a Facebook Pixel on Your Site

The Facebook Pixel is a snippet of code that allows you to track visitor activity on your website.

Facebook Pixel collects data from your site which can help you track conversions, improve ad optimization and build audiences. Using a Pixel can make advertising on Facebook much more effective.

Generate and Install Your Pixel Code

Once you've generated your unique Pixel code from within Facebook, place the code in the Site Manager under Marketing > Custom Tags > Advanced > Additional Header Tags.

  • Monitor your results from within your Facebook Ad Manager.
  • SmartEtailing does not integrate with Facebook Open Graph code at this time.

For conversion tracking, copy and paste the below snippet of code into Commerce > Catalog > Edit Order Confirmation Message > HTML/Text Below.

<script>
fbq('track', 'Purchase',{currency: 'USD', content_type: 'product', value: @@purchase_total@@});
</script>