From 3919d87486385745e6a9e0066d9e28f7b48e220f Mon Sep 17 00:00:00 2001 From: zomars Date: Thu, 2 Jun 2022 11:53:02 -0600 Subject: [PATCH] Adds license to telemetry --- .env.example | 4 ++-- apps/web/lib/telemetry.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 35bf46c622..c502690bb2 100644 --- a/.env.example +++ b/.env.example @@ -15,7 +15,8 @@ # - You can not repackage or sell the codebase # - Acquire a commercial license to remove these terms by visiting: cal.com/sales NEXT_PUBLIC_LICENSE_CONSENT='' -# To enable enterprise-only features, fill your license key in here +# To enable enterprise-only features, fill your license key in here. +# @see https://console.cal.com CALCOM_LICENSE_KEY= # *********************************************************************************************************** @@ -76,7 +77,6 @@ NEXT_PUBLIC_HELPSCOUT_KEY= # Inbox to send user feedback SEND_FEEDBACK_EMAIL= - # This is used so we can bypass emails in auth flows for E2E testing # Set it to "1" if you need to run E2E tests locally NEXT_PUBLIC_IS_E2E= diff --git a/apps/web/lib/telemetry.ts b/apps/web/lib/telemetry.ts index fa34320b43..4c7b0ac170 100644 --- a/apps/web/lib/telemetry.ts +++ b/apps/web/lib/telemetry.ts @@ -76,6 +76,7 @@ export const extendEventData = ( queryString: "", page_url: pageUrl, licenseConsent: !!process.env.NEXT_PUBLIC_LICENSE_CONSENT, + licensekey: process.env.CALCOM_LICENSE_KEY, isTeamBooking: original?.isTeamBooking === undefined ? pageUrl?.includes("team/") || undefined