Skip to main content
All CollectionsGetting More From Bookwhen
Setting up Conversions/Key Events in Google Analytics 4 to track successful bookings
Setting up Conversions/Key Events in Google Analytics 4 to track successful bookings

How to set up custom conversion events to track your booking performance

Gemma avatar
Written by Gemma
Updated over 2 weeks ago

This article covers:



Creating a Google Analytics 4 Custom Event

To create a Google Analytics 4 custom event:

  1. Log in to your Google Analytics account and go to the admin settings page (select the cog at the bottom left of the navigation).

  2. Ensure that you are in the right property and select Events under the Data display column:

    Google analytics settings with 'Events' highlighted

  3. Select Create event:

    Google analytics page with 'Create event' highlighted

  4. Then Create:

    Google analytics page with the 'Create' button highlighted

    You will then need to do the following within the configuration window:

  5. Under Custom event name, name this "bookwhen_checkout"

    Custom event name field on google analytics

  6. Within Matching conditions, the first condition needs to be the following:

    Matching conditions section of google analytics
    • Under the Parameter field, add "event_name"

    • Under the Operator field, select "equals"

    • Under the Value field, add "page_view"

  7. Select Add condition.

  8. Within the second condition, please add the following:

    Paramater, operator and value fields within google analytics

    • Under the Parameter field, add "page_location"

    • Under the Operator field, select "ends with"

    • Under the Value field, add "/summary"

  9. Select the Save button.

    Google analytics screen with arrow pointing at the 'Create' button

The next step after this is to set your event as a key event (formerly conversion).


Setting a Google Analytics 4 Custom Key Event

After you have created your custom event, you will need to set this as a key event. It is important that you use the same naming convention you used for your custom event.

To do this:

  1. Go back to your admin settings page (the cog in the bottom left of the navigation)

  2. Select Key events under the Data display column (using the same property where you created your event):

    Google analytics settings with 'key events' highlighted

  3. Select New key event:

    Key events page with the 'New key event' button highlighted

  4. In the New event name field, use the same name used when setting up your event and then Save. In this example, it should be "bookwhen_checkout":

    Create key event screen showing the 'New event name' field

  5. Ensure that the toggle for "Mark as conversion" is switched on:

    Key events page with the 'Mark as key event' toggle highlighted

    • It will then take Google up to 24 hours for this to start appearing in your reports.

💡 Learn more in the Google Help Center about Events and Key Events (formerly Conversions).


Analysing your Key Events

Once your events and key events are set up and tracked, you can start analysing where your bookings are coming from.

  1. Go to Reports:

    • In GA4, navigate to the Reports section, then select Acquisition > Traffic acquisition.

  2. View Source/Medium:

    • This report will display the source and medium (e.g., Google/organic, Direct/none) of your website visitors. You’ll be able to see how many visitors triggered the “Booking Confirmed” key event.

    • You can also customise your reports to filter for specific key events.


GA4 and iFrames on Bookwhen

If your booking page is embedded in an iframe, please note that Google Analytics 4 (GA4) may not track events accurately due to potential issues with cookie consent and third-party cookies within iframes. This could lead to incomplete conversion tracking or multiple consent prompts being shown to users.

Because of these limitations, we (Bookwhen) do not include Google Analytics in iframes, meaning conversions might not be tracked correctly.


💬 Any questions or feedback? There are two ways to get in touch:

Thank you! 🕺

Did this answer your question?