---
title: Troubleshooting Google Analytics 4 (GA4) and Xola Integration
description: Verify that tracking codes are correctly installed and that conversion events are properly configured. Ensure cross-domain tracking is set up to prevent attribution issues.
---

[Skip to content](https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#main-content)

English

Show submenu for translations

[![Xola](https://support.xola.com/hubfs/logo.svg)](https://www.xola.com/)

- [Home](https://support.xola.com/)
- [24/7 Live Support](https://www.xola.com/support/)

Open main navigation

Close main navigation

- [Home](https://support.xola.com/)
- [24/7 Live Support](https://www.xola.com/support/)
- English
  
  Show submenu for translations
- [Login](https://xola.com/_public/login.html)

[Login](https://xola.com/_public/login.html)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://support.xola.com/?hsLang=en)
2. [Integrations & Advanced Tools](https://support.xola.com/integrations-advanced-tools?hsLang=en)
3. [Marketing & Tracking Integrations](https://support.xola.com/integrations-advanced-tools?hsLang=en#marketing-tracking-integrations)

# Troubleshooting Google Analytics 4 (GA4) and Xola Integration

## Solving Data Gaps - Bridge the Divide Between Your Transactions Report and GA4 Analytics

**Tracking conversions with Google Analytics 4 (GA4)** is essential for **measuring the performance** of your **Xola-powered checkout**, but it’s common to notice **differences between your GA4 data and Xola’s transaction reports**. These **discrepancies** can stem from a variety of **technical, configuration, and user-behavior factors** — such as **browser privacy settings**, **ad blockers**, **session attribution**, **mobile vs. desktop traffic**, or **bookings made outside your primary sales funnel**.

This **Troubleshooting GA4 guide** is designed to help you **make sense of those differences** and **fine-tune your analytics setup** so you can **trust your data**, **make insightful decisions**, and **maximize your marketing efforts**. Inside, you’ll find:

- **Checklists** for **button and JavaScript validation**
- **Best practices** for **tag installation**
- **Troubleshooting tips** for **attribution and revenue tracking**
- **Recommendations** for **comparing GA4 metrics to Xola’s reporting**

**Follow these steps** to unlock the most **accurate, actionable insights** from both your **analytics and booking reports**—so you can focus on **growing your business with confidence**.

---

**What's covered in this article:**

- [Button Implementation Checklist](https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#button)
  
    - [Verify Xola JavaScript Installation](https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#Xola-checkout)
    - [Validate Xola Checkout Button Type](https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#button-type)
- [Install & Verify GA4 Tracking Code](https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#installl)
- <https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#installl>[Set Up Accurate Attribution](https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#setup)
- [Compare GA4 Metrics with Xola Reports](https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#compare)
- [Key Considerations When Comparing Data](https://support.xola.com/troubleshooting-google-analytics-4-ga4-and-xola-integration#key)

---

### Button Implementation Checklist

To accurately track conversions, ensure that both the correct Xola button type and the Xola JavaScript are installed on your website.

#### Verify Xola JavaScript Installation

For conversion tracking to work, the Xola JavaScript must be installed on your website - either in the `<head>` or `<footer>` section of your site’s code. You can find this script in **Step 1** from **[Settings \> Button Code](https://seller.xola.app/settings/buttons)**.

**<https://seller.xola.app/settings/buttons>![29106330058779](https://support.xola.com/hs-fs/hubfs/Knowledge%20Base%20Import/29106330058779.png?width=670&height=235&name=29106330058779.png)**

#### How to Verify It’s Installed:

- Open your website in a browser.
- Right-click anywhere on the page, and select **Inspect**.
- In the Elements tab, press `Command + F` (Mac) or `Ctrl + F` (Windows).
- Search for `checkout.js`.

If the script appears in the page’s code, you're good to go.

---

#### Validate Xola Checkout Button Type

Once you’ve confirmed the JavaScript is installed, check that you're using the correct type of checkout button.

Xola supports two button types that work with conversion tracking:

- **Pop-Up Checkout**
- **Embedded Checkout**

To verify:

- Click your **Book Now** button.
- If a checkout window pops up or stays embedded on the page, your button is compatible with tracking.

**Important:** If you’ve used the **URL option** from **Settings \> Button Code** (which redirects to a separate checkout page), tracking **won’t work** unless the Xola JavaScript is installed. Redirect-based checkouts do not allow analytics to track conversions properly.

---

### Install & Verify GA4 Tracking Code

Once you have confirmed that you have integrated Xola's JS code and have the appropriate button types, the next step is to ensure that your Google Analytics tracking code is correctly installed on your website. There are two common methods for implementing the tracking code:

- **GA4 Script:** The GA4 script is directly pasted into the website's source code.
- **Google Tag Manager (GTM):** Instead of pasting the GA4 script directly, GTM allows for centralized management of various tags and tracking codes, including Google Analytics.

#### Steps to Verify Proper Code Installation

To proceed with the verification process, follow these steps:

- **Obtain the Tracking ID**: Either the GA4 property ID or the Google Tag Manager Container ID. The GA4 ID should look something like "G-XXXXXXXXXX," while the GTM ID should look like "GTM-XXXXXXXX."
- **Verify Implementation**: Regardless of the method you used, whether it's Google Tag Manager or the direct GA4 script, the tracking code must be placed within the header of your website (Google Tag Manager will also provide a `<noscript>` that will be installed in the body instead of the head). To ensure proper installation, follow these steps: 
    - Right-click on the webpage and select **View Page Source**.
    - Once the page source loads select **Command + F** and search for the end `</head>` tag. Ensure that your Tracking ID appears anywhere between the opening `<head>` and closing `</head>` tags. 

**Note**: Proper placement of tracking codes are very important. If the tracking code is placed anywhere below the end \</head\> tag conversions will not pass over. 

#### Use Additional Tools

- **[Google Tag Assistant](https://support.google.com/tagassistant?source=404&sjid=4726127753212482853-NA#topic=6000196)**: Validate your GA4 or GTM setup
- **[Google Ads Setup Guide](https://www.youtube.com/googleads)**: Learn how to integrate and verify Google Ads tracking

---

### Set Up Accurate Attribution

In case attributions for conversions (source/medium, landing page, campaign etc.) are not coming in properly, check if xola.com is added to a cross-domain linking list.

- Go to **GA4 Admin** \>**Data Streams**.
- Select your web data stream.
- Click **Configure Tag Settings \> Configure Your Domains**.
- Click on **Add Condition**, and add the following domains:
  
    - xola.com
    - xola.app
    - yourwebsite.com

Still seeing `yourwebsite.com / referral`? Under **Add Condition**\> Click **Show More \> List Unwanted Referrals** and add the same domains there to clean up self-referral data.

---

### Compare GA4 Metrics with Xola Reports

If Xola JavaScript, proper button types, and tracking code are all installed correctly verify that your E-commerce purchases correlate with transactions shown in Xola reporting.

- In GA4, go to **Reports \> Monetization \> Ecommerce Purchases**.
- In the top right corner, set your date range and take note of:
  
    - Number of **Purchases**
    - **Revenue** (calculated as *price × quantity*, excluding discounts/taxes)
      
          - When accounting for Items purchased, the amount calculated in E-Commerce purchases is accounting for Add-Ons and the number of Demographics purchased. Below is how GA4 calculates revenue in comparison to UA. In GA4, Item revenue = price x quantity without consideration of discount and taxes
          - While in UA \> **Revenue = Price x qty - discount amount + tax amount**
- To compare transactions in Xola:
  
    - Go to **[Reports \> Custom Reports](https://seller.xola.app/reports/customReports) \> Reservations**
    - Set the date range **one day earlier** than GA4 (e.g., GA4: Jan 3–10, Xola: Jan 2–9)
    - Filter columns by:
      
          - **Source: **Filter only to **Checkout**
          - **Tags: **Filter to exclude **Rescue** bookings, which are counted as **converted abandoned bookings** 
                  - When abandoned bookings are converted, this means the guest completed the booking using the link provided via email thus not allowing the purchase to be tracked through the website
    - Calculate revenue by summing **Base Amount + Add-ons**

---

### Key Considerations When Comparing Data

- **Conversions will not be 1:1** 
    - Factors include:

- - - Direct checkout URLs
          - Mobile vs. desktop differences
          - Ad blockers
          - Back-office bookings
          - OTAs
          - Converted abandoned bookings
- **Big Discrepancy (\>15%)?**
  
    - In GA4, expand the report and group by:
      
          - `platform/device > device category`
    - If desktop data is low, verify E-commerce events in GTM.
    - If both mobile and desktop are low, check your GTM container or contact support.
- **Incorrect Channel Attribution?**
  
    - Double-check your cross-domain tracking setup.

Still having issues? Contact our support team at **[support@xola.com](mailto:support@xola.com)** - we’re here to help!

- [Getting Started](https://support.xola.com/getting-started?hsLang=en#main-content)

    - [Account Setup & Configuration](https://support.xola.com/getting-started?hsLang=en#account-setup-configuration)
    - [Website Integration & Installation](https://support.xola.com/getting-started?hsLang=en#website-integration-installation)
    - [Flex Plans](https://support.xola.com/getting-started?hsLang=en#flex-plans)
- [Managing Purchases & Customers](https://support.xola.com/managing-purchases-customers?hsLang=en#main-content)

    - [Purchases Management](https://support.xola.com/managing-purchases-customers?hsLang=en#purchases-management)
    - [Reservation Management](https://support.xola.com/managing-purchases-customers?hsLang=en#reservation-management)
    - [Customer Management](https://support.xola.com/managing-purchases-customers?hsLang=en#customer-management)
    - [Customer Data & Engagement](https://support.xola.com/managing-purchases-customers?hsLang=en#customer-data-engagement)
- [Reporting](https://support.xola.com/reporting?hsLang=en)
- [Integrations & Advanced Tools](https://support.xola.com/integrations-advanced-tools?hsLang=en#main-content)

    - [Xola App Store Integrations](https://support.xola.com/integrations-advanced-tools?hsLang=en#xola-app-store-integrations)
    - [Partner & Agent Management](https://support.xola.com/integrations-advanced-tools?hsLang=en#partner-agent-management)
    - [Marketing & Tracking Integrations](https://support.xola.com/integrations-advanced-tools?hsLang=en#marketing-tracking-integrations)
- [Mobile and Hardware](https://support.xola.com/mobile-and-hardware?hsLang=en#main-content)

    - [Mobile Tools and Apps](https://support.xola.com/mobile-and-hardware?hsLang=en#mobile-tools-and-apps)
    - [Hardware Setup & Devices](https://support.xola.com/mobile-and-hardware?hsLang=en#hardware-setup-devices)

- Company 
    - [About Us](https://www.xola.com/about)
    - [Careers](https://www.xola.com/team)
    - [Press](https://www.xola.com/press)
    - [Support](https://www.xola.com/support)
    - [Security Policy](https://www.xola.com/security-policy/)
- Resources 
    - [Articles](https://www.xola.com/articles/)
    - [Help Center](https://support.xola.com/)
    - [Success Stories](https://www.xola.com/success-stories/)
    - [App Store](https://www.xola.com/app-store)
    - [Demo](https://www.xola.com/demo)
    - [Xola Universe](https://www.xola.com/universe/)
- Documentation 
    - [API Documentation](https://developers.xola.com/)
    - [Payment Services Agreement](https://www.xola.com/payment-services-agreement/)
    - [Terms](https://www.xola.com/terms/)

[![logo](https://support.xola.com/hubfs/logo.svg "logo")](https://www.xola.com/)

© 2026 Xola Inc. All rights reserved.

<https://twitter.com/xola> <https://www.facebook.com/Xola/> <https://www.linkedin.com/company/xola> <https://angel.co/xola>

[Privacy Policy](https://www.xola.com/privacy-policy)     [Terms of Service](https://www.xola.com/terms)