Conversion Tracking

There are two types of conversion tracking (Google Ads, Meta Pixel, etc):


  1. Recording the number of visitors to your booking page

    This can be accomplished easily by injection Custom HTML/JavaScript to your booking page. Users on the Business Plan+ have access to this feature from Dashboard > Organization > Settings. Learn more at Sprintful for Developers.


  2. Enhance tracking with a custom confirmation page redirect

    After successful booking, redirect users to your own confirmation page embedding form data to URL params. Edit your page and insert confirmation page URL embedding the smart variables (e.g. https://link-to-thank-you-page.com/?email={{visitorEmail}}). Learn more from "Branding > Confirmation Message > Take them to another page".


  3. Recording the details of visitors who chose to book a meeting

    This can also be accomplished with simple JavaScript injection (or webhooks, which is out of scope for this article).


Tracking using JavaScript

Go to Dashboard > Organization > Settings, find "Custom HTML", and paste the following code

function isFormValid(formData) {
    // some logic here, return true to continue, false to halt
    return false;
}

The object formData will include all the input from the user, example below:

{
  "visitorEmail": "admin@example.com",
  "visitorName": "John Appleseed",
  "visitorCell": "",
  "timezone": "Asia/Riyadh",
  "datetimeStart": "2030-02-16T14:00:00.000Z",
  "datetimeEnd": "2030-02-16T14:30:00.000Z",
  "First custom question": "answer",
  "Second custom question": "answer",
}

Limitations

While the method above is sufficient for most scenarios, it is limited in the following ways:

  • If the same time slot is booked (or became unavailable) during the form validation, the code will be triggered and the visitor will be counted as converted (even though they did not manage to make a booking)
  • If a booking page requires payment, and the payment failed (credit card unaccepted for any reason), then the visitor will be counted as converted (even though they did not manage to make a booking)

Still need help? Contact Us Contact Us