White Label settings for social networks
Important!

This setting is only available for White Labels with the "Page" type. If you’re using “Widget” type, you can’t apply this setting.

Learn more about the difference between White Label Web types here.

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.

social-network.jpg

How to add parameters

1. Open White Label Web settings in your Travelpayouts account. 

2. Open the Custom HTML code tab.

3. Find the following code:

<meta property="og:title" content="Search Flight" />
   <meta property="og:description" content="We search hundreds of travel sites at once to find the cheapest flights for you." />
   <meta content="en_US" property="og:locale">
   <meta content="product.item" property="og:type">
   <meta content="[:og_image:]" property="og:image">
   <meta content="Search Cheap Flights and Hotels" name="twitter:title">
   <meta content="We search hundreds of travel sites at once to find the cheapest flights for you." name="twitter:description">
   <meta content="summary_large_image" name="twitter:card">
    <title>Search Flights[:route_info:]</title>

4. Change the text to match your needs, for example:

<meta property="og:title" content="I found a cheap ticket!" />
<meta property="og:description" content="Flight [:origin_from:] [:destination_to:], [:dates:], [:passengers:], [:flight_class:]" />
<meta content="en_US" property="og:locale">
<meta content="product.item" property="og:type">
<meta content="[:og_image:]" property="https://website.com/logo.png">
<meta content="The cheapest ticket ever!" name="twitter:title">
<meta content="Flight [:origin_from:] [:destination_to:], [:dates:], [:passengers:], [:flight_class:]" name="twitter:description">
<meta content="summsummary_large_imageary" name="twitter:card">

5. Save changes.

Note! If you need the preview to appear in different languages, make sure to add those languages on the Content tab and make the needed changes to the code for each of them.

How parameters work

On the final page, each parameter is automatically replaced with the corresponding value you've defined in the code.

Important: You don’t need to manually change or insert anything into these parameters — values are loaded automatically based on the page content.

List of parameters:

  • [:flight_class:] — flight class
  • [:passengers:] — number of passengers
  • [:origin_name:] — departure city in the nominative case (e.g., "Moscow")
  • [:origin_from:] — departure city in the "from" form (e.g., "from Moscow")
  • [:destination_name:] — destination city in the nominative case
  • [:destination_to:] — destination city in the "to" form (e.g., "to Berlin")
  • [:trip_type:] — trip type (one-way or round-trip)
  • [:og_image:] — destination city image
  • [:dates:] — departure and return dates combined
  • [:depart_date:] — departure date
  • [:return_date:] — return date