Meta Pixel
How to connect Meta Pixel to your website
Find a Pixel, select it in AI TARGETOLOG, install the events, and verify the result.
Do you need a Pixel?
Pixel helps Meta see actions on your website. Connect it when a lead or payment happens on your site.
If you do not have a website, or only a CRM or manager records sales, you can continue without a Pixel.
Find or create a Pixel
Open Events Manager
- In Events Manager, choose Connect data → Web → Create.
- Give it a clear company or website name.
- Meta may call the source a Dataset. Its numeric Dataset ID is the Pixel ID you will use next.
Select the Pixel in AI TARGETOLOG
- Open Settings → Connection → Meta Pixel.
- Refresh the list and select the Pixel you found.
- A green status will appear beside the Pixel after it is saved.
Install the Pixel on your website
Send this step to your developer or website builder. The code on this page does not run automatically.
Place the base code in <head> on every page to send PageView. Send Lead after a successful form and Purchase only after confirmed payment with the exact order amount and currency.
Base code and PageView
<!-- Meta Pixel base 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" style="display:none"
src="https://www.facebook.com/tr?id=YOUR_PIXEL_ID&ev=PageView&noscript=1"
alt=""
/>
</noscript>Lead event
fbq("track", "Lead");Purchase event
fbq("track", "Purchase", {
value: ORDER_TOTAL,
currency: "UAH"
});Verify the events
- Open Events Manager → Test Events.
- Open your website in a new window.
- Submit a test lead.
- If possible, run a safe test payment.
- Confirm that PageView, Lead, and Purchase appear.
- Return to Pixel Health and run the check again.