From 8cb70091faab6c6547b4def28534a6b6381fe479 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Tue, 3 Oct 2023 18:37:29 +0100 Subject: [PATCH] CLASSROOMIO-T-202: Enable hotjar on prod --- src/lib/components/Hotjar/index.svelte | 19 +++++++++++++++++++ src/routes/+layout.svelte | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 src/lib/components/Hotjar/index.svelte diff --git a/src/lib/components/Hotjar/index.svelte b/src/lib/components/Hotjar/index.svelte new file mode 100644 index 00000000..d55bdd40 --- /dev/null +++ b/src/lib/components/Hotjar/index.svelte @@ -0,0 +1,19 @@ + + + + + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4f0992cb..6620d889 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -38,6 +38,7 @@ import hideNavByRoute from '$lib/utils/functions/routes/hideNavByRoute'; import shouldRedirectOnAuth from '$lib/utils/functions/routes/shouldRedirectOnAuth'; import AddOrgModal from '$lib/components/Org/AddOrgModal/AddOrgModal.svelte'; + import Hotjar from '$lib/components/Hotjar/index.svelte'; import '../app.postcss'; @@ -280,6 +281,10 @@ +{#if !dev} + +{/if} + {#if data.skipAuth} {:else if data.isOrgSite && !path}