In the dashboard: Business Tools → Widget Integration → Track bookings in your ads
Your booking form runs inside a frame from Hive, so the ad tags on your website can’t see what happens in it. Add one line of code to your website, and each booking is sent to the ad tags you already have. You can then see which ads bring in bookings.This only works when the widget is embedded on your own website. Bookings from your plain link, QR code or public page aren’t counted, because your ad tags aren’t on those pages. To track an ad, send it to a page of your website that has the widget on it.
What counts as a booking
A booking counts once, when the client clicks Confirm Inspection and the inspection moves to Waiting.Add the tracking code
Copy the code
Go to Business Tools → Widget Integration. Under Track bookings in your ads, click the copy button.

Add it to your website
Paste it where your website’s Google tag or other ad tags are added. This is usually a site-wide header code or custom code setting. It also works on just the page that has the widget.
Set up your ad tools
Follow the steps for each tool below, then test it.
Set up your ad tools
The code uses the ad tags already on your website. It doesn’t add any. If a tag isn’t on the page, that tool is skipped.Google Analytics 4
- Make a test booking so Google Analytics receives
generate_lead. - In Google Analytics, open Admin and find the list of events.
- Mark
generate_leadas a key event.
Google Ads
Use one of these options, not both. Using both counts each booking twice. Option 1: import from Google Analytics. This is the simplest option if your Google Ads and Google Analytics accounts are linked. Markgenerate_lead as a key event, then in Google Ads create a new conversion action and import it from Google Analytics.
Option 2: use a Google Ads conversion directly. Create a conversion action in Google Ads for your website, and copy its conversion ID and label. Add them to the tracking code:
Google Tag Manager
If Tag Manager runs your ad tags, have Tag Manager fire them, and turn off the automatic sending. Otherwise each booking is counted twice.-
Add the tracking code with
data-auto="false": -
Create a Custom Event trigger named
hive_booking_requested. - Fire your tags from that trigger. These Data Layer Variables are available:
What is sent
- The booking total, including sales tax and any date or time fees, as saved with the booking. It’s sent even if Show Pricing on Online Scheduler is off. You can still change the price before you confirm, and the ad tool isn’t told about that change.
- The currency.
- A booking reference. It isn’t the inspection number, and it can’t be used to look up the booking.
Test your setup
A test booking is a real booking, and you get the usual emails and texts. Use your own details, and delete the inspection afterwards.- Open the page of your website that has the widget. Use your real website, not the Preview button.
- Complete a booking, right through Confirm Inspection, until you see Thank You!.
- Check that it arrived:
- Google Analytics: look for
generate_leadin Reports → Realtime. - Google Ads or Tag Manager: use Google Tag Assistant.
- Meta: use Test Events in Events Manager.
- Reddit and ChatGPT ads: check the event in that tool’s ads manager.
- Google Analytics: look for
For web developers
Without the tracking code, you can listen for the message yourself. Your code must run on the top-level page. Always check the origin.
There’s no separate message for the first part of the form, and the message doesn’t include which services were booked. Your page must keep the widget in the frame. If it opens the date and time page outside the frame, the message can’t reach your page.
Common questions
Nothing shows up after a test booking. Check that:- the widget is embedded on the page, and you didn’t use a direct link or the Preview button;
- you reached Thank You!;
- the tracking code is on the page: open your browser’s developer tools and look for
hive-scheduler.jsin the Network tab; - your ad tag is on the same page as the widget;
- the tracking code isn’t inside the same HTML block as the widget.
data-google-ads, or Tag Manager without data-auto="false". Keep one.
Can I track quotes sent by email? No. When a client picks a time from a quote you sent, they aren’t on your website, so your ad tags aren’t there. Only bookings made in the widget on your website are counted.
Does the quote widget count? Yes, if it’s embedded. A client who clicks Ready to Schedule? continues into the scheduling widget, and the booking counts when they click Confirm Inspection. Getting a price on its own doesn’t count.
Can I track other ad tools? Yes. Use Google Tag Manager or the message for web developers to send the booking to any tool.
Where to go next
- Add the scheduling widget to your website: your embed code, and every scheduler setting.
- Add the instant quote widget: show a price first, then continue to book.
- Webhook events: get told when an inspection is confirmed, paid or completed.

