To be able to view the conversion rate of clicks coming from trivago in trivago Intelligence, it's highly recommended to integrate our trivago Conversion API (link to the documentation). In this page you will find all the necessary instructions to integrate our Conversion Pixel, which is currently deprecated.
Advertisers need to integrate a simple
<img> tag into advertiser's booking confirmation page. The image returned is a 1x1 png image with a white background.
<img height="1" width="1" style="border-style:none;" alt="" src="https://secde.trivago.com/page_check.php?pagetype=track&ref=12345&hotel=HOTEL537&arrival=1524566908&departure=1524739708¤cy=USD&volume=150.70&booking_id=AC500&margin=14.5"/>
To ensure a correct tracking, the
<img> tag has to be integrated within the body tag in the HTML code of the booking confirmation page the user is redirected to once the booking has been completed. The Pixel should only be initiated if the user had a click-through via trivago within the last 30 days.
As shown in the example above the
src attribute contains the Pixel URL. The protocol can be "http" or "https". Most booking pages use "https". The base URL is "https://secde.trivago.com/page_check.php?" followed by a list of parameters separated by "&". Each parameter consists of a name and a value separated by "=". The parameters are case-sensitive.
||Mandatory tracking parameter (always the same).||string||track||true|
||trivago Advertiser ID, as defined and communicated to the advertiser by trivago (always the same value for each advertiser).||integer||12345||true|
||The advertiser's unique hotel ID. Must be identical to the IDs used in the inventory feed||string||HOTEL537||true|
||Arrival date||UNIX timestamp||1524566908||true|
||Departure date||UNIX timestamp||1524739708||true|
&date_format=Y-m-d (don’t integrate it as &date_format=YYYYMMDD)
||Total booking price per stay (including all rooms, all nights, all taxes).||number||150.70||true|
||Currency in ISO 4217 code.||string||USD||true|
||Contains the trivago POS from which the visitor was linked through to the advertiser's site. Format is always the 2-letter top level domain of that country.||string||US||false|
||The advertiser's booking reference.
For tEB, must be same as the reservation_id from the booking_submit response.
||Percentage which is received from the booking amount of the hotel as commission for the booking (in this sample case 15.8%).||number||15.8||false|
||Source parameter identifying transaction as tEB booking (always the same).||text||tebadv||true
if booking coming via tEB
||Only for special cases and only if confirmed with trivago.||integer||1||false|
Let's assume that the
advertiser_id is 1232. For a booking for the property with
hotel "MUC1345“ on trivago.de, from 24th to 25th of April 2018 for 250.50 EUR, the advertiser receives a margin of 14.5% on this hotel.
Booking the advertiser's hotel with
hotel "MUC1345“ from 20th to 26th of June 2018 for USD 240.00 and
booking_id “book123”. Additionally, the Y-m-d date format is used.