Google Analytics and Other Web Tracking Products

Modified on: Wed, 11 Jan, 2023 at 12:37 PM


You can use two types of tracking codes for Google Analytics and other web tracking products – static and dynamic ones.

Static Tracking Codes

Static codes do not change, do not contain dynamic information such as a booking amount or transaction identification. Clients can use their own tracking codes (from their own Google Analytics accounts or another web tracking product). It is very easy to to set this static tracking code in the WRS:

  • In the navigation bar, click 'Web' and select 'Settings' – 'Web Reservation System'
  • Go to the Google Analytics section
  • In this section, paste the tracking code from your Google Analytics account or another web tracking software
  • Click 'Save'
The customer (hotel) is responsible for checking the PCI DSS Compliance of the developer of the java script inserted into the WRS.

Dynamic Tracking Codes

Dynamic Parameters

The tracking code can contain variables/parameters. The system will replace the parameter with a corresponding value. This way the final tracking script can contain data about arrivals, booking and amount.

All parameter should be placed between double curly brackets: {{parameter}}

{{page_name}}Name of the WRS page
{{today}}Today's date
{{arrival}}Arrival Date. Not present on the first page. Minimum of arrival dates if multiple arrivals are booked.
{{departure}}Departure Date. Not present on the first page. Maximum of departure dates if multiple departures are booked.
{{stay}}Stay. Not present on the first page.
{{first_name}}First name of the guest. Not present on the first page.
{{last_name}}Last name of the guest. Not present on the first page.
{{e_mail}}Email of the guest. Not present on the first page.
{{has_availability}}If the search finds available products the parameter is 'true', else it is 'false'. Present only on product (second) page.
{{lead_days}}Lead Days. The Difference between Today and Arrival date. Not present on the first page.
{{booking_price}}Total price of the selected rooms.
{{booking_price_currency}}The currency of the booking price.
{{booking_number}}List of booking numbers. Presented on the final page only.
{{booked_rooms}}How many rooms are booked. Presented on the final page only.

Custom Dynamic Tracking Codes

Besides static tracking codes and standard GA ecommerce tracking codes, you can also use custom dynamic ones. In order to use custom dynamic tracking codes, please get in touch with the Clock Software team to have them set up (a paid service). Also you need to prepare and send us:

  • Exact source of the tracking codes
  • What data exactly and in which places to replace it
  • On which pages we should place the tracking code
Tracker, Widget or other scripts may require PCI DSS Attestation to be sent, before including custom java scripts in the WRS.

Analytics - Referal traffic from Third-party payment processors / Cross-subdomain tracking

How excluding referral traffic affects your data

Full article ...

By default, a referral automatically triggers a new session. When you exclude a referral source, traffic that arrives to your site from the excluded domain doesn’t trigger a new session. If you want traffic arriving from a specific site to trigger a new session, don't include that domain in this table.

Because each referral triggers a new session, excluding referrals (or not excluding referrals) affects how sessions are calculated in your account. The same interaction can be counted as either one or two sessions, based on how you treat referrals. For example, a user on goes to, and then returns to If you do not exclude as a referring domain, two sessions are counted, one for each arrival at If, however, you exclude referrals from, the second arrival to does not trigger a new session, and only one session is counted.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

On this page