CLASSROOMIO-T-216: remove hotjar, add sentry session replay
This commit is contained in:
@@ -43,9 +43,6 @@
|
|||||||
-->
|
-->
|
||||||
<script src="https://cdn.plyr.io/3.7.3/plyr.js"></script>
|
<script src="https://cdn.plyr.io/3.7.3/plyr.js"></script>
|
||||||
|
|
||||||
<script async src="https://analytics.umami.is/script.js"
|
|
||||||
data-website-id="d71efe55-fc41-4a4f-ae19-23f96fb76f66"></script>
|
|
||||||
|
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,6 @@
|
|||||||
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';
|
||||||
|
|
||||||
@@ -64,10 +63,12 @@
|
|||||||
new Sentry.Replay()
|
new Sentry.Replay()
|
||||||
],
|
],
|
||||||
environment: !dev ? 'production' : 'development',
|
environment: !dev ? 'production' : 'development',
|
||||||
// Set tracesSampleRate to 1.0 to capture 100%
|
// This sets the sample rate to be 10%. You may want this to be 100% while
|
||||||
// of transactions for performance monitoring.
|
// in development and sample at a lower rate in production
|
||||||
// We recommend adjusting this value in production
|
replaysSessionSampleRate: 0.5,
|
||||||
tracesSampleRate: 0.5
|
// If the entire session is not sampled, use the below sample rate to sample
|
||||||
|
// sessions when an error occurs.
|
||||||
|
replaysOnErrorSampleRate: 1.0
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -281,10 +282,6 @@
|
|||||||
|
|
||||||
<Snackbar />
|
<Snackbar />
|
||||||
|
|
||||||
{#if !dev}
|
|
||||||
<Hotjar />
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#if data.skipAuth}
|
{#if data.skipAuth}
|
||||||
<PlayQuiz />
|
<PlayQuiz />
|
||||||
{:else if data.isOrgSite && !path}
|
{:else if data.isOrgSite && !path}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
addGroupMember(member).then((addedMember) => {
|
addGroupMember(member).then((addedMember) => {
|
||||||
loading = false;
|
loading = false;
|
||||||
if (addedMember.error) {
|
if (addedMember.error) {
|
||||||
console.error('Error adding student to group', data.groupId);
|
console.error('Error adding student to group', data.groupId, addedMember.error);
|
||||||
snackbar.error('Joining failed, please contact your admin');
|
snackbar.error('Joining failed, please contact your admin');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user