CLASSROOMIO-T-202: Enable hotjar on prod
This commit is contained in:
@@ -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>
|
||||||
@@ -38,6 +38,7 @@
|
|||||||
import hideNavByRoute from '$lib/utils/functions/routes/hideNavByRoute';
|
import hideNavByRoute from '$lib/utils/functions/routes/hideNavByRoute';
|
||||||
import shouldRedirectOnAuth from '$lib/utils/functions/routes/shouldRedirectOnAuth';
|
import shouldRedirectOnAuth from '$lib/utils/functions/routes/shouldRedirectOnAuth';
|
||||||
import AddOrgModal from '$lib/components/Org/AddOrgModal/AddOrgModal.svelte';
|
import AddOrgModal from '$lib/components/Org/AddOrgModal/AddOrgModal.svelte';
|
||||||
|
import Hotjar from '$lib/components/Hotjar/index.svelte';
|
||||||
|
|
||||||
import '../app.postcss';
|
import '../app.postcss';
|
||||||
|
|
||||||
@@ -280,6 +281,10 @@
|
|||||||
|
|
||||||
<Snackbar />
|
<Snackbar />
|
||||||
|
|
||||||
|
{#if !dev}
|
||||||
|
<Hotjar />
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if data.skipAuth}
|
{#if data.skipAuth}
|
||||||
<PlayQuiz />
|
<PlayQuiz />
|
||||||
{:else if data.isOrgSite && !path}
|
{:else if data.isOrgSite && !path}
|
||||||
|
|||||||
Reference in New Issue
Block a user