Add Class / Event Booking to Your Website

Modified on Fri, 14 Nov at 4:52 PM

You can enable clients to book classes or events online through the booking widget, as well as the iOS and Android consumer apps. This guide walks you through configuring online booking for class sessions.


Things to know:

  • The ability to add class or event bookings to your website is controlled by the "Accessing Website Tools" access control setting.
  • To enable online booking for classes, the following steps must be followed:
    • A payment account must be set up to process card payments. If you do not have a payment account, please email processing@mytime.com for help.
    • Your account must be live.
    • Online booking must be enabled. Learn more here 
    • The "Schedule Classes / Events" company setting must be enabled
    • Create your class categories and classes under the Class tab.
  • If you select only one staff member, that staff member will be preselected by default on the widget.
  • If you select only one class category, it will be preselected by default on the widget and will only show sessions within that category that fall within the selected date range.
  • The Staff Member filter is optional but can be used to filter classes shown in the widget.


Contents:


Configuring Classes on the Booking Widget 


  1. Navigate to Business Setup > Website Tools 

  2. Select the Setup button next to Add Appointment Booking & Purchases to Your Website 
  3. You can choose to install a widget or express checkout link  
    • Express Checkout - Clients click the Book Now button and are redirected to your MyTime booking page. Available for free to all MyTime accounts.
    • Booking Widget - Clients book directly on your website. A pop-up appears, allowing them to complete the booking.  
      • Free for Premium and Enterprise MyTime subscriptions.
      • $0.75 per transaction for businesses without a Premium subscription.
      • Customize Your Booking Widget
  4. Select the Booking Widget option then proceed to set up the widget unnamed__4_.png
  5. On the Customize Booking Page Theme page, set up your button and widget theme, then select next to proceed to the installation page  
  6. From there, configure the following:
    • In the left panel
      • Default LocationFor the class embed flow to function, you must select either a specific location or “All Locations.” Locations are required to search for services correctly.
        • If "All Locations" is selected, clients will be prompted to choose a location from the 'Pick A Location' page when accessing the embedded widget.
        • If a single location is selected, the embedded widget will default to that location, and the 'Pick A Location' page will not appear.
      • Widget Includes: Select “Access My Account” from the Widget Includes dropdown menu
      • Default To: Select “Classes
      • Meta CAPI: Learn more here
    • Google Tag Manager: Learn more here
    • Google Analytics 4 ID: Learn more here
    • Facebook Pixel: Learn more here
    • Custom CSS: Customize your widget by adding CSS instructions 
  7. Copy the code and embed it on your website 


Configuring Gift Card For the Booking Widget (Express Checkout Link)


  1. Select Express Checkout, then proceed to the Booking Page Settings Website_Tools___MyTime__1_.png
  2. On the Booking Settings page, you can customize the booking page theme, set up your button and widget themes, and choose what you'd like the layout of your button to look like
    • In the left panel
      • Default Location: For the gift card embed flow to work, you must choose a location. The location is required to search for the services correctly
      • Widget Includes: Select “Buy Gift Cards” from the Widget Includes dropdown menu
      • Default To: Select “Buy Gift Cards
      • Meta CAPI: Learn more here
    • Google Tag Manager: Learn more here
    • Google Analytics 4: Learn more here
    • Facebook Pixel: Learn more here 
    • Under the Book Button setting:
      • Your button can hover over your website or have a fixed placement 
      • You can also choose the button position and it will appear either horizontally or vertically on your page 
      • You will also be able to choose the default location, then select next to proceed to the installation page.  
  3. Copy the generated code and embed it on your website    mceclip1.png


Installing Class's Widget as an Entire Page


Once configured, your class bookings can be embedded on your website as a button or an entire page without a pop-up. 


  1. Copy the generated embed code
  2. Paste the iframe code into your website’s HTML. You can add it to a dedicated booking page or within an existing page
  3. A web developer can help adjust size, width, or positioning to fit your site layout.

Display Notes:


On Desktop: The widget will display in a wide format.


On Tablet/Mobile: The widget automatically adjusts to fit narrower screen sizes.


If you update the widget settings later (e.g., add Google Analytics, Facebook Pixel, or Custom CSS), a new URL may be generated. In that case, you’ll need to re-embed the updated code.

Congratulations! Clients can now book your classes and events directly from your website.


For more information, contact us at support@mytime.com.      


Related Articles

Add Appointment Booking to Your Website

Add Walk-in Waitlist to Your Website

Add My Account Management to Your Website

Deep Linking Classes on the Booking Widget & Express Checkout

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article