Set Up Analytics Tracking
How to connect Google Analytics 4 and Facebook Pixel to the Resytech booking checkout for traffic and conversion tracking.
Resytech has built-in fields for Google Analytics 4 (GA4) and Facebook Pixel. Enter your tracking IDs and the checkout automatically loads the appropriate scripts, sends pageview events, and fires conversion events on completed purchases -- no custom JavaScript required.
Before you begin
- You need a Google Analytics 4 property and its Measurement ID (starts with
G-), a Facebook Pixel ID, or both. - You need access to the Resytech Dashboard with permission to edit checkout settings.
Add Google Analytics tracking
- Navigate to Dashboard > Checkout Settings.
- Select the Advanced tab from the sidebar.
- Scroll to the Analytics & Tracking section.
- Enter your GA4 Measurement ID in the Google Analytics Tracking ID field (e.g.,
G-XXXXXXXXXX). - Click Save Changes.
Once saved, the checkout page automatically:
- Loads the Google Analytics gtag.js script.
- Sends a
page_viewevent on every checkout page load. - Fires a
purchaseevent with transaction details when a booking is completed.
Add Facebook Pixel tracking
- On the same Advanced tab, enter your Facebook Pixel ID in the Facebook Pixel ID field (e.g.,
1234567890123456). - Click Save Changes.
Once saved, the checkout page automatically:
- Loads the Facebook Pixel base code.
- Fires a
PageViewevent on page load. - Fires a
Purchaseevent with value and currency when a booking is completed.
Track custom conversion events
If you need tracking beyond what the built-in fields provide, use the Purchase Complete JavaScript field to fire custom events. This is useful for platforms like Google Tag Manager, TikTok Pixel, or custom attribution systems.
Your script receives the completed booking as purchaseData. purchaseData.totalPaid is the booking's total in your company's currency (a tip is not part of it), and purchaseData.currency is its code (for example USD or DKK), so pass that on rather than a fixed currency.
var data = purchaseData;
// Example: Google Ads conversion
if (window.gtag) {
gtag('event', 'conversion', {
send_to: 'AW-XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXX',
value: data.totalPaid,
currency: data.currency,
transaction_id: data.confirmationCode
});
}
// Example: TikTok Pixel
if (window.ttq) {
ttq.track('CompletePayment', {
value: data.totalPaid,
currency: data.currency
});
}See Add Custom CSS and Scripts for the full list of available event data and more examples.
Verify your setup
Google Analytics
- Open Google Analytics and go to Realtime overview.
- Open your checkout page in a new browser tab.
- Confirm that a pageview appears in the realtime report.
- Complete a test booking and verify that a
purchaseevent appears in the realtime events list.
Facebook Pixel
- Install the Meta Pixel Helper Chrome extension.
- Open your checkout page.
- The extension icon should show a green checkmark and list the
PageViewevent. - Complete a test booking and confirm the
Purchaseevent fires.
Tips
- Use GA4 Measurement IDs, not Universal Analytics. Universal Analytics (IDs starting with
UA-) is no longer supported by Google. Only GA4 IDs (G-) work with the built-in integration. - You can use both GA4 and Facebook Pixel simultaneously. They operate independently and do not conflict.
- The built-in fields are simpler than manual scripts. If you only need standard pageview and purchase tracking, use the tracking ID fields rather than writing custom JavaScript. The built-in integration handles script loading, deduplication, and event formatting automatically.
- Purchase Complete JavaScript runs in addition to built-in tracking. If you have a GA4 ID configured and also write a manual
gtag('event', 'purchase')in the Purchase Complete JavaScript field, the purchase event may be sent twice. Use one approach or the other for each platform.
Related guides
- Add Custom CSS and Scripts -- for advanced tracking scenarios using custom JavaScript.
- Configure Checkout Settings -- set the return URL to redirect customers after purchase, which can include UTM parameters for campaign tracking.
Configure Customer Booking Management
How to enable and configure the Resytech customer self-service portal for cancellations, rescheduling, messaging, add-ons, and guest information management.
Calendar Integrations
Guides for connecting external calendars to Resytech so bookings automatically sync to Google Calendar and other providers.
