Putting your schedule and shop on your website with a widget

An embedded widget is a piece of code you paste into a page of your website. Your schedule or your shop then appears in that spot. Visitors book and pay right there, without going to another site.

You find your widgets under My company → Integrations → Embedded widgets. On your phone, tap More → Integrations.

Your embedded widgets

Your embedded widgets

Creating a widget

  1. Click New widget.
  2. Choose the Type: Schedule or Shop. You can't change the type later.
  3. Give the widget a Name, for example Homepage schedule. Only you see this name.
  4. Click Create. The Edit widget page opens.
  5. Choose what the widget shows (see below) and click Save.
  6. At the bottom, under Embed code, copy the code and paste it into your website.

Creating a new widget

Creating a new widget

Tip: You can create several widgets, for example a group schedule for your homepage and a separate widget with only your private sessions.

Setting up a schedule widget

OptionWhat happens
Schedule typeAll types, or only Group, Private or Rental. You only see the types you have activities for.
Default viewOnly for group classes: List or Grid on a computer
List view periodWhich period the list shows, such as Week, Single day or Next 7 days
LocationsOnly show sessions at certain locations

Under More settings you can limit the widget further to certain Activity categories, Activities, Staff or Rooms or resources. If you leave a field empty, the widget shows everything.

The settings of a schedule widget

The settings of a schedule widget

Note: A free activity (without a product) is only visible to logged-in clients. Visitors to your website don't see it in the widget. If you choose such an activity, Trainin warns you.

Setting up a shop widget

OptionWhat happens
Shop typeAll products, only Credit products (class passes and memberships) or only Retail & bar products
Credit product categories / Retail product categoriesOnly show products from certain categories

Under More settings you also choose the product types and the Locations where the products are sold.

More settings for both types

OptionWhat happens
Trial productsWith Only trial products, clients can only buy a trial product through this widget. Useful for a page aimed at new clients.
LanguageShow the widget in a language other than your default language
ReferralA label on every sale made through this widget. See Tracking sales through a referral link.
Redirect URLThe page clients go to after a purchase. See Sending clients to your own page.
CSS classFor your web designer: a name they can use to style the widget from your own website

Note: Referral and Redirect URL are included in the Pro and Premium plans.

Embed code, link, preview and domains

At the bottom of the page is the Widget block with four tabs:

TabWhat you do there
Embed codeThe code you paste into your website. If your website builder only allows code in its settings, turn on Script only.
LinkA normal link to your schedule or shop, with the filters and styling of this widget. Put it behind a button or menu item, or share it. Don't paste it as an embed or iframe.
PreviewHow the widget looks, on Mobile and Desktop
DomainsWhich websites your widgets may be shown on (see below)

The embed code of a widget

The embed code of a widget

Note: Changed and saved the widget? Replace the code on your website with the new code. Only then will you see the change on your site.

Which websites can the widget be on?

By default, Allow all domains is on: your widgets work on any website. If you turn it off, you enter the websites where they are allowed yourself. Use https://yoursite.com for one site or https://*.yoursite.com for all subdomains. The website in your company profile is always allowed.

This setting applies to all your widgets, even though you set it on one widget.

The Domains tab

The Domains tab

Does the widget work if my schedule isn't public?

Yes. A widget on your website is always public, even if your schedule in the Client app is only visible to clients or is turned off (see Schedule settings for the Client app and widget). The Link doesn't work then: it opens your own schedule page, and Trainin warns you with This link doesn't work yet. If your shop is turned off, neither the link nor the widget works.

A link to a single product

Want a button on your site that goes straight to one product? Choose Checkout links and copy the product's link. The link opens a Trainin checkout page, so you don't need to paste anything into your website. You only see products here that are visible in the shop or can be bought through a link.

Checkout links per product

Checkout links per product

Tip: Not sure where to paste the code in your website? Let your web designer do it. Whoever manages your website can get their own account with a role that is allowed to manage widgets. See Roles and permissions.