Facebook Tracking – Installation

Overview

As of release 2023.12 (v4.8.0), Facebook Tracking pixels and conversions are now supported in core product.

This article will cover how you can install Facebook Tracking on your site, and any notables around this integration.

Create Facebook Pixel

Full instructions on Meta’s website:

  1. Access Facebook Events Manager
    1. Go to Facebook Events Manager and click “Connect to Data Sources” in the left-hand menu
    2. Select “Web”
    3. Click “Get Started” to continue
  2. Select Facebook Pixel
    1. Choose “Facebook Pixel” and click “Connect.”
  3. Name Your Pixel
    1. Give your pixel a name that represents your business (as you get only one pixel per ad account) and enter your website URL
    2. Click “Continue”
  4. Set up Pixel Events:
    • In Facebook Events Manager, click “Open Event Setup Tool.”
    • Choose your Facebook pixel ID, then enter your URL and click “Open Website.”
    • Confirm the “Purchase” event for the CIMcloud integration
      • Note: Other events are not currently supported; however, you can setup other events via Google Tag Manager

Enter the Pixel ID to Your CIMcloud Website

  • Login to your CIMcloud Worker Portal
  • Navigate to Customer Sites, then select “Edit” on the site/domain you would like to track
  • Click on the Analytics tab
  • Click “Yes”, under “Use Facebook Tracking?”
  • Enter your Pixel ID
  • Click Submit

Global Script Automatically Added

The following script is automatically included on all pages, where PIXEL_ID_HERE will be replaced with the value entered above:

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

Purchase Event Automatically Tracked

When a customer places an order on your site, you should now see purchase data sent to your Facebook Business account within the next 48 hours.

Please enter a ticket to Extranet to track other events, or to modify the purchase event.

The following format is used to send purchase events:

fbq('track', 'Purchase', {
value: ORDER_TOTAL,
currency: 'USD'
});

References

Was this article helpful

Related Articles

Subscribe to receive email updates of what's new in the CIMcloud Help Center.