CLASSROOMIO-T-202: Enable hotjar on prod

This commit is contained in:
Rotimi Best
2023-10-03 18:37:29 +01:00
parent d3bda61904
commit 8cb70091fa
2 changed files with 24 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<svelte:head>
<!-- Hotjar Tracking Code for https://classroomio.com -->
<!-- Hotjar Tracking Code for https://classroomio.com -->
<script>
(function (h, o, t, j, a, r) {
h.hj =
h.hj ||
function () {
(h.hj.q = h.hj.q || []).push(arguments);
};
h._hjSettings = { hjid: 3679523, hjsv: 6 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script');
r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
</script>
</svelte:head>
+5
View File
@@ -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 @@
<Snackbar />
{#if !dev}
<Hotjar />
{/if}
{#if data.skipAuth}
<PlayQuiz />
{:else if data.isOrgSite && !path}