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

+5
View File
@@ -160,6 +160,11 @@
resolved "https://registry.npmjs.org/@heroicons/react/-/react-1.0.1.tgz"
integrity sha512-uikw2gKCmqnvjVxitecWfFLMOKyL9BTFcU4VM3hHj9OMwpkCr5Ke+MRMyY2/aQVmsYs4VTq7NCFX05MYwAHi3g==
"@jitsu/sdk-js@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@jitsu/sdk-js/-/sdk-js-2.0.0.tgz#01ef96c602b3b2aa1e1a4bf87e868f7a5bfe3b35"
integrity sha512-+IQLEbzrIpuXKmP2bLbD7eAdF1WaEcZ2eaSMl6AAwcE0BEFctjNG8QhQYWsMgb+KahNKFz1ARll3aJegkqgrew==
"@next/[email protected]":
version "10.0.8"
resolved "https://registry.npmjs.org/@next/env/-/env-10.0.8.tgz"