Subdomain Setup for Booking Widget(BW)

Subdomain Setup for Booking Widget(BW)

Info
Purpose:
This section is to explain basic information and key considerations regarding the use of subdomains for the booking widget.

1. What is Subdomain? 

  1. A subdomain is used to divide a single domain into multiple parts for different purposes.
  2. Normally, as the number of websites increases, the cost and effort required to purchase and manage domains also increase.
    By using subdomains, 
    one main domain can be shared and separated by purpose, which helps reduce cost and management effort.
  3. The main domain (official website) is purchased through a domain registration service.
    Subdomains are created and managed in the server settings where the main domain is registered.

2. Difference Between iframe and Subdomain BW

2.1 iframe (Standard BW)

  1. The standard tripla BW uses an iframe.
  2. With this method, the  BW is displayed as part of the hotel’s website.
    Because the widget opens as a popup on the same page, guests can complete their reservation without moving to another website, which provides a smooth booking experience.
  3. However, since the session cannot be shared, access analysis tools such as Google Analytics cannot track where guests came from before opening the BW.
  4. In addition, due to browser restrictions, Google Analytics tags may be blocked in iframe mode. As a result, traffic data for the BW may not be fully captured.

2.2 BW Using a Subdomain

  1. When using a subdomain, the BW opens in a separate browser tab.
  2. With this setup, Google Analytics can track the referral source, allowing more accurate analysis of guest behavior and traffic data.

2.3 iframe tripla Book

  1. When first-party cookies are configured and the BW is set up on a subdomainthe iframe tripla Book becomes available.
  2. This allows the BW to be displayed in iframe form while still enabling improved data tracking.
  3. By using the iframe tripla Book, required tracking for Google Analytics and tripla Connect targeting can be maintained.
Warning
Note: 
  1. It is recommended to configure first-party cookies before setting up the subdomain.
  2. If the subdomain is set up before first-party cookies are configured, the BW may be blocked by a popup blocker.
Item
iframe (Standard BW)
Subdomain BW
iframe tripla Book
1. BW Transition
None
Opens in a separate browser tab
None
2. Referral Tracking in Google Analytics
△(*2) 
3. Access Tracking in Google Analytics
△ 
4. Using tripla Connect
△(*1)
5. First-Party Cookie Setup
Not required
Optional
Required
Warning
Note:
(*1): For tripla Connect, it must be set up on a subdomain, and first-party cookies must be enabled.
(*2): Event-level traffic source tracking is possible, but GA4 cross-domain tracking (_gl) does not work in iframes, so sessions and traffic sources from the parent site are not passed to the iframe.

3. Cases Where Subdomain Setup Is Required

3.1 Tracking Referral Sources in Google Analytics

  1. The standard BW (iframe) cannot track referral sources.
  2. To measure referral sources in Google Analytics, configuring the BW on a subdomain is required.

3.2 Using tripla Connect

  1. tripla Connect allows promotions to be sent to customers based on created segments.
    For example, special discount information can be sent only to members by email.
  2. To accurately measure customer data and perform targeting, both subdomain setup for the BW and first-party cookie configuration are required when using tripla Connect.
Info
A separate contract is required to use tripla Connect.
Please contact the tripla sales representative for details.

4. Cases Where Subdomain Setup Is Recommended

4.1 Improving BW Load Speed

  1. When a website contains many images or auto-playing videos, the standard BW (iframe) is affected by the website’s loading speed because it is displayed as part of the page.
  2. When the BW is configured on a subdomain, it is no longer affected by the website’s loading speed.

4.2 Avoiding pop-up blocking

  1. Some users have browser settings that block pop-ups, which can prevent the standard (iframe) BW from opening correctly.
  2. Avoiding this issue would require manual changes to browser settings to allow pop-ups.
  3. Configuring the BW on a subdomain prevents the issue entirely, as it does not rely on pop-ups.

5. Note

5.1 Subdomain Usage Restrictions

  1. Subdomain configuration is applied at the brand level.
  2. When multiple properties share the same brand account, the BW URL uses a common subdomain across all properties under that brand.

5.2 BW URL Parameters for Subdomain Setup

  1. For properties with subdomain configuration enabled, the URL parameter format differs from that of the standard (iframe-based) BW.
  2. For details, please refer to the following help page: URL Parameters for Booking Widget (Subdomain).

6. Tasks After Subdomain Setup

If BW links are directly embedded in the website HTML
(e.g., to display search results for specific plans),
the links must be updated to the subdomain URLs after subdomain setup.
Please coordinate in advance with the website administrator or web development agency.
When tripla Bot (chatbot) is already in use, any BW links registered in the FAQ must be replaced with the subdomain version of the link.

7. Cancelling or Resetting Subdomain Setup

Please contact tripla in the following cases:
  1. When the BW has been converted to a subdomain and needs to be reverted to the standard BW (iframe).
  2. When issues occur during the subdomain setup process and the subdomain configuration needs to be reset.

8. SSL Certificate File

There are two methods to set up the BW on a subdomain:
one for cases where an SSL server certificate file is available, and one for cases where it is not.
Info
Info:
An SSL server certificate is a digital certificate used to verify the identity of a website operator
and to encrypt communication data between the browser and the web server.
ItemWith an SSL Certificate FileWithout an SSL Certificate File
1. Subdomain SetupRequires preparation of the following 3 files:
・SSL Certificate
・SSL Private Key
・SSLChain File (Intermediate Certificate)
Requires setting a verification CNAME record in your DNS settings.
2. SSL Certificate RenewalRequired (must be renewed by the user)Not required (tripla handles automatic renewal

    • Related Articles

    • Subdomain Setup (With SSL Server Certificate File)

      Purpose: This section is to explain Subdomain setup for properties that already have an SSL server certificate file. ⏱ Estimated time: ~15mins Depending on the DNS update frequency and TTL (priority) settings of the property’s DNS provider, it may ...
    • Subdomain Setup (Without SSL Server Certificate File)

      Purpose: This guide explains how to set up a subdomain when an SSL server certificate file is not available. ⏱ Estimated time: ~15min Depending on the DNS update frequency and TTL (priority) settings of the property’s DNS provider, it may take from ...
    • URL Parameters for Booking Widget (Subdomain)

      Purpose: This section explains how to create a booking widget URL with parameters for properties using a subdomain. ⏱ Estimated time: ~10 mins "URL parameters" refer to variables (strings) appended to the end of a URL. By placing links with specific ...
    • URL Parameters for Booking Widget

      Purpose: This section is to explain how to create URL to launch various booking widget screens, by placing links with specific URL parameters on the property homepage. ⏱ Estimated time: ~10 mins "URL parameters" refer to variables (strings) appended ...
    • iframe tripla Book Setup

      Purpose: This section is to explain how to setting Up the iframe tripla Book. ⏱ Estimated time: ~5 mins 1. Required Steps Before Configuration Before setting up the iframe tripla Book, please complete the following two settings: 1.1 First-Party ...