Learn about special parameters to create templates for meta tags.
White Label is blocked to 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 that you would like to add a template for. For example, let’s add meta tags to a hotel page.
Add the required meta tags and parameters to the field of code input. 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