Implement Facebook Pixel page view to IBE confirmation step.

Created by Katrín Magnúsdóttir, Modified on Tue, 28 May at 1:39 PM by Snorri Valsson

In order to implement Facebook pixel in the confirmation step in Booking Factory's Internet Booking Engine (IBE) you need to follow these steps.

 

Go into Settings -> Connectivity Settings -> Booking Engine Settings. There you need to select the appropriate Booking Engine Profile and click the pencil (edit) icon. (click on image to enlarge)

 

Once you have your the edit form open you need to navigate down to Google Analytics code and copy the following code in the field:

 


<!-- Facebook Pixel Code -->
<script>
function init_fb_pixel(booking_object) {
!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', 'FACEBOOK_PIXEL_ID');
}

function fb_purchase_tag(booking_object) {
if(typeof fbq === 'undefined'){ init_fb_pixel() };
fbq('trackCustom', 'BookingEnginePurchase', booking_object);
}
</script>
<!-- End Facebook Pixel Code -->

 

You need to replace the FACEBOOK_PIXEL_ID in the code with the appropriate values you receive from your Facebook developers account.

 

Once that is finished you just need to click save on the Booking Profile edit form and you're all set. The confirmation page will now send a pixel pageview to your Facebook developers account.

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article