Skip to main content

Track Event Bookings with Meta Pixel

Track bookings and revenue from our widget in Meta Ads Manager using your Meta Pixel and Google Tag Manager.

Written by Aaron Bird

Find out which of your Facebook and Instagram ads are actually selling entries. Connect our booking widget to your Meta Pixel to see bookings and revenue in Meta Ads Manager. Meta can then show your ads to the people most likely to enter.

Time to complete: 15–20 minutes

Note: This is an advanced guide. If you'd like a hand setting it up, contact our support team.


Before you start

You must have Google Tag Manager on the page where your booking widget sits. If you haven't done this yet, complete the guide that matches your setup first:

You will also need:

  • Access to your Google Tag Manager account

  • Access to your Meta Business account

  • Your Pixel ID, which is a long number such as 123456789012345

Finding your Pixel ID

  1. Log into Meta Events Manager.

  2. Click Datasets and select your pixel.

  3. Click the Settings tab.

  4. Copy the Dataset ID. This is your Pixel ID.


Step 1: Create your variables and triggers

These capture the booking details from the widget. They are exactly the same as the ones used for Google Analytics 4.

Already set up GA4 tracking? You already have these, so skip to Step 2.

If not, follow Step 1 and Step 2 of Track Event Bookings with Google Analytics 4. You can skip the GA4 Measurement ID variable.

When you're done, your User-Defined Variables should look like this. You won't have GA4 Measurement ID unless you've also set up GA4.

And your Triggers should look like this:


Step 2: Add Meta's official template

Google Tag Manager doesn't include Meta tracking by default, so you need to add Meta's free template once.

  1. In Google Tag Manager, click Templates in the left menu.

  2. Under Tag Templates, click Search Gallery.

  3. Search for Meta Pixel and select the template by facebook.

  4. Click Add to workspace, then Add.

Tip: Search for "Meta Pixel", not "Facebook Pixel". Searching for "Facebook Pixel" only shows templates made by other companies.


Step 3: Create the Meta base tag

This tag loads your pixel on every page of your website.

Important: Check whether your pixel is already on your website. A web developer or a website plugin may have added it. If it is already there, skip this step, because adding it twice will double count your visitors.

  1. Click Tags → New.

  2. Click Tag Configuration and select Meta Pixel.

  3. Paste your Pixel ID into the Pixel ID field.

  4. Set the event to PageView.

  5. Click Triggering and select All Pages.

  6. Click Save and name the tag Meta - Base.


Step 4: Create the widget page view tag

This tells Meta when someone views a page within the booking widget.

  1. Click Tags → New.

  2. Click Tag Configuration and select Meta Pixel.

  3. Paste your Pixel ID into the Pixel ID field.

  4. Set the event to ViewContent.

  5. Add a parameter called content_name. For its value, click the + icon and select {{pageTitle}}.

  6. Click Triggering and select Widget Page View.

  7. Click Save and name the tag Meta - Widget Page View.


Step 5: Create the purchase tag

This sends each completed booking, and how much it was worth, to Meta.

Our widget sends booking details in the same format as Google Analytics 4. Meta's template reads this format automatically, so you don't need to enter the booking value yourself.

  1. Click Tags → New.

  2. Click Tag Configuration and select Meta Pixel.

  3. Paste your Pixel ID into the Pixel ID field.

  4. Set the event to Purchase, or leave it to use the GA4 data layer if that option is shown.

  5. Click Triggering and select Widget Purchase and Website Purchase

  6. Click Save and name the tag Meta - Purchase.



Step 6: Publish your changes

  1. Click Submit (top right).

  2. Add a description, such as "Added Meta Pixel tracking for booking widget".

  3. Click Publish.

Your tracking is now live! 🎉



How to test your setup

Test 1: Preview mode

  1. In Google Tag Manager, click Preview and enter the address of the page with your booking widget.

  2. Make a test booking.

  3. Check that Meta - Widget Page View fires as you move through the widget.

  4. Check that Meta - Purchase fires when you complete the booking.


Test 2: Meta Events Manager

  1. In Meta Events Manager, select your pixel and click Test events.

  2. Enter your website address and click Open website.

  3. Make a test booking.

  4. Check that ViewContent and Purchase appear in the list, and that the purchase shows the correct value.


Troubleshooting

No tags fire in Preview mode

This is a Google Tag Manager issue rather than a Meta one. See the Troubleshooting section of the GA4 guide, which covers it.

Tags fire but nothing shows in Meta

  • Check that the Pixel ID is the same in all three tags.

  • Check that you're looking at the right pixel in Events Manager.

  • Make sure you clicked Publish in Google Tag Manager.

Purchases show in Meta but without a value

Open the Meta - Purchase tag and add two parameters by hand: value set to {{value}}, and currency set to {{currency}}. Then publish again.
​

Visitors or purchases are counted twice

Your pixel is probably installed twice, for example by a website plugin as well as Google Tag Manager. Remove one of them.


What happens next

Once purchases are coming through, you can choose Purchase as the conversion event when you set up a campaign in Meta Ads Manager. Meta will then report how many bookings and how much revenue each ad brought in.


Data privacy

As with our GA4 tracking, only anonymous booking details are sent to Meta: the amount, the currency and the ticket details. Names, email addresses and payment details are never shared. Don't turn on any setting that sends customer details such as email addresses to Meta (sometimes called Advanced Matching).

The Meta Pixel uses cookies. Make sure your website's cookie banner asks for consent before it loads, and that your privacy policy mentions Meta.


Related articles

Did this answer your question?