Set up conversion measurement for hotel and Performance Max for travel goals campaigns

Conversion measurement can help you understand how effectively your ad clicks lead to valuable customer activity on your website, such as bookings.

After you set up conversions for hotel or Performance Max for travel goals campaign reporting, Google will send the booked hotel data to you to turn on campaign performance tracking. This will allow you to monitor your hotel data and overall campaign performance.

Google tag implementation

Follow the three steps below to implement Google Ads conversion measurement for Hotel ads and Performance Max for travel goals ads:

This shows you how to set up Google Ads Hotel conversion tracking manually or using Google Tag Manager.

Step 1: Create Google tag and event tag

Note:

  • The conversion category must be set to 'Purchase' to be used for Smart Bidding campaigns (ECPC, tROAS).

  • Google only supports the last-click attribution model for Hotel campaigns.

  • If you’re already using the Google tag conversion measurement code, go to Step 2.

  1. In your Google Ads account, click the Goals icon Goals icon.
  2. Click the Conversions drop-down in the section menu.
  3. Click Summary.
  4. Click on + New conversion action.
  5. Select the conversion that you would like to track and follow the instructions in the widget. Learn how to Set up conversion measurement for your website.
    • If you're planning to track hotel bookings from your website, make sure to select the following :
      • Category: Purchase/Sale
      • Value: Use different values and default value > 0$
      • Count: Every conversion
      • Attribution model: Last click
  6. Finalise the tag setup by clicking on the Done.

Step 2: Install Google tag and event tag

To implement Google Ads Hotel conversion measurement, you have two options:

Option 1: Direct implementation in the website’s HTML/AMP

Option 2: Instructions for Google Tag Manager

For conversion measurement to work, you'll need to install the conversion measurement tag, which consists of a Google tag and an event snippet. If installing the tag with Google Tag Manager, follow the instructions for Option 2: Google Tag Manager.

Option 1: Instructions for direct implementation (HTML/AMP)

This shows how to set up Google Ads Hotel conversion tracking in your website's HTML/AMP.

HTML Pages

  1. Install the Google tag on every page of your hotel website. Note that this includes every page of the booking flow, which might be hosted by a third-party booking engine. In that case, ensure that the booking engine is installing the tag on every page, including the confirmation page.
    1. Open the HTML for each page.
    2. Choose from the following options:
      • If you haven't installed the Google tag on your website, copy the Google tag and paste it between the head tags (<head></head>).
        Example:

        <script async
        src="https://googletagmanager.com/gtag/js?id=TAG_ID"></script>

        <script>

        window.dataLayer = window.dataLayer || [];

        function gtag(){dataLayer.push(arguments);}

        gtag('js', new Date());

        gtag('config', 'TAG_ID');

        </script>

        Review the guidelines on setting up the Google tag.
        • If you installed the Google tag on your website from another Google product (example: Google Analytics) or from another Google Ads account, copy the 'config' command below and add it to every instance of the Google tag, right above the </script> end tag.

          gtag ('config', 'AW-GOOGLE_CONVERSION_ID');
        • If you or a manager account already installed the Google tag on your website while setting up the tag for another conversion action, make sure that the tag is on every page of your website and check that the 'config' command has your Google Ads account's conversion ID.
    3. Save the changes to your web pages.
  2. Install the event snippet on the conversion page. This is the page that your customers reach on your website after they've completed a conversion – the 'Thank you for your booking' page, for example. Note that the booking conversion page might be hosted by your booking engine and would require the third party to implement the steps below:
    1. Open the HTML for the conversion page.
    2. Copy the snippet below and paste it between the head tags (<head></head>) of the page, right after the Google tag.
      Example:
      <!-- Event snippet for Hotel Booking conversion page --> <script>

      gtag('event', 'conversion', {'send_to': 'AW-CONVERSION_ID/AW-CONVERSION_LABEL',

      'value': 1.0,

      'currency': 'GBP'

      });

      </script>

    3. Add code to dynamically pass a value to the transaction_id parameter. When tracking purchases, sales or leads on your website, this parameter ensures that each conversion is only counted once.
    4. Add code to dynamically pass values to the value and currency parameters. This allows you to track conversions with transaction-specific values, such as the revenue from a sale.
    5. Save the changes to your web page.

AMP pages

You should follow these instructions for any of the pages built using the AMP framework:

  1. Install the Google tag on every page of your website.
    1. Open the HTML for each page.
    2. Choose from the following options:
      • If you haven't installed the Google tag on your website, choose the corresponding option in your Google Ads account and add the two tags:
        1. Copy the respective tag and paste it between the head tags (<head></head>), before the AMP JS library.
          Example:
          <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
        2. Copy the second tag and paste it between the body tags (<body></body>) of all of your AMP pages.
          Example:
          <!-- Google tag (gtag) - Google Ads: 813068219 --> <amp-analytics type="gtag" data-credentials="include"> <script type="application/json"> { "vars": { "gtag_id": "AW-813068219", "config": { "AW-813068219": { "groups": "default" } } }, "triggers": { } } </script> </amp-analytics>
        3. View more guidelines on setting up the Google tag.
      • If you installed the Google tag on your website from another Google product (example: Google Analytics) or from another Google Ads account, choose the corresponding option in your Google Ads account, then copy the respective line and include it in the 'config' section of every instance of the Google tag.
        Example:
        "AW-813068219": { "groups": "default" }
      • If you or a manager account already installed the Google tag on your website while setting up the tag for another conversion action, make sure that the tag is on every page of your website and check that the 'config' section has your Google Ads account's conversion ID. Example: AW-813068219.
    3. Save the changes to your web pages.
  2. Install the event snippet on the conversion page. This is the page that your customers reach on your website after they've completed a conversion – the 'Thank you for your order' page, for example.
    1. Open the HTML for the conversion page.
    2. Copy the snippet from your Google Ads account and paste it into the 'triggers' section of the Google tag.
      Example:
      "C_7c-ug1nyyfk": { "on": "visible", "vars": { "event_name": "conversion", "value": 200.0, "currency": "USD", "transaction_id": "", "send_to": ["AW-813068219/_XirCILNzJkDELvf2YMD"] } }
    3. Add code to dynamically pass a value to the transaction_id parameter. When tracking purchases, sales or leads on your website, this parameter ensures that each conversion is only counted once.
    4. Add code to dynamically pass values to the value and currency parameters. This allows you to track conversions with transaction-specific values, such as the revenue from a sale.
    5. Save the changes to your web page.

Learn how to Add a Google tag to your website.

Option 2: Instructions for Google Tag Manager

This shows the steps to set up Google Ads hotel conversion tracking with Google Tag Manager.

If you're using Google Tag Manager, you can implement the gtag.js for Hotel ads following the steps:

  1. Create the tag in your Google Ads account.
  2. Use Conversion ID and Conversion label to configure the tag in Google Tag Manager.
  3. Add a Conversion Linker tag.
  4. Place the tag on all pages, including the conversion page.
  5. Modify the tag with your preferred parameters.
After you have created the tags in your Google Ads account, use the custom HTML tagging option to add the relevant variables (View Step 3: Modify the event tag hotel parameters). We don't recommend using the Google Ads template because it doesn't support all variables for Hotel campaign reporting.

The Google tag snippet should be set to run on all pages, including the confirmation pages, and the event snippet should run on the confirmation pages only.

Lastly, for optimal web browser compatibility, we suggest that a conversion linker is turned on.

Find further information about Google Tag Manager, but make sure that you take hotel-specific instructions into consideration.

Step 3: Modify the event tag hotel parameters

Starting 30 April 2024, commissions (per stay) and commissions (per conversions) bid strategies will no longer be available for new Hotel Ads campaigns.

Active Hotel ads campaigns with commissions-based bid strategies will continue to serve until 20 February 2025. Review commission-based bid strategies in Hotel ads to sunset to learn more about your next steps.

To submit conversion measurement information, install these additional parameters into the code:
Parameter Value type Example value Description Required – Yes/No
‘value’ Float 16.20

Replace ‘value’ with the amount that the user will pay. You can use either the base price or total price. Use a "." for decimal numbers. For example, '16.20'.

Note: The value will be used for Smart Bidding bid strategies.

Yes
‘currency’ String ‘GBP’

Replace ‘currency’ with an ISO 4217 three-letter currency code representing the currency where the booking was made.

The currency code applies to the ‘value’ variable.

Yes
'transaction_id' String 'HA12345'

Replace ‘transaction_id’ with a booking reference number or order ID to your conversion measurement tag to help avoid counting duplicate conversions.

Note: Order IDs won't be reported in Google Ads.

No (Recommended)
‘id’ String ‘1234’ Replace ‘id’ with the property ID of the hotel that you want to record conversion data for. This ID must match the ID in your hotel list. No
'start_date' String '2020-12-13' Replace ‘start_date’ with the check-in date. Format dates as DD-MM-YYYY. No
'end_date' String '2020-12-13' Replace ‘end_date’ with the check-out date. Format dates as DD-MM-YYYY. No
Note: The only conversion variables available in your campaign reports are ‘value’ and ‘currency’. You can't view ‘transaction_id’, ‘id’, ‘start_date’ or ‘end_date’ values.

Examples of the Google tag configured (Important)

Check the syntax below carefully against your tag implementation. Make sure that you’re using the ‘item’ array to include the hotel parameters (for example, ‘id’, ‘start_date’ and ‘end_date’).

Place the Google tag on all pages, including the confirmation page above the event snippet.

After the Google tag is updated:

<!-- Google Tag (gtag.js) - Google Ads -->

<script async src="https://googletagmanager.com/gtag/js?id=AW-GOOGLE_CONVERSION_ID"></script>

<script> window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'AW-GOOGLE_CONVERSION_ID');
</script>
Then place the event snippet on the confirmation page.

After global event snippet is updated:

<script>

gtag('event', 'purchase', {

'send_to': [

'AW-GOOGLE_CONVERSION_ID/GOOGLE_CONVERSION_LABEL'

'transaction_id': 'BOOKING_ID',

'value': PRICE,

'currency': 'CURRENCY',

'items': [{

'id': 'PARTNER_HOTEL_ID',

'start_date': 'CHECK_IN_DATE',

'end_date': 'CHECK_OUT_DATE'

}]

});

</script>

What happens if you’re missing hotel conversion parameters?

Note: This isn't applicable for Performance Max for travel goals campaigns.

Hotel parameters provide valuable insight into your individual bookings, such as the booked hotel ID and stay dates. They’re also used by Google to better optimise your ad performance and provide more detailed reporting. If you’re using commission (per stay) bidding for your Hotel campaign, these parameters are also used for billing. When the data isn’t available with your Google Ads conversion data, we use your default conversion settings for the conversion 'value' and 'currency' along with the click-time parameters for the stay dates ('start_date' and 'end_date') and hotel ID ('id'). In this case, if your click-time check-in date occurs before the conversion date, we’ll default your check-in date to your conversion date.

Measure conversions for multiple accounts

If you need to count the same event as a conversion for multiple Google Ads accounts, you can pass multiple conversion ID strings via the 'send_to' parameter of the conversion event snippet.

Alternatively, you should consider using cross-account conversion measurement which allows you to have a manager account (MCC) own the conversion actions and share them with one or more of its sub-accounts. You only need to specify a single conversion identifier in the event snippet. Learn more About cross-account conversion measurement. Ensure auto-tagging is turned on.

Note: When you create a new conversion action, auto-tagging will be activated automatically if you’re not already using cross-account conversion measurement. If you're using cross-account conversion measurement, you’ll need to turn on auto-tagging in each of your sub-accounts manually according to the steps above.

Example of Google tag

Example Google tag:

<!-- Google Tag (gtag.js)& →

<script async src="https://googletagmanager.com/gtag/js?id=AW-GOOGLE_CONVERSION_ID_1"></script>

<script> window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments)};

gtag('js', new Date());

gtag('config', 'AW-GOOGLE_CONVERSION_ID_1');

gtag('config', 'AW-GOOGLE_CONVERSION_ID_2');

</script>

Turn on auto-tagging

Auto-tagging must be turned on to ensure that you can properly track conversions. Find instructions to set up auto-tagging for your account.

Test your conversion measurement tag

If you want to create a test order, follow these steps to check if the parameters are being passed:

Debugging with Chrome Developer Tools

  1. Open a new tab in Chrome.
  2. Click the 3-dot icon in the upper right corner of the browser window, and then select More Tools > Developer Tools.
    • If you don't notice the Chrome menu, you can open 'Developer Tools' by pressing:
      • Ctrl + Shift + i (in Windows)
      • Command + Shift + i (on a Mac)
  3. Click the Network tab.
  4. Leave the developer tools window open.
  5. Navigate to the page that contains the conversion measurement tag.
  6. Look for the request: googleadservices.com.
  7. Examine the components of the conversion measurement request to verify that it matches your account and conversion name.

All conversion measurement requests begin with the same URL structure:

googleadservices.com/pagead/conversion/

The full request will look similar to this:

http://googleadservices.com/pagead/conversion/123456789/

?

random=1309518235472
&cv=6
&fst=1309518235472
&num=1
&fmt=2
&value=0
&label=AAAAAAAAAAAAAAAAAAA
&bg=ffffff
&hl=it
&guid=ON
&u_ h=1200
&u_w=1920
&u_ah=1174&
u_aw=1920
&u_cd=24
&u_his=2
&u_tz=60
&u_
java=true
&u_nplug=19
&u_nmime=97
&url=http%3A//example.com/conversion-page.html

The number after googleadservices.com/pagead/conversion/ should match your conversion ID, and the characters after &label= should match your conversion label. If they don't, this tag is most likely tied to a different conversion action.

To fix this, you may need to generate a new conversion tag for this conversion action and place it on your site, or check with anyone else who has access to your website code to confirm if they've installed a conversion measurement tag for a different conversion action.

Bear in mind

If you switch to cross-account conversion measurement, any conversion actions set up in your managed accounts will stop tracking conversions for new clicks, regardless of the status of your tag. The conversion action will, within its own window, continue to track conversions for the clicks that happened before you made the switch. When you opt in to cross-account conversion measurement, you can only track conversions in the manager account.

Security and privacy for website tracking

Google's security standards are strict. Only pages containing the Google conversion tag are tracked through this programme using data encryption and secure servers.

Ensure you're providing users with clear and comprehensive information about the data you collect on your websites, and get consent for collections when legally required.

Note: If you haven't obtained users’ consent for the collection, sharing and use of personal data for personalisation of ads when legally required, be sure to disable the collection of remarketing data by modifying the Google tag for specific users. Learn more About the Google tag.

Mobile app conversion measurement

You can use mobile app conversions to track app installs and in-app actions. Similar to website conversions for Hotel campaigns, you must turn on auto-tagging and set the conversion type to 'Purchase' in your conversion settings to be used for Smart Bidding.

You need to subsequently send the relevant hotel parameters, like check-in or checkout dates and hotel ID, via Firebase or third-party SDK to begin tracking mobile app conversions.

Set up mobile app conversion measurement with Firebase

Firebase is Google's mobile platform that’s made to help you build better mobile apps and grow your business. To complete mobile app conversion measurement set up for Hotel campaigns, you may send the required hotel parameters via the Firebase Analytics API.

Firebase parameter Value type Description Example
FirebaseAnalytics.Param.VALUE Float

Replace this parameter with the amount that the user will pay. You can use either the base price or the total price. Use a '.' for decimal numbers (for example, '16.20').

Note: The value will be used for Smart Bidding bid strategies.

Bundle params = new Bundle();

params.putDouble(Param.VALUE, 150.00);

params.putString(Param.CURRENCY, 'GBP' ); // e.g. £150.00 GBP

FirebaseAnalytics.Param.CURRENCY String

Replace this parameter with an ISO 4217 three-letter currency code representing the currency used during booking.

The currency code applies to the VALUE variable.

Bundle params = new Bundle();

params.putString(Param.CURRENCY, 'GBP');

FirebaseAnalytics.Param.TRANSACTION_ID String

Replace this parameter with a booking reference number or order ID to your conversion measurement tag to help avoid counting duplicate conversions.

Note: Order IDs won't be reported in Google Ads.

Bundle params = new Bundle();

params.putString(Param.TRANSACTION_ID, 'HA12345');

FirebaseAnalytics.Param.ITEM_ID String Replace this parameter with the property ID of the hotel that you want to record conversion data for. This ID must match the ID in your Hotel List Feed.

Bundle params = new Bundle();

params.putString(Param.ITEM_ID, '1234');

FirebaseAnalytics.Param.START_DATE String Replace this parameter with the check-in date. Format dates as DD-MM-YYYY.

Bundle params = new Bundle();

params.putString(Param.START_DATE, '2022-09-10');

FirebaseAnalytics.Param.END_DATE String Replace this parameter with the check-out date. Format dates as DD-MM-YYYY.

Bundle params = new Bundle();

params.putString(Param.END_DATE, "2022-09-14");

Set up mobile app conversion measurement with a third-party SDK

To help you make informed marketing decisions about your app, Google Ads works with many third-party app analytics providers to support the Google Dynamic remarketing for apps scheme.

If you use one of these third-party app analytics providers, link your third-party app analytics provider to Google Ads to turn on your data segment creation. Work with your third-party app analytics representative to set up their app’s SDK, and create the 'Purchase' conversion type.

After completion, implement mobile app conversion measurement for Hotel campaigns by sending the required hotel parameters using the app_event_data JSON object as a part of the Conversion measurement request. Acceptable values are strings and array of strings.

The following parameters should be added to app_event_data:

  • start_date (in YYYY-MM-DD format)
  • end_date (in YYYY-MM-DD format)
  • item_id
  • transaction_id

The following parameters should be added at the conversion level:

  • value
  • currency_code

Learn more About mobile app conversion measurement.

Was this helpful?

How can we improve it?
true
Reach your marketing goals with Google Ads

Google Ads can help you make the most of your online marketing efforts with tools to help you succeed. Learn more from success stories to see what others have achieved with the help of the right campaigns for their goals.

Get started

or call +1 (855) 500 2754 to get started

Search
Clear search
Close search
Google apps
Main menu
38681888447161531
true
Search Help Centre
true
true
true
true
true
73067
false
false
false