code

  1. Within Google Tag Manager, create a new trigger.
    – The trigger type should be “Custom Event”.
    – You can title this trigger “Scheduling Pro Booking events” or something similar.
    – Name the event “^Booking.*$”
    – The “Use regex matching” setting should be enabled.
    – Ensure that the trigger fires on custom events.
  2. Next, create a new tagin GTM.
    – The tag type should be “Google Analytics: GA4 Event”.
    – For Event Name, use “{{Event}}”.
    – Under Event Parameters>Event Settings Variable, add a new variable titled “{{ServiceTitan Booking}}”.
    – Map this tag to the “Scheduling Pro Booking events” trigger that we created in step one.
  3. Ensure that this tag is published/added to the page you’re looking to test.
    4. Use the Realtime view in Reports in GA4 to view event intake while testing in the scheduler on your test page.