How can I create a Facebook conversion tracking pixel on Bookeo?

Conversion tracking can help your business measure the return on investment of Facebook Ads by reporting on the actions people take after your ads are served. 

If you want to track Facebook Ads on Bookeo, you should follow the instructions below.

In this article:


Step 1 - Copy the Conversion Tracking Pixel provided by Facebook

1. Copy the code of the Conversion Tracking Pixel provided by Facebook. If you need to create a Conversion Tracking Pixel, please follow the instructions in their tutorial here.

2. Go to your Facebook Pixel tab in Ads Manager.

3. Click Actions > View Pixel Code. Your pixel code will be similar to the code in the the diagram below, except your pixel ID will be different from 1234567890.

​4. Copy the code of section 2 (in red in the diagram) 


Step 2 - Add the standard event code for Bookeo to the Conversion Tracking Pixel provided by Facebook

1. Paste the code on a text editor, and in section 3 (in green) of the diagram

2. Replace the code with the standard event code for Bookeo. The code is similar to: 

fbq('track', 'Purchase', {value: '{TOTALGROSS}', currency: 'USD'}); 

If your currency is not USD, you will have to replace USD with your currency code.

3. Copy the new code


Step 3 - Paste the edited Conversion Tracking Pixel in Bookeo

1. In your Bookeo account, go to Marketing>Conversion tracking and analytics

2. Paste the edited code, copied at Step 2 - #3, in the Other tracking methods [1].




For example, the entire code that you will paste should look like this (just replace 1234567890 with the correct ID of your pixel, and you may have to replace USD with your currency)

<!-- Facebook Pixel 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', '1234567890');
fbq('track', "PageView");
fbq('track', 'Purchase', {value: '{TOTALGROSS}', currency: 'USD'});
</script>

<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1234567890&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->


3. Save.

4. To verify your pixel code after you have installed it in Marketing>Conversion tracking and analytics, simply make a booking as a customer.
Once you land on the confirmation page, the page will contain the pixel, your browser will run the code and communicate with Facebook, and Facebook will know that your pixel is installed properly.

 

This code is only added in the confirmation page (mobile and desktop) to track conversions, and not to any other page. It is not possible to add custom code to other pages of the booking process.

The script is executed once the customer views the confirmation page, after the booking is confirmed:

  • If your customer is redirected to a 3rd party website to pay for their booking (for example if you integrated PayPal Payments Standard, or Mollie/iDeal) and does not return to the Bookeo confirmation page, the script is never run.

  • If you use the accept/deny feature, the script is run only if you accept the booking request and the customer finalizes the payment.