In this article, you’ll learn about additional settings of the old version of the White Label Web.
How to track clicks on the "Book" button on a White Label using Google Analytics GA4
The entire process of setting up Google Analytics for White Label consists of three stages:
- Creating and setting up accounts in Google Tag Manager and Google Analytics.
- Defining parameters for tracking actions on White Label.
- Checking statistics in Google Analytics.
Creating and setting up accounts in Google Tag Manager and Analytics
- Go to Google Tag Manager and create a new account.
- Fill in the following fields:
- Account Name: Enter any name, such as the name of your White Label.
- Country: Select the country where your main traffic comes from (e.g., Netherlands).
- Container Name: Enter the URL of your White Label.
- Target Platform: Choose "Website."
- Click Create and accept the Terms of Service agreement. A window with the Tag Manager code will appear.
- Copy the code from the first field and place it in the code blocks in the White Label settings under the Metadata tab, then save the changes.
Important! The code needs to be placed on all page types (Main, Flights result, Hotels result, Hotel preview). Additionally, make sure the code is added to all language blocks. If you’ve added three languages to your White Label, the code should be placed on all three languages for all page types. - Copy the code from the second field in Tag Manager and place it in the Header section in the My Blocks tab at the very top, then save the changes.
Important! The code needs to be added for all languages you've added to your White Label. - Go to Google Analytics and create a new property (Admin -> Create -> Property).
Note! If you don’t have an account in Google Analytics, create a new one and the system will take you to a Property creation page automatically.
- Fill in all fields in steps 1-3. On the final step, select Web.
- Set up a web stream by entering your website's URL and name.
- Click Create and continue.
- After this, you will receive a Stream ID. Click on it.
Note: If Set up a Google tag window appears, ignore and close it.
- In the Web stream details window, copy the Measurement ID.
- Go back to Google Tag Manager and create a new tag.
- In the Tag Configuration field, select Google Analytics -> Google Tag.
- Enter the previously copied Measurement ID into the Tag ID field. In the Triggering field, select All pages.
- Publish all changes by clicking Submit on the main Google Tag Manager page.
Defining parameters for tracking actions on White Label
Page views, scroll events, and other basic actions will automatically be collected in Google Analytics. To track clicks on the "Book" button, follow these steps:
- Go to Google Tag Manager and configure a new built-in variable.
- Click Configure and check the boxes for Click Element and Click Classes.
- Go to the Triggers tab and click New. Here, we'll define the conditions that must be met for a click on the "Book" button to be recorded in the statistics.
- In the opened window, select Click -> All Elements as the trigger type. Then, set Some Clicks under the activation conditions. Choose Click Classes -> contains.
- You can find the class of the "Book" button using the browser's developer tools. To do this, go to your White Label site, perform a search to reach the flight search results page.
- On the results page, open the developer console (press F12 or right-click -> Inspect) and click the icon in the top-left corner of the console window:
- Hover over the "Book" button. On the right, the element's class will be displayed. In this example, it is ticket-action-button-deeplink ticket-action-button-deeplink--.
- On the results page, open the developer console (press F12 or right-click -> Inspect) and click the icon in the top-left corner of the console window:
- Insert this value into the trigger field and save the changes.
- Go to the Tags section and create a new tag.
- In the Tag Configuration field, select Google Analytics -> GA4 Event Tag.
- In the opened window, enter the Measurement ID from Google Analytics (obtained earlier or available in Admin -> Property Settings in Analytics).
In the Event Name field, enter a name by which you would like to search for events in Google Analytics, such as a book. - In the Trigger field, select the previously created trigger.
- Save the settings.
- Publish all changes by clicking Submit on the main Google Tag Manager page.
Checking statistics in Google Analytics
- Go to Google Analytics and open the Reports tab.
- Select Real-Time Report.
- In this report, you can see all recorded events. At the bottom of the screen, you'll find the Event Count broken down by parameters.
- Go to your White Label site and click the "Book" button. Ensure that the click is recorded in the statistics with the name you set earlier.
Repeat these steps for the other items for which you want to track clicks.
How to add a pop-up window to the White Label search results
Let's look at how to make a pop-up window in your White Label, which will appear when you click on the Book button in the search results for airplabe tickets. The window may contain any advertising or additional information. The example below contains a link to the Booking.com advertiser’s website with an affiliate link.
Preparing for the addition of an extension
At first, add the jquery library connection code to make everything work correctly. Open the White Label settings and go to the Footer section.
Add the following code in the code input box:
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous">
</script>
Please note! The jquery library connection code is only added once. If you add other White Label extensions, you do not need to re-insert the code.
Adding a pop-up window
The code, which is responsible for the pop-up, should be placed in the Footer of the White Label (comments are given in the code, for ease of change):
<!-- modal window -->
<div id="feedback-hotel" class="hidden">
<div class="js-feedback-hotel feedback-hotel">
<!-- semi-transparent background plane -->
<div class="js-feedback-hotel-overlay feedback-hotel__overlay"></div>
<!-- semi-transparent background plane -->
<!-- white window with content -->
<div class="feedback-hotel__popup">
<!-- cross button -->
<div class="js-feedback-hotel-close feedback-hotel__close"></div>
<!-- cross button -->
<!-- title -->
<div class="feedback-hotel__title">Bought a ticket - book a hotel room!</div>
<!-- title -->
<!-- description -->
<div class="feedback-hotel__description">Up to 60% discount for our customers only</div>
<!-- description -->
<div class="feedback-hotel__action">
<!-- booking button (link to booking.com from your affiliate account) -->
<a target="_blank" data-target="booking" class="feedback-hotel__action-button" href="https://c84."><span>Book a hotel room at</span></a>
<!-- booking button (link to booking.com from your affiliate account) -->
</div>
<!-- link to compare prices on White Label -->
<!-- replace http://travel link with your White Label -->
<div class="feedback-hotel__compare">Or <a target="_blank" data-target="hotellook" href="http://travel">compare prices on the website travel</a>
</div>
<!-- link to compare prices on White Label -->
</div>
<!-- white window with content -->
</div>
</div>
<!-- modal window -->
<script>
// Opening a modal window with a delay of 7 seconds after clicking on the "Book button ..."
setTimeout(function() {
$('.ticket-action-button-deeplink').on('click', function() {
$("#feedback-hotel").removeClass("hidden");
});
}, 7000);
// Opening a modal window with a delay of 7 seconds after clicking on the "Book button ..."
// Hiding the modal window after clicking outside the modal window
$('.js-feedback-hotel-overlay').on('click', function() {
$("#feedback-hotel").addClass("hidden");
});
// Hiding the modal window after clicking outside the modal window
// Hiding the modal window after clicking on the cross button
$('.js-feedback-hotel-close').on('click', function() {
$("#feedback-hotel").addClass("hidden");
});
// Hiding the modal window after clicking on the cross button
</script>
On the Color Scheme tab, you need to place the style code before the </style> tag:
/* Hiding form and buttons */
.hidden {
display: none;
}
.hidden-price {
display: none;
}
/* Hiding form and buttons */
/* Modal window background */
.feedback-hotel__overlay {
position: fixed;
top: 0;
left: 0;
z-index: 4999;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .5);
}
/* Modal window background */
/* Container for modal window */
.feedback-hotel__popup {
position: fixed;
background: #fff;
z-index: 5000;
left: 50%;
top: 50%;
margin-left: -255px;
margin-top: -189px;
width: 671px;
height: 378px;
border-radius: 5px;
box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.62);
padding: 0 52px;
text-align: center;
}
/* Container for modal window */
/* The graphical element "Hotel" at the top of the modal window */
.feedback-hotel__popup:before {
content: '';
display: block;
position: absolute;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFcCAMAAACOWpd4AAAAvVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////h8f////9Yt2l3en7y8/XW19r4aXzs7O7v8PL8/v/R6f/09feTlZnKPlP29/nu7/GNjpDy+f/9+v3x8fPw8PL25y75e4zf7v/4cYOAg4lhY2f5g5T8sb3q9f/5i5r8ucWDyZCY0qRiu3Lb796hpKm5vMGx3bnG5sxywoD5k6J2biUtAAAAFXRSTlMAP2Tf0J6vIQvtT8SIkHeEfnV/ensf1q/bAAAXxElEQVR4AezYR5K0MAyG4XG2iZOsJUuz5/53+3MO1LRQw4eZ9whPSajwA1YxqEYPnfOttcakNBPNKRljbetdN+hGhfgAEF5B6dG1id5Qat2oVXg3+1ZUelVuxVGreHW7J29oU8Y/XVQxNl07k0hz2zUXQ1SdJeFsp65yLrRPdJeS16F6vUdLd80+hor1XiztkH0JVeo9Wdot+1SbYeNp53xT0fCNiQ4ojaGO4WvpsNrTj2HUhg7N6Pi+u1fd5OBmgmh24ZR8BNTpCIObCKrpVIShnwiuqT8LYexngmzuT3GRdSLYkobnU5agswqaL3ja2lQ+tXwq/9byqfKpibbmA67f47xN7rvaesuyzXF+xN9eeTpRRqsgby8P7zc7hiIPEe8eN4aFlwViIZoGa/zczXh8PSFDBzSE6tbxW8PjI946hArFb+TpHW84QvCF9qbVXfJdW27a5Tbg/7nJXw3J72HSJ7oeDD224VluSbB8PhRCe+Aaq/Tm3c279+ZNTodd4wHicAgclOEQvuj504c2hT4CfP74fACENuzuZ/h8iIQmIJ6PkiEqeKdET8C3g3lNJr2f3zOfD5nweS+/Hn97eXvc7+Pn+OO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ElFTkSuQmCC) no-repeat;
background-size: 100%;
width: 160px;
height: 174px;
left: 0;
right: 0;
margin: auto;
top: -36px;
}
/* The graphical element "Hotel" at the top of the modal window */
/* Icon hiding the modal window */
.feedback-hotel__close {
cursor: pointer;
display: block;
width: 36px;
height: 36px;
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+Q2xvc2UgYnV0dG9uPC90aXRsZT48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0xOCAzNWM5LjM4OSAwIDE3LTcuNjExIDE3LTE3UzI3LjM4OSAxIDE4IDEgMSA4LjYxMSAxIDE4czcuNjExIDE3IDE3IDE3eiIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBkPSJNMTggMTYuODY5bDQuNTI1LTQuNTI2Yy40NTEtLjI2Mi44NzItLjI2IDEuMTMyIDAgLjI2LjI2LjI2Mi42OCAwIDEuMTMyTDE5LjEzIDE4bDQuNTI2IDQuNTI1Yy4zMDYuNDA0LjMwOC44MjQgMCAxLjEzMi0uMjA5LjIwOC0uNjI5LjIwNi0xLjEzMiAwTDE4IDE5LjEzbC00LjUyNSA0LjUyNmMtLjQ1MS4yNjItLjg3Mi4yNi0xLjEzMiAwLS4yNi0uMjYtLjI2Mi0uNjggMC0xLjEzMkwxNi44NyAxOGwtNC41MjYtNC41MjVjLS4yMDYtLjUwMy0uMjA4LS45MjMgMC0xLjEzMi4zMDgtLjMwOC43MjgtLjMwNiAxLjEzMiAwTDE4IDE2Ljg3eiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=) no-repeat 50%;
position: absolute;
right: -34px;
top: -34px;
}
/* Icon hiding the modal window */
/* Title text (Bought a ticket - book a hotel room!)*/
.feedback-hotel__title {
font-weight: 700;
font-size: 1.625rem;
margin-top: 146px;
line-height: 1.875rem;
}
/* Title text (Bought a ticket - book a hotel room!)*/
/* Description text (up to 60% discount for our customers only) */
.feedback-hotel__description {
font-size: 1rem;
line-height: 2.5rem;
}
/* Description text (up to 60% discount for our customers only) */
/* Container for booking.com button */
.feedback-hotel__action {
margin: 20px 0;
}
/* Container for booking.com button */
/* Common style for booking.com button */
.feedback-hotel__action-button {
font-size: .66938rem;
line-height: .875rem;
width: 275px;
height: 58px;
border-radius: 5px;
background: #143a90;
box-shadow: 0 1px 0 0 #051f5b, 0 2px 3px 0 rgba(0, 0, 0, .3);
text-transform: uppercase;
color: #fff;
position: relative;
display: block;
margin: auto;
}
/* Common style for booking.com button */
/* booking.com Logo inside the button */
.feedback-hotel__action-button:before {
content: '';
display: block;
position: absolute;
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEwIiBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMTEwIDE4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48dGl0bGU+UGFnZSAxPC90aXRsZT48ZGVmcz48cGF0aCBpZD0iYSIgZD0iTTE1LjI1NCAxMC4wNTlWLjAyMkguMDEyVjEwLjA2aDE1LjI0MnoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNDcuMSAxLjM2N2MuMTc3Ljg5NC0uNTI2IDEuODI3LTEuNDI1IDEuODkzLS44MzcuMTEyLTEuNjc3LS41NDgtMS43NjYtMS4zOTYtLjEyNC0uNzguMzk1LTEuNTkyIDEuMTUtMS43OTQuODg5LS4yOSAxLjkyMS4zNiAyLjA0MSAxLjI5N3pNMzMuMTguODJjLjU2Mi4wMDQgMS4xMjUtLjAwNiAxLjY4NyAwIC4zNjQuMDA3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MDA2LTMuNDIxIDAtNS4xMzMuMDAzVjIuMjAzIiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTcwLjc5MSAxMC43Yy45MjktLjI5IDEuOTgzLjQ1MyAyLjAzMyAxLjQzMi4wOTcuODYtLjU5IDEuNzA4LTEuNDUgMS43NjYtLjg0OC4xMDktMS42OS0uNTczLTEuNzYzLTEuNDMxLS4xMTEtLjc4LjQyLTEuNTggMS4xOC0xLjc2OCIgZmlsbD0iIzAwQURFRiIvPjwvZz48L3N2Zz4=) no-repeat;
left: 0;
right: 0;
margin: auto;
width: 110px;
height: 18px;
bottom: 10px;
}
/* booking.com Logo inside the button */
/* Description text of booking.com button */
.feedback-hotel__action-button span {
position: absolute;
top: 10px;
left: 0;
right: 0;
margin: auto;
}
/* Description text of booking.com button */
/* Container for modal window (with changes)*/
Inherited from div.feedback-hotel__popup
.feedback-hotel__popup {
position: fixed;
background: #fff;
z-index: 16;
left: 50%;
top: 50%;
margin-left: -255px;
margin-top: -189px;
width: 510px;
height: 378px;
border-radius: 5px;
box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.62);
padding: 0 80px;
text-align: center;
}
/* Container for modal window (with changes)*/
/* Container for compare button */
.feedback-hotel__compare {
font-size: .75rem;
line-height: 1.0625rem;
letter-spacing: .0125rem;
text-transform: uppercase;
}
/* Container for compare button */
/* Link to White Label */
.feedback-hotel__compare a {
color: #009eca;
}
/* Link to White Label */
How to automatically display an information block on the White Label website
The Travelpayouts White Label tool can display a block with any information, advertisement or image with a certain delay. This is an aggressive method, so use it carefully as to not cause a negative experience for your visitors.
Preparing for the addition of an extension
At first, add the jQuery library connection code to make everything work correctly. Open your White Label settings and go to the Sections tab.
Then add the following code to the Site footer block:
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous">
</script>
Please note! The jQuery library connection code is only added once. If you add other White Label extensions, you do not need to re-insert the code.
Adding an information block
Place the following code in the Site header section:
<div class="block-inform">
Some text
</div>
Add the following code to the Site footer section to start displaying the block:
<script>
window.onload = function() {
setTimeout(function() { $(".block-inform").show(500); }, 5000);
};
</script>
5000 in the setTimeout function means the time in milliseconds after which a pop-up window will appear once the White Label is opened.
Style setting
To change the style of the pop-up window, add a <style></style> tag to the Site footer block and place the following code inside the tag:
.block-inform {
position: fixed;
top: 20px;
right: 20px;
background: #000;
color: #fff;
padding: 30px;
display: none;
}
You can change the style as you like. If you lack knowledge of CSS, find a freelance developer who can help you.
Settings for social networks
White Label is blocked from search engines for web indexing. The only exception is the front page. This is why the pages with search results initially had identical titles, keywords, and description meta tags. However, this approach does not work well if one has to send a link to social networks.
We added the support of special parameters that can help you to create templates for meta tags.
How to add parameters
To add a parameter to meta tags, open White Label settings and go to the Metadata tab. Select the type of page for which you want to add a template. For example, let’s add meta tags to a hotel page.
Add the required meta tags and parameters to the field of code input field. Example of final code:
<title>[:origin_name:] - [:destination_name:], [:dates:] - Flights search</title>
<meta name="description" content="From [:origin_name:] to [:destination_name:], [:dates:], [:passengers:], [:flight_class:]"/>
<meta property="og:title" content="I found a cheap flight ticket!" />
<meta property="og:description" content="From [:origin_name:] to [:destination_name:], [:dates:], [:passengers:], [:flight_class:]" />
<meta content="en_US" property="og:locale">
<meta content="product.group" property="og:type">
<meta content="[:og_image:]" property="og:image">
<meta content="I found a cheap flight ticket!" name="twitter:title">
<meta content="From [:origin_name:] to [:destination_name:], [:dates:], [:passengers:], [:flight_class:]" name="twitter:description">
<meta content="summsummary_large_imageary" name="twitter:card">
The parameters are added via the structure of the following type [:hotel_country:]. See the description of the parameters below.
Please note, if you need meta tags to be displayed in different languages, add these languages to the general White Label settings. After that, add the code to the Meta tab to all language blocks.
What is displayed instead of the parameters
Two types of parameters are supported in White Label, for plane tickets and hotels. Instead of showing each parameter on the summary page we’ll show its value.
Note! You don’t need to change or substitute anything in these parameters. All values are loaded automatically, depending on the content of the page.
Plane tickets
- [:flight_class:] — Flight class
- [:passengers:] — The number of passengers
- [:origin_name:] — The departure city in the Nominative case, for example, ‘Moscow’
- [:origin_from:] — The departure city in the ‘from City’ format, for example, ‘from Moscow’
- [:destination_name:] — The destination city in the Nominative case
- [:destination_to:] — The destination city in the ‘to City’ format
- [:trip_type:] — The type of flight (one-way or two-way)
- [:og_image:] — The image of the destination city
- [:dates:] — Departure and return dates together
- [:depart_date:] — Departure date
- [:return_date:] — Return date
Hotels
- [:guests:] — The number of guests
- [:hotel_city:] — The name of the city where the hotel is located or the city of the search
- [:hotel_city_iata:] — IATA city code where the hotel is located or the city of the search
- [:hotel_county:] — The country where the hotel is located (the grammatical cases are supported according to the same principle as in the case of cities)
- [:hotel_county_iata:] — IATA country code where the hotel is located
- [:hotel_name:] — Hotel name
- [:check_in:] — Check-in date
- [:check_out:] — Check-out date
- [:dates:] — Check-in and check-out dates together
- [:og_image:] — The image of the hotel
How to add Google AdSense to White Label
This article describes how to place Google AdSense code in White Label flight search results.
Open your AdSense account and create an ad.
You’ll get a code like:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-0515363181603345"
data-ad-slot="8813803962"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Go to the White Label settings and place the following code in the Metadata section (select the Avia result page tab):
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=GOOGLE-DATA-AD-CLIENT"
crossorigin="anonymous"></script>
<ins class="adsbygoogle"
style="display:block; text-align: center;"
data-ad-client="GOOGLE-DATA-AD-CLIENT"
data-ad-slot="GOOGLE-DATA-AD-SLOT"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Replace GOOGLE-DATA-AD-CLIENT on the value of the data-ad-client attribute, and GOOGLE-DATA-AD-SLOT on the value of the data-ad-slot attribute from your ad code.
Go to the Sections tab and place this code into the Site footer block (before the last </div>):
<script>
setTimeout(function(){
var div = document.createElement("ins");
div.setAttribute('class', 'adsbygoogle');
div.setAttribute('data-ad-client', 'GOOGLE-DATA-AD-CLIENT');
div.setAttribute('data-ad-slot', 'GOOGLE-DATA-AD-SLOT');
document.getElementById('ad_top_container').appendChild(div);
var js = document.createElement("script");
js.setAttribute('src', 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');
js.setAttribute('async', '');
document.head.appendChild(js);
setTimeout(function(){
(adsbygoogle = window.adsbygoogle || []).push({});
}, 1000);
}, 3000);
</script>
Save the changes. Now the Google AdSense ad will appear in the search results.
Links to the White Label with a completed search form
When working with White Label, you can create a link to the search form with already filled-in fields. Such links are convenient because users do not need to spend time filling out the form; they can go straight to booking.
To create such a link:
1. Take the address of your White Label and add /flights/ to it: AddressOfYourWhiteLabel/flights/
2. Add the parameters from the table below to the address. Please note that the first parameter is added to the address using the "?" question mark character, and all the others using the "&" character.
For example, take the address of your White Label and add to it /flights/?Origin_iata=BCN&destination_iata=LAX. When clicking through the link, the user enters to the search form with the filled-in points of departure and destination.
Parameters
Name | Description | Default value |
origin_iata | Departure city. Recommended values: "IATA code for city". | MOW |
destination_iata | Arrival city. Recommended values: "IATA code for city". | LED |
depart_date | Departure date. Recommended format: "Y-m-d" ("yy-mm-dd" for JQuery). | - |
return_date | Return date. Recommended format: "Y-m-d" ("yy-mm-dd" for JQuery). | - |
oneway | “One way only” check box, equal to 1 or 0. | 0 |
adults | Number of adults (over 12 years old) | 1 |
children | Number of children (2 to 12 years old) | 0 |
infants | Number of infants (0 to 2 years old) | 0 |
trip_class | Ticket class (Economy: 0, Business: 1) | 0 |
currency | Currency of search result (RUB, USD, EUR, UAH, CNY, KZT, AZN, BYN, THB, KGS, UZS) | USD |
with_request | Initiate search automatically (true: the search is loaded, false: the form is filled out but the search does not start) | false |
marker | Your partner ID | - |
Note:
-
adults/children/infants – number of adults, children, and infants – numbers.
Up to nine seat-occupying passengers (adults + children) can be added in a single query. Infants travel without their own seats and are carried by adults. The number of infants cannot exceed the number of adults. If the number of infants is larger than the number of adults, the excess number of infants is counted as children (with their own seats).
How to make a calendar open by default
To automatically expand the Low Fare Calendar in search results, open your White Label settings and go to the Sections tab.
At the bottom of the code block Site footer, place the following code:
<script>
setTimeout(function() {
TP_DISPATCHER.send('calendar_toggle')
document.querySelector('[role="calendar_line--wrapper"]').classList.add('calendar_line--hide')
}, 5000);
</script>
As a result, the calendar automatically opens in 5 seconds after the start of the search:
How to implement a White Label in Wordpress
If you don't know what the White Label is, please check the article What is White Label by Travelpayouts.
Set up the White Label on Hosting
To implement a White Label in WordPress, set up a White Label on the subdomain.
Create the White Label and set up WordPress
Then install the plugin for WordPress to your website and paste the White Label name in the settings:
After that, when users search or click on the widget or table data, they will see the search result on your White Label.
Error with SSL on White Label (Cloudflare)
If you receive a security warning in the browser using the HTTPS protocol with White Label, this can be caused by one of the following reasons:
- After the creation of the White Label passed less than 48 hours and the certificate didn’t update. Just wait a bit and check again by following the link of the form https:// your_white_label_name.
- On the site, you have links that lead to unprotected resources. For example, you posted the logo or a banner with a link to the image with http, not https. To fix this, change the link to the protected one.
- The cause may be the settings of the Cloudflare service, which many use to optimize the site. To resolve this situation, go to the Cloudflare settings in the Crypto section and select Full support for the SSL certificate.