Skip to main content

1. Understanding GTM Container ID in Lunacal

A GTM Container ID looks like:GTM-XXXXXXXX lunacal requires this ID to load your GTM container and trigger your tags.
You can set this ID at multiple levels depending on your tracking needs:

(A) Account-level (User Profile)

  • This is the default container for your personal events.
  • It loads on all booking pages unless overridden by a specific container set for your Event Types.

(B) Team-level

  • Each team can have its own GTM Container ID.
  • When added here, It loads on all team events, it didn’t overrides the account-level ID.

Installing GTM

  • Go-to: Integrations > Analytics
  • Find Google Tag Manager (GTM).
  • Click Connect.
Step 1

Step 2: Choose Installation Scope

When you click Connect, you will see: Option A – Connect GTM for your Account
  • This makes GTM available for all event types in your workspace.
Option B – Connect GTM for a specific Team
  • Choose this if you only want GTM for selected teams. Select your preferred option and continue.
Step2

Step 3: Enter Your GTM Container ID

  • After selecting Account or Team, you will see an input box.
  • Enter your GTM container ID (example: GTM-XXXXX123).
  • Click Save.
step3 GTM is now installed. The GTM ID you enter here becomes the default ID shown inside event types (when you enable GTM for them).

2. Enabling GTM for Individual Event Types

Installing GTM does not automatically enable it for all event types.
You must activate GTM for each event type you want to track.
  • Go to Event Types
  • Click the gear ⚙️ icon.
  • Click Edit.
step4
  • Go to Integrations Section.
  • You will see a GTM toggle in off state.
  • To Enable GTM Turn ON the GTM toggle
step 5 You will see the same GTM ID you entered during installation (auto-filled) Click SAVE That’s it — GTM is now active for this event type. You can repeat these same steps for your team events.

3. Datalayer Events Triggered by Lunacal

When GTM is enabled for an event type, lunacal automatically fires these datalayer events on booking interactions:
Event NameFires When…Suggested GTM Trigger Category
navigatedToCalendarUser lands on the calendar viewCustom Event
navigatedToTeamUser views team booking optionsCustom Event
navigatedToUserUser views a specific user/host profileCustom Event
eventSelectedUser clicks to select a specific event typeCustom Event
memberSelectedIn a team booking, user selects a team memberCustom Event
Event NameFires When…Example GTM Use Case
timeSlotSelectedUser clicks an available time slotFunnel step in GA4
bookingRequestedUser submits booking request (before final confirmation)Track partial conversions
bookingFailedBooking fails due to conflict/validationConversion abort tracking
paymentSuccessfullUser completes payment (if booking is paid)Purchase conversion
couponAppliedCoupon/discount code successfully appliedPromo effectiveness analytics
bookingSuccessfullBooking fully completed (alternate or older naming)Conversion tracking
bookingSuccessfullV2Updated booking success event (improved schema)Use for enriched payload
rescheduleBookingSuccessfullBooking was rescheduled successfullyConversion path analysis
rescheduleBookingSuccessfullV2New version of reschedule success eventNew schema tracking