How to track attribution data in Bookem

Attribution data shows you where a booking came from, such as an email campaign, a paid ad, or a referral link. Bookem attaches this data to the booking automatically, with no setup required to start capturing it. There are two ways to get it from of Bookem: webhooks and the API.

What attribution data is

When a client clicks a tracked link and makes a booking on your public booking page, Bookem automatically attaches the source of each booking to the booking object, just like client and booking details.

Attribution data includes:

  • Referring page and landing page
  • UTM values (tracking tags such as utm_source)
  • Related tracking identifiers on the booking object (eg. Google or Meta ads, or affiliate ID, etc.)

Note: Attribution data isn't visible in the Bookem interface, and it isn't included in CSV exports. To view or use it, you need to retrieve it through a webhook or the API.

Webhooks and the API: what's the difference

Bookem gives you two separate ways to get attribution data out of the system.

  • Webhooks push data to you. Bookem sends the booking (including its attribution fields) to a URL you specify, the moment the triggering event happens.
  • The API lets you pull data on demand. You request a specific booking by its ID, and Bookem returns its details, including attribution fields, in response.

These work independently. You can use one, the other, or both together. The sections below cover each one on its own.

Attribution data with webhooks

When you set up a webhook for a booking-related event, such as booking.created, attribution data is included in the payload by default. This is the better option if you want attribution data to arrive automatically and continuously, without checking for it manually.

How to receive attribution data via webhooks

Follow these steps:

  1. Go to Settings > Developers > Webhooks in the main menu
  2. Click Create Webhook
  3. Enter the URL of the system that should receive the data (for example, a Zapier "Catch Hook" URL).
  4. Choose a booking-related event, such as booking.created
  5. Click Create

Attribution fields arrive as part of the booking data in the payload each time the webhook fires. For full setup details, including how to test a webhook and connect it to automation platforms, go to Using Webhooks in Bookem.

Attribution data with the API

The API lets you request a booking's attribution data directly, using the booking's ID. This is useful if you only need to check a source occasionally.

To use the API, you need an API key. This is a separate credential from your webhook setup, and it must be created and attached to your request separately.

How to fetch attribution data via the API

Follow these steps:

  1. Get the booking ID you want to check (included in webhook payload if you're already receiving webhooks)
  2. Go to Settings > Developers >API keys
  3. If you don't already have a key with the right permissions - set one up: Using API keys in Bookem
  4. Next, go to the API reference tab
  5. Request the booking by its ID through the API, attaching your API key to the request
  6. Read the referring page, landing page, and UTM values from the response

💡Pro tip:

If you want attribution data to arrive automatically rather than being fetched one booking at a time, set up a webhook and/or use the two methods together; use the webhook for immediate booking ID; use the API to recheck attribution later.

Setting up your links so attribution data has something to capture

Attribution data only works if the links you share carry tracking information. Bookem doesn't add this for you.

  1. Add UTM parameters to the end of any link that leads to your booking page, whether it's shared in an email, an ad, a QR code, or a referral partnership.
  2. Give each channel or send its own unique link, even if they all lead to the same booking page. A Facebook ad, a reminder email, and a referring doctor's link should each carry different UTM values.
  3. Share the tracked links instead of the plain booking page link.

Without this step, bookings will still come through, but there will be no source data to attach to them.

What you can do with attribution data

  • Identify which link or source a booking came from
  • Report on which campaigns generate the most bookings
  • Compare booking volume across different sources or channels
  • Feed booking source data into a CRM or analytics platform

Learn more