Skip to main content

Facebook code

Add facebook code to your website or booking engine.

N
Written by Niamh Kiely
Updated over a month ago

Add facebook code to website or SHR booking engine

SHR Group install all tracking tags via Google Tag Manager.

There are generally two types of Facebook code which can be added to a Website or Booking Engine:

  • Facebook Remarketing: Tracking how a Facebook campaign is performing.

  • Facebook Conversion: Tracking how successful a campaign is at converting followers to booking guests.


Example of a Facebook remarketing tag:

<!-- 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', '111222333444555');
fbq('track', "PageView");</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=111222333444555&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->


Where to add the tracking

When requesting tracking to be added you must first decide where to have that tracking added:

  • On your Booking Engine only

  • On your Website Only

  • On your Confirmation Page only (for conversion tracking)

  • On Vouchers

  • On specific pages (such as spa pages or dinner pages)

  • All or any combination of the above

Once you have decided which of the above you want to be tracked you need to email [email protected] with the following information:

  1. Your Facebook campaign ID -- this is the 15 digit code as in the following example fbq('init', '111222333444555');

  2. Which page(s) you want tracked.

Note: If SHR Group manage your Digital Marketing then you need to send this information to your Digital Account Manager.


Consider when adding Facebook code to your booking engine or website

  • You can have multiple Remarketing codes on the Website.

  • You can have multiple conversion codes on the Confirmation Page.

  • SHR Group only implement the Facebook code. If the code is not reporting on your Facebook account, you need to contact Facebook to find out why.

  • You will not see the Facebook code if you view the source code on the Website. As it is implemented through Google Tag Manager, you will only see the GTM code.

Did this answer your question?