IF-HOTEL-CAMPAIGN is a conditional parameter added to the hotel landing page template to help you identify the source of an ad click. You’ll be able to isolate the URL parameters, exclusively for hotel campaigns, to only show up when the click is from a hotel campaign. This will provide transparency on where attribution is assigned on a campaign type that is not a hotel campaign.
Before you begin
If you’re not familiar with tracking in Google Ads or ValueTrack parameters, review the following:
How IF-HOTEL-CAMPAIGN works
You can construct a conditional block that checks if the user clicked an ad that originated from a hotel campaign or a different campaign.
The following example uses this directive in a landing page file:
Example:
<URL>
<URL>https://partner.com?hotelID=(PARTNER-HOTEL-ID)(IF-HOTEL-CAMPAIGN)&hotel_campaign=(CAMPAIGN-ID)(ELSE)utm_campaign=(CAMPAIGN-ID)(ENDIF)</URL></URL>
In this example, if the end-user clicks on a hotel campaign ad, the result is the following URL:
https://partner.com?hotelID=123&hotel_campaign=12345678
If the click is not on a hotel campaign ad, the result is the following URL:
https://partner.com?hotelID=123&utm_campaign=87654321
Instructions
To add individual landing pages directly through Hotel Center:
- Log in to your Hotel Center account.
- On the navigation menu, click Landing pages.
- From the landing page view, click the List tab, and then click the New landing page button.
- Select the landing page that matches the criteria needed to prefer or block user types from landing on this new page.
- Create your new landing page URL using the provided Google variables. If your production website already has a landing page URL, you can use that and substitute the listed variables for the associated values. Learn more about using variables and conditions
- Create a unique ID and display name for the new landing page. The display name will be displayed in ads based on the language specified.
- In the URL section, click the Test button. Google will test and validate the URL against test itineraries to confirm that the landing page is functioning correctly.
- Click Publish to confirm your changes.
To add a new landing page using XML:
- Log in to your Hotel Center account.
- On the navigation menu, click Landing pages.
- On the landing page view, click the Upload tab.
- Upload your landing page XML file using the recommended syntax. Learn more about landing pages
- Click Submit.
- Click Publish to confirm your changes.