Skip to main content

Updating your Google Analytics tracking events for the new booking system

with the update to the new booking experience we have made updates to the URL's on events. This in turn, makes old Google Analytic custom events already created defunct. Users must update their GA custom events to the new URL format.

TryBooking's new booking experience uses new page URLs. If you set up Google Analytics tracking events for the previous booking system, they'll stop recording data as your events move across. To keep your tracking going, create a new set of events using the details below.

Leave your existing events in place for now – they'll keep recording any bookings still made through the previous booking pages. Once those pages are no longer in use, the old events will stop receiving data and you can delete them.

This article focuses on updating your tracking events. For the full guide to connecting Google Analytics with your TryBooking events, see Track page views and sales with Google Analytics.

Create your new tracking events

  1. Log in to Google Analytics and open the property you use for TryBooking.

  2. Click Admin in the bottom left corner.

  3. Under Data collection and modification, click Data Streams, then select your web data stream.

  4. Under Events, click Create custom events, then click the Create button.

  5. Set up each event in the table below, copying the names and values exactly as shown.

Every event uses the same first matching condition:

event_name · equals · page_view

Then add the extra condition shown for each event:

What it tracks

Custom event name

Extra matching condition

Event page views

tb_view_event

page_location · regex match · /au/event/\d+$

Ticket selection

tb_view_tickets

page_location · contains · /tickets

Checkout

tb_view_checkout

page_location · ends with · /event/review, and page_location · does not contain · /confirmation

Completed bookings

tb_view_confirmation

page_location · contains · /event/review/confirmation

Optional, depending on how your event is set up:

What it tracks

Custom event name

Extra matching condition

Section selection

tb_view_sections

page_location · ends with · /sections

Session selection

tb_view_sessions

page_location · ends with · /session

Data collection forms

tb_view_data_collection

page_location · ends with · /custom-forms

Running events on trybooking.com/nz or trybooking.com/uk? Replace /au/ with /nz/ or /uk/ in the first pattern.

If any of your old events are marked as key events (conversions), mark your new events as key events too.

Delete your old tracking events

Once all your events have moved to the new booking system, your old tracking events (such as event_landing_page and event_checkout_confirmation) will stop receiving data. When that happens you can, follow steps 2 to 4 above, select each old event and click the delete icon. Your past reports won't be affected.

Did this answer your question?