-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
62 lines (54 loc) · 1.65 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<script setup>
const nuxtApp = useNuxtApp()
nuxtApp.hook("page:finish", () => {
window.scrollTo(0, 0); // emphasize scroll to top on route change
})
useState('userType', () => 'organization') // setting visitor as organization user
const { host } = useRequestURL();
if (host?.includes('edujobs.org')) {
useHead([
{
children: `window.$crisp=[];window.CRISP_WEBSITE_ID="9294fd27-8592-41bf-a6c9-ec44aa6d0905";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();`,
type: "text/javascript",
}
])
}
useHead({
script: [
{
src: 'https://www.googletagmanager.com/gtag/js?id=G-6S59LVT28G',
async: true,
},
{
children: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-6S59LVT28G');
`,
},
{
children: `
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:1582803,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>
<template>
<Html lang="en-US">
<Body
class="bg-gray-25 text-gray-900 antialiased transition-colors duration-300"
>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</Body>
</Html>
</template>