This commit is contained in:
Nawaz Dhandala
2026-02-09 14:28:11 +00:00
3 changed files with 21 additions and 0 deletions

View File

@@ -330,6 +330,7 @@ const RegisterPage: () => JSX.Element = () => {
if (value && value.email) {
UiAnalytics.userAuth(value.email);
UiAnalytics.capture("accounts/register");
UiAnalytics.capture("sign_up");
}
LoginUtil.login({

View File

@@ -191,6 +191,17 @@
layout: "month_view"
});
Cal("ui", { "styles": { "branding": { "brandColor": "#4f46e5" } }, "hideEventTypeDetails": false, "layout": "month_view" });
// GA4: Track demo page view as key event
if (typeof dataLayer !== 'undefined') {
dataLayer.push({
'event': 'page_view_demo',
'eventCategory': 'page_view',
'eventAction': 'page_view_demo',
'eventLabel': window.location.pathname
});
}
Cal("on", {
action: "bookingSuccessful",
callback: (e) => {

View File

@@ -1665,6 +1665,15 @@
</div>
<script>
// GA4: Track pricing page view as key event
if (typeof dataLayer !== 'undefined') {
dataLayer.push({
'event': 'page_view_pricing',
'eventCategory': 'page_view',
'eventAction': 'page_view_pricing',
'eventLabel': window.location.pathname
});
}
function switchToYearlyBilling() {
document.getElementById("yearly-billing-btn").classList = "relative w-1/2 whitespace-nowrap rounded-md border-gray-200 bg-white py-2 text-sm font-medium text-gray-900 shadow-sm focus:z-10 focus:outline-none focus:ring-2 focus:ring-gray-500 sm:w-auto sm:px-8"