Custom Conversion Tracking
Track and report key booking data to third-party platforms using custom JavaScript at checkout.
Custom Conversion Tracking in Xola lets you input and save a custom script that runs inside the checkout flow whenever a new purchase is made. A common use case for this highly flexible tool is to send conversion data—like purchase value or order ID—to your third-party marketing software for better tracking and reporting.
To use this feature, enter your code within an HTML <script>
tag, where you can include any JavaScript you’d like to execute upon a successful checkout.
Xola provides a menu of dynamic variables you can combine with your custom JavaScript to report key data points for each conversion. These variables will automatically populate with real-time values at checkout:
-
Amount (number)
-
Order ID (string)
-
Product ID (string)
-
Product Name (string)
-
Product Type (string)
-
Total Demographics (number)
-
Session ID (string)
With Custom Conversion Tracking, you gain full control over the conversion data you share with tools like Google Ads, Meta/Facebook, or other analytics platforms, ensuring your campaigns are backed by the metrics that matter most.
User Access: Administrator or Marketer roles have access to set up Custom Conversion Tracking in Xola.
To grant access to users, click here.
How to enable
- Navigate to Marketing > Conversion Tracking > Custom Conversion Tracking.
- Toggle the feature on. Since you're unlocking the ability to use your own custom code, you'll need to agree to additional terms of service before using the feature.
- Enter your custom code into the text box.
- Select Save.
Your code will now execute within checkout upon purchase completion. A good way to test that you've entered a valid code is to use a console log, like the following:
<script type="text/javascript">
console.log("oh boy ... is it working? { { order.productName } } purchased successfully for { { order.amount } }");
</script>