Tracking users with Facebook Pixels.

Learn how to include pixels in your project or site for tracking.

Deepa Prabhu avatar
Written by Deepa Prabhu
Updated over a week ago

Advanced marketers may want to include Facebook Pixels in their project pages to track the success of their Facebook ad campaign. You can do this on a project by project basis, as described below, or for your entire site by pasting your Pixel code into the custom tracking field in your site settings. In either case, if your Pixel is included but does not fire, get in touch with us.

NOTE: This is advanced. Only proceed if you feel confident you understand this. If not, please ask us!

(This is an outlined approach for one project at a time and if you need it for the entire site, please contact support)

Here is how to include the pixel in any EnagagementHQ project page:

Go into the project where you want to place the pixel and set up a custom widget.

Follow steps one through five.

  1. Rename the widget

  2. Hide the widget title

  3. Click on <> to paste the code, which will look similar to the below

  4. Paste the code

  5. Click on < > icon again

  6. Press save

In the sixth step, move the widget to the top of your widget order. This widget is active, but shouldn't show on the page because you have hidden the title and there is no visible content. However, the code will still be executed.

If you need to adjust the code, you will have to go through steps 3-5 again. You can NOT edit existing code!

The Facebook Pixel code will look similar to this:

<script>(function() {

var _fbq = window._fbq || (window._fbq = []);

if (!_fbq.loaded) {

var fbds = document.createElement('script');

fbds.async = true;

fbds.src = '//connect.facebook.net/en_US/fbds.js';

var s = document.getElementsByTagName('script')[0];

s.parentNode.insertBefore(fbds, s);

_fbq.loaded = true;

}

})();

window._fbq = window._fbq || [];

window._fbq.push(['track', '77778787878', {'value':'0.00','currency':'AUD'}]);

</script>

<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?...." /></noscript>

Here is how to add the pixel code for the entire site

Go to the Site settings > Custom Code > add the code inside <head> section as shown below.

The data collected by the Facebook pixel which has been embedded will only be available on Facebook and not in the EnagagementHQ reporting. 

Contact us via chat or send us an email at support@engagementhq.com

Did this answer your question?