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:
- Access Facebook Events Manager
- Go to Facebook Events Manager and click “Connect to Data Sources” in the left-hand menu
- Select “Web”
- Click “Get Started” to continue
- Select Facebook Pixel
- Choose “Facebook Pixel” and click “Connect.”
- Name Your Pixel
- Give your pixel a name that represents your business (as you get only one pixel per ad account) and enter your website URL
- Click “Continue”
- 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' });