From 1f0efb9aa4ee570987b548dfa01ff6f3b549e8dd Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Fri, 28 Jan 2022 13:16:40 +0000 Subject: [PATCH] Revert "renamed booking_confirmed to booking_attempted, needs reintroduction of booking_confirmed on API layer when email confirmations are being sent, needs renaming on postgres too (#1639)" (#1640) This reverts commit e8ecab645698a13d198b7b05d1588bbc611b594e. --- components/booking/pages/BookingPage.tsx | 2 +- lib/telemetry.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/booking/pages/BookingPage.tsx b/components/booking/pages/BookingPage.tsx index 80d409f786..1980a6b28f 100644 --- a/components/booking/pages/BookingPage.tsx +++ b/components/booking/pages/BookingPage.tsx @@ -211,7 +211,7 @@ const BookingPage = (props: BookingPageProps) => { const bookEvent = (booking: BookingFormValues) => { telemetry.withJitsu((jitsu) => - jitsu.track(telemetryEventTypes.bookingAttempted, collectPageParameters()) + jitsu.track(telemetryEventTypes.bookingConfirmed, collectPageParameters()) ); // "metadata" is a reserved key to allow for connecting external users without relying on the email address. diff --git a/lib/telemetry.ts b/lib/telemetry.ts index 70e3841c68..9f2cd6433a 100644 --- a/lib/telemetry.ts +++ b/lib/telemetry.ts @@ -7,7 +7,6 @@ import React, { useContext } from "react"; */ export const telemetryEventTypes = { pageView: "page_view", - bookingAttempted: "booking_attempted", bookingConfirmed: "booking_confirmed", bookingCancelled: "booking_cancelled", importSubmitted: "import_submitted",