Skip to main content

Google Analytics Integration

Connect your organization's Google Analytics properties to Zeeg to track engagements with your Zeeg pages.

C
Written by Caroline Berger

You can connect your Google Analytics (GA) properties to Zeeg to track how invitees engage with your organization's Zeeg pages for all your users and teams.

Zeeg will send details about all your visitor’s actions to Google Analytics when an invitee

  • opens any of your organization's Zeeg pages

  • visits a scheduling page

  • selects a date

  • selects a time

  • clicks a social link on a profile page

  • schedules a meeting

To add Google Analytics to your Zeeg pages, you must have a Business subscription. Learn about Zeeg pricing here.


Zeeg supports Google Analytics 4 (GA4)

Property type

Tracking code

Format

Google Analytics 4

Measurement ID

G-xxxxxxxxxx

Google has stopped supporting Universal Analytics properties since July 1, 2023.


How to add Google Analytics tracking code to Zeeg

Adding your Google Analytics 4 (GA4) Measurement ID

  1. In your Google Analytics Admin page, find your property's Measurement ID (see how to do that here)

  2. Now, go to Zeeg and find Google Analytics under Integrations on Settings.

  3. After you click on it, enter your Measurement ID here, and click on Save.

Track events and conversions

When you have integrated the Google Analytics tracking code, Zeeg will track all events for your Zeeg organization and reports the visitor actions as an event to Google Analytics.

When an invitee...

The event will show on Google Analytics as...

Opens any Zeeg page (profile page, scheduling page, confirmation or cancellation page)

invitee_zeeg_page

Visits a scheduling page

invitee_scheduling_page

Selects a date

invitee_selected_date

Selects a time

invitee_selected_time

Gets the only available time selected automatically

invitee_auto_selected_slot

Clicks a social link on a profile page

invitee_clicked_link

Schedules a meeting

invitee_scheduled_meeting

Note that Google Analytics can take up to 24 hours to update event reports, but you can see live events in real-time. Consult Google’s GA4 Realtime to learn more about it.

Track source, medium, and campaign with UTM parameters.

By appending any of the UTM parameters to your Zeeg links, like:

zeeg.me/your_page?utm_source=twitter&utm_medium=social&utm_campaign=DemoDay

you can track

  • where the visitor is coming from, e.g. twitter (utm_source)

  • how the traffic is getting to you, e.g. social (utm_medium)

  • which campaign the traffic was generated by, e.g. DemoDay (utm_campaign)


Cookie consent and embedded scheduling pages

When Google Analytics is connected, your Zeeg pages show their own cookie banner. Google Analytics only loads after the visitor accepts it.

If you embed a scheduling page on a website that already has its own cookie banner, you can switch Zeeg's banner off: add data-no-consent="1" to the embed script tag, or noConsent: true to the JavaScript config. Google Analytics then loads as soon as the embed opens, so set up your website's cookie banner to load the embed only after the visitor has consented to statistics cookies. Zeeg can't receive the individual choices from your banner, such as Google Consent Mode.

Track bookings on your own website

Inside an embed, the Google Analytics cookies are third-party cookies, and some browsers, Safari in particular, block them. For ad attribution, for example with Google Ads, we recommend tracking on your website itself.

The embedded scheduling page sends a browser message (window.postMessage) to your website at each step. The message's event field holds the step's name with a zeeg. prefix:

  • zeeg.invitee_scheduling_page: the scheduling page opens

  • zeeg.invitee_selected_date: the invitee selects a date

  • zeeg.invitee_selected_time: the invitee selects a time

  • zeeg.invitee_scheduled_meeting: the invitee schedules a meeting

  • zeeg.booking_confirmed: the confirmation page opens

These messages are sent whatever the visitor chose in Zeeg's cookie banner, so you decide what to track under your own banner. Listen for them on your website, check that they come from https://zeeg.me, and push them into your Google Tag Manager data layer:

window.addEventListener('message', (e) => {
  if (e.origin !== 'https://zeeg.me') return;
  const name = e.data && e.data.event;
  if (typeof name === 'string' && name.startsWith('zeeg.')) {
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({ event: name });
  }
});

In Google Tag Manager, you can then use an event such as zeeg.invitee_scheduled_meeting as the trigger for your Google Ads conversion tag.

Did this answer your question?