With Hotel Ads, you can track how accurately your prices submitted on Google match the prices on your website. This information will help you show your most updated pricing information to people who are looking to book your hotel.
Note: You must meet the minimum price accuracy threshold to show your information on Google.
How it works
Hotel Ads price accuracy tracking can be activated by placing an HTML code snippet on your landing page. The landing page is the page that your customers see when they click a booking link on a Hotel ad. Using the snippet, Hotel Ads tracks price information on your website and measures its accuracy against the prices you’ve submitted in your price transaction messages. If you have multiple booking sites (or points of sale), you need to add snippets to landing pages for each booking site, including mobile and desktop versions.
Install the snippet
Follow the steps below to test and add the code snippet on your landing page(s).
Step 1: Build the code snippet in HTML
- Copy the following code snippet into a local HTML file:
<!-- Google Code for Hotels Price Accuracy Tracking --> <div style="display:done;"> <img height="1" width="1" style="border-style:none;" alt="" src="https://www.googletraveladservices.com/travel/clk/pagead/ conversion/PARTNER_ID? label=FH &guid=ON &script=0 &ord=RANDOM_VALUE &price=partner_id%3DPARTNER_ID%3B base_price_value_string%3DBASE_PRICE%3B tax_price_value_string%3DTAX_PRICE%3B total_price_value_string%3DTOTAL_PRICE%3B display_price_value_string%3DDISPLAY_PRICE%3B display_price_description_string%3DDISPLAY_PRICE_DESCRIPTION%3B"/> </div> <!-- End Google Code for Hotels Price Accuracy Tracking -->
- Replace PARTNER_ID with your unique partner ID in the following two locations:
- PARTNER_ID in the image’s source URL path
- The value of the
partner_idparameter in the
- Use your website markup to generate dynamic values for the following variables in the
Partner’s hotel ID
Base price of the hotel, preceded by the three-letter currency code, for example USD5432.34 (Do not include any commas in the price)
Total amount of taxes for the hotel, preceded by the three-letter currency code, for example USD5432.42 (Do not include any commas in the price)
Total price (all inclusive) of the entire stay preceded by the three-letter currency code, for example USD5432.34 (Do not include any commas in the price)
Total price displayed to the user. The value must be preceded by the three-letter currency code, for example USD5432.34 (Do not include any commas in the price)
Description of what’s included in the display price. Use only one of the values below:
- “UNKNOWN” – Partner is not sure what costs are included (no value is treated as “UNKNOWN”)
- "BASE_PRICE" – Base price, without any taxes/fees
- "ALL_INCLUSIVE "– The total price, including all taxes and fees
Where in the booking funnel a user landed on the partner site:
- “HOTEL_SELECTION ”– User can choose another hotel, even if primary hotel is pinned
- “ROOM_SELECTION ”– User can choose a room from the hotel displayed on the page
- “RATE_SELECTION” – User is choosing a rate (e.g. AAA, non-refundable) for one hotel
- “BOOKING” – User has selected the hotel and room, and can continue to book
- “OTHER” – (default value) For partners whose landing page selection doesn’t match one of the previous options
Downstream partner providing price. Used in the case where the landing partner may not be the final booking provider.
Format: string (max 50 chars)
Number of adults reported on the page
Number of children reported on the page
Key value for room data (package/bundle), if passed in
Partner's rate plan ID, if passed in
Room type info, if reported
First night of stay
Length of stay in nights
Note: Do not include line breaks in the
<img>tag, otherwise the image will not render correctly.
- To avoid cache issues, generate a random number for the
ordvalue in the image’s
- Add the completed code snippet to a test version of your landing page. This is where a user lands after clicking a Hotel Search result.
Step 2: Test the code snippet in your test environment
To test the code snippet, follow the instructions below:
- Send an HTTP GET request to the test page where you placed your HTML snippet.
- Review results in the Google Chrome browser network inspector:
- Perform a test booking from your landing page using the Google Chrome browser. Don't press the final confirmation button.
- Run the final booking step to see the GET request, including values sent to Google. Make sure the page does not load any errors.
- Confirm the following key issues:
- Values are sent as intended
- Your partner ID is in two locations in the message:
- URL path
- Value of the
partner_idparameter in the
- All variables are replaced with test values
Step 3: Schedule a final test
Coordinate a final booking test time and date with your Technical Account Manager (TAM). Once you’ve scheduled a final booking test, do the following:
- Deploy your code snippet to a controlled environment in your production system.
- Run a test booking as a final check.
Step 4: Push your code snippet live
Publish the code snippet to your production environment. The following example shows a complete code snippet with sample values:
<div style="display:none;"> <img height="1" width="1" style="border-style:none;" alt="" src="https://www.googletraveladservices.com/travel/clk/pagead /conversion/PARTNER_ID/ ?label=FH &guid=ON &script=0 &ord=123456789 &price=partner_id%3DPARTNER_ID%3B base_price_value_string%3DUSD123.45%3B tax_price_value_string%3DUSD12.34%3B total_price_value_string%3DUSD135.79%3B display_price_value_string%3DUSD123.45%3B display_price_description_string%3BASE_PRICE%3B"/> </div>