IntegrationsUpdated 11/12/2026

Vacation Rental Conversion Tracking: Meta Pixel, GA4 & GTM

To track bookings as conversions on a vacation rental website, you need a tag on every page — the Meta Pixel or the GA4 Google tag — and a purchase event that fires when a booking is confirmed. On a Haven site both are already wired: paste your Pixel ID or GA4 Measurement ID once under Marketing → Tracking, and Haven loads the tag on every address that serves the listing and fires the whole funnel for you — page view, booking started, inquiry, and purchase — with no code snippet to install and no events to build.

This is the measurement layer for ad campaigns and third-party analytics, not Haven's own reporting. Traffic sources, a booking funnel, and session replays are already built in under Analytics with nothing to install (see Site analytics, booking funnel & session replays). Add Meta or Google tracking when you run ads, want retargeting audiences, or report in GA4. Setup takes a few minutes per site; the optional server-side half, which keeps purchases accurate when a guest blocks the browser tag, is one more token or secret.

Key facts

  • You paste IDs, never code. Haven installs the Meta Pixel, the GA4 tag, and the GTM container for you across your custom domain, your *.bookwithhaven subdomain, and the canonical Haven URL. Skip the "add this snippet to your <head>" step in Meta and Google.
  • Four funnel events fire automatically. Page view (view_item / ViewContent), booking started (begin_checkout / InitiateCheckout), inquiry or request to book (generate_lead / Lead), and confirmed booking (purchase / Purchase). The same events reach the GTM dataLayer, with an ecommerce object, for any tags you build there.
  • Server-side purchases use the real amount. With a Meta Conversions API token or a GA4 API secret saved, Haven sends a server-side purchase on every booking paid through Haven checkout, using the booking's true Stripe amount and the same event ID as the browser event, so Meta and Google deduplicate the pair into one conversion, even when the guest blocks the browser tag.
  • Pick one GA4 path. Run GA4 directly in Haven or through GTM, never both with the same Measurement ID, or every event double-counts.
  • Test like a visitor, then wait for reports. Tags load after the first scroll or tap (or a few seconds idle) and bot traffic is suppressed, so test in a normal browser and interact with the page. GA4's Realtime and DebugView show events at once; standard reports can take 24–48 hours to fill.
  • With the cookie banner on, tags wait for consent. If you turned on a site's Cookie banner (off unless you turn it on), GA4 loads only after a visitor accepts Analytics, the Meta Pixel after Marketing, and GTM after both. Visitors who reject never load them, so expect fewer browser events from EU and UK traffic. See Cookie Consent Banner.

This guide covers the Meta Pixel, Google Analytics 4 (GA4), Google Tag Manager (GTM), and the optional server-side conversions (Meta Conversions API and the GA4 Measurement Protocol).

When to use tracking

  • You're running Meta (Facebook/Instagram) ads and want to optimize for bookings and build retargeting audiences.
  • You want Google Analytics to understand how visitors find and move through your booking site.
  • You manage multiple marketing tags (Google Ads, remarketing, extra pixels) and want one place — Google Tag Manager — to control them.
  • You want booking conversions to report accurately even with ad blockers via server-side conversions.

If you're not running ads or measuring traffic, you can skip this entirely — it's optional.

Where to set it up

Everything lives in one place:

Host Dashboard → Marketing → Tracking

Your sites are grouped into Single Property Sites and Group Sites. Click a site to expand it, paste your IDs into the matching fields, and they autosave — watch the "Saving… / Saved" pill in the top-right corner. A "Tracking on" badge appears on any site that has at least one ID set.

On a Group Site, set it on the site and on every listing. The group site's row covers its own pages (home, menu pages, blog). Each listing's row covers that listing's page, its checkout, and the guest portal where the purchase fires. Paste the same ID on the site row and on each listing row, or the funnel stops at the listing page.

Set it on the right site. Each site row maps to one specific listing or group site. If you have more than one listing with a similar name, make sure the row you edit is the one whose live URL matches the site you're testing — otherwise the tags load on a different page than the one you're checking.

What Haven tracks automatically

Once an ID is saved, Haven fires the standard booking funnel for you — you don't have to build any of these events:

Funnel stepGoogle Analytics 4 eventMeta Pixel event
Property/site page viewview_itemViewContent
Booking started (hold created)begin_checkoutInitiateCheckout
Inquiry / request to bookgenerate_leadLead
Booking confirmedpurchasePurchase

The same events are also pushed to the GTM dataLayer, so they're available to any tags you build in Google Tag Manager.

How to set up the Meta Pixel

You only need the ID, not the code. Meta (and Google) will offer to walk you through pasting a code snippet into your website's <head>. Skip that — Haven installs and fires the tag for you. All you ever copy into Haven is the ID (and, optionally, the server-side token/secret).

Step 1: Find your Pixel (dataset) ID

In Meta Events Manager, open (or create) your dataset. The Pixel ID is the 15–16 digit number shown next to the dataset name.

Meta Events Manager dataset selector showing the dataset name and its Pixel ID

Step 2: Paste it into Haven

In Marketing → Tracking, expand your site and paste the ID into the Meta Pixel field. It autosaves, and a "Tracking on" badge appears.

Once a valid Pixel ID is saved, a Server-side conversions section appears in Haven with a Meta Conversions API token field. In Events Manager, go to your dataset's Conversions API setup and Generate access token, then copy it.

Meta Conversions API "Generate an access token" screen

Paste the token into the Meta Conversions API token field in Haven. It's encrypted at rest and never shown again. This sends a server-side Purchase from Haven on every confirmed booking — accurate even when a guest blocks the browser pixel — deduplicated against the browser event.

You don't need Meta's manual "Select events / parameters" CAPI wizard. Haven builds and sends the events (ViewContent, InitiateCheckout, Lead, Purchase) for you using the access token — just generate the token and paste it in.

See Testing your tags below, then Verify your domain in Meta.

How to set up Google Analytics 4

You can run GA4 directly (simplest) or through GTM — but not both with the same Measurement ID, or every event double-counts.

  1. In Google Analytics, open the Admin area, click Create, and choose Property (or use an existing property). On the last step, select Web and enter your site's URL to create a Web data stream.

    Google Analytics Admin "Create → Property" menu

  2. Open your Web stream details and copy the Measurement ID — it looks like G-XXXXXXXXXX. (Ignore the "install the Google tag" code snippet — you only need the ID.)

    GA4 Web stream details showing the Measurement ID and Measurement Protocol API secrets row

  3. Paste the Measurement ID into the Google Analytics 4 field in Haven. It autosaves.

  4. (Recommended) Server-side backup: in the same web stream, open Measurement Protocol API secrets → Create, name it, and copy the secret value. Paste it into the GA4 API secret field that appears in Haven. This sends a server-side purchase on confirmed bookings, deduplicated with the browser event.

    GA4 Measurement Protocol API secrets screen with the Create button

Give it time in standard reports. Realtime and DebugView show events immediately, but GA4's standard reports can take up to 24–48 hours to populate — a new property showing no data there at first is normal.

Path B — through GTM

If you'd rather manage GA4 inside Google Tag Manager, leave the GA4 field empty in Haven and configure GA4 inside your container (see below).

AI assistant visits in Google Analytics 4

When a guest clicks your site in an answer from ChatGPT, Perplexity, Copilot, Gemini or Claude, GA4 records the assistant's site as the Session source. Look under Reports → Acquisition → Traffic acquisition, and switch the table to Session source / medium to see each assistant on its own row.

AssistantSession source GA4 shows
ChatGPTchatgpt.com (older links: chat.openai.com)
Perplexityperplexity.ai
Microsoft Copilotcopilot.microsoft.com
Google Geminigemini.google.com
Claudeclaude.ai

The medium, and the channel the visit lands in, depend on whether Google recognises the assistant:

  • Assistants Google recognises — Google's default channel group has an AI Assistant channel. When the referrer is on Google's list of assistants (Google names ChatGPT, Gemini, DeepSeek, Copilot and Grok, and does not publish the full list), GA4 sets the medium to ai-assistant and files the visit there, so you read chatgpt.com / ai-assistant.
  • Assistants it does not — the visit keeps medium referral and lands in Referral, for example perplexity.ai / referral.
  • ChatGPT's tagged links — ChatGPT adds utm_source=chatgpt.com to the links in its answers but no utm_medium. When GA4 does not treat that visit as an assistant referral, it reads chatgpt.com / (not set) and, matching no channel rule, lands in Unassigned.

To see every assistant in one channel, make a custom channel group (a standard GA4 property can have two):

  1. In GA4, open Admin → Data display → Channel groups and click Create new channel group. It starts as a copy of the default group.
  2. Name it, click Add new channel, call the channel AI assistants, and add a condition: Source matches regex .*(chatgpt|openai|perplexity|copilot|gemini|bard\.google|claude|meta\.ai|grok|mistral|you\.com|deepseek|poe\.com).* GA4 matches the whole source against a regex, so keep the .* at both ends. Add a second condition group with Medium exactly matches ai-assistant, so Google's own matches are kept too.
  3. Click Save channel, then Reorder and drag AI assistants above Referral, Organic Search and Unassigned. GA4 puts each visit in the first channel it matches, so below them the visits never reach yours. Click Apply, then Save group.
  4. In Traffic acquisition, pick your group from the channel dimension's menu. Google applies a custom channel group to your past data too.

The regex covers the same assistants Haven counts in its own Analytics, so the two views line up. The same limits apply in both: a link copied out of an answer and pasted later reads as Direct, because nothing arrives with it, and Copilot used inside Bing reads as bing / organic. For how Haven counts these visits without GA4, see How visits from AI assistants are counted.

How to set up Google Tag Manager

Use GTM when you want a single place to manage many tags (Google Ads, remarketing, extra pixels) without changing settings in Haven.

  1. In Google Tag Manager, create a Web container and copy the container ID — GTM-XXXXXXX.
  2. Paste it into the Google Tag Manager field in Haven. It autosaves.
  3. In the GTM console, add the tags you want — for GA4, add a Google Tag with your G- Measurement ID triggered on All Pages.
  4. To track bookings, add GA4 event tags triggered on Haven's dataLayer events (view_item, begin_checkout, purchase), reading the ecommerce object Haven pushes.
  5. Publish the container — changes don't go live until you submit/publish.

Avoid double-counting GA4. If you configure GA4 inside GTM, do not also paste the G- Measurement ID into Haven's GA4 field. Pick one path.

Server-side conversions

Server-side conversions are the durable, ad-blocker-proof, cross-domain half of conversion tracking. On every booking paid through Haven checkout, Haven sends a Purchase / purchase directly from its servers:

  • Meta Conversions API — fired when a Meta Pixel ID and a Conversions API token are both set.
  • GA4 Measurement Protocol — fired when a GA4 Measurement ID and a GA4 API secret are both set.

Both use the booking's true amount from Stripe (never a reconstructed figure) and share the same event ID as the browser event, so Meta and Google deduplicate the two into one conversion. A stay paid on OwnerRez's payment page (see Let OwnerRez Process Direct Booking Payments) has no Stripe payment, so no server-side purchase is sent for it. Its browser purchase still fires when OwnerRez sends the guest back to their Haven guest portal. Tokens and secrets are encrypted and never displayed again after saving; use Remove token / Remove secret to clear them.

Bookings from One Click Ads are reported separately and need no setup: when a guest who clicked a Haven-run Google or ChatGPT ad books, Haven reports the confirmed stay to that ad platform, in Haven's ad account. Nothing is sent to a Google Ads account of your own; for that, add your Google Ads conversion tag through Google Tag Manager above.

Testing your tags

Two things trip people up, so check these first:

  1. Use a normal browser. Haven suppresses tracking for traffic it detects as automated (bots/crawlers). Some embedded or in-app browsers can be caught by this, so always test in a standard desktop or mobile browser.
  2. Interact with the page. Tags load after the first interaction (scroll, click, or tap) or a few seconds of idle time — so they stay off the critical loading path. If you check the instant the page paints, you'll see nothing yet; scroll once and wait a moment.

Meta Pixel

  • Install the Meta Pixel Helper Chrome extension, open your live site, interact, then click the extension — you should see your Pixel ID Active with a PageView.
  • For full validation, open Events Manager → Test Events, browse your site, and complete a test booking. You should see InitiateCheckout and then Purchase — the Purchase arriving from both Browser and Server, marked Deduplicated. That confirms the Conversions API token works end-to-end.

Google Analytics 4

  • Realtime: open your site in a normal browser, interact, then check GA4 → Reports → Realtime — you should appear as an active user.
  • DebugView (best): install the Google Analytics Debugger extension, toggle it on, browse your site, then watch GA4 → Admin → DebugView. You'll see page_view, view_item, begin_checkout, and (on a test booking) purchase stream in live.
  • Network check: in your browser's DevTools Network tab, filter for collect — you should see requests to google-analytics.com/g/collect with en=page_view, en=view_item, etc.

Meta domain verification & Aggregated Event Measurement

To get accurate attribution (especially on iOS) once your Pixel is live:

  1. Verify your domain in Meta Business Settings → Brand Safety → Domains (DNS TXT record or meta-tag method).
  2. Configure Aggregated Event Measurement in Events Manager and rank your 8 events with Purchase as #1.

A brand-new dataset may show a "low data quality" notice until real traffic and the browser + server Purchase pair start flowing — it clears on its own.

Troubleshooting

  • "No pixel found" / no events in a normal browser — confirm the ID is saved on the correct site (the one whose live URL you're testing), then hard-refresh in an incognito window and interact with the page.
  • Tags show in the dashboard but not on the live site — make sure the site you edited is the one actually serving your live domain. If you have duplicate listings, the domain may be attached to a different one.
  • Events double-counting in GA4 — you've configured GA4 both directly in Haven and inside GTM with the same Measurement ID. Remove one.
  • No server-side Purchase — server conversions only fire on a confirmed booking, and require the token/secret to be saved. Meta also needs at least one identifier (the guest email or Meta cookies) to attribute the event.
  • Admin preview shows nothing — Haven suppresses tracking when analytics are disabled for previewing; test as a normal visitor.
  • No events since turning on the cookie banner — the site's tags now wait for each visitor's consent. Click Accept all on the banner (or Cookie preferences in the footer) before testing. See Cookie Consent Banner.

New to Haven?

Everything in this guide, done for you

Haven is the direct booking platform these guides are written for — a branded site, secure payments, and guest relationships you own. Build yours free.

See how Haven works

Free to build · No credit card · Private until you publish