Added telemetry collection (through jitsu.com)

- Introduced useTelemetry() hook
 - Telemetry events are sent for page_view, booking_confirmed, time_selected, date_selected events
 - Telemetry is configured (and can be disabled) with NEXT_PUBLIC_TELEMETRY_KEY env variable
This commit is contained in:
vklimontovich committed 2021-04-27 17:19:12 +03:00
1 parent 18d1974ae0
commit 2894be8689
8 files changed
+100 -6

No files matched your search

+4 -1
View File
@@ -1,7 +1,10 @@
DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'
DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>/<db-name>'
GOOGLE_API_CREDENTIALS='secret'
NEXTAUTH_URL='http://localhost:3000'
# Remove this var if you don't want Calendso to collect anonymous usage
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r
# Used for the Office 365 / Outlook.com Calendar integration
MS_GRAPH_CLIENT_ID=
MS_GRAPH_CLIENT_SECRET=