Skip to main content

Advanced Website: Facebook Tracking Pixels

The information in this article is relevant only for Pro users at this time. For information about booking websites for Lite users, refer to the Guesty Booking Engine

You can add Facebook Tracking Pixels to your responsive site to track events. Create your Facebook Tracking Pixel code in the Facebook Pixel tab.

Add Facebook Tracking Pixel

Script section
<!-- Facebook Pixel Code --> <script>
(window, document,'script',
fbq('init', 'XXXXXXXXXXXXXXX');fbq('track', 'PageView');
NoScript section
<img height="1" width="1" style="display:none" 
<!-- End Facebook Pixel Code -->
  1. To access the Body end HTML section, in the left panel, click Settings, and then click Head HTML.
  2. Copy the <script> part of the code provided by Facebook into the Body end HTML section, and then click Save. The code should look similar to the one below.


The above code is just an example - do not copy this directly into your site. Please be sure to obtain the correct code from Facebook Pixel Code.

  1. Paste the <noscript> part of the code provided by Facebook into the Body end HTML section as well, and then click Save.

Considerations for Facebook Tracking Pixels

  • Similar to Google Tag Manager, Facebook recommends to place the noscript code in the beginning of the body section. This is a workaround they suggest to get around limitations of old web browsers which do not load header code.
  • Guesty Websites has completed extensive testing and the body-end.html section of developer mode works for adding the noscript code.
  • For more information about Facebook Pixel Implementation, see this guide.
Was this article helpful?
0 out of 0 found this helpful