add google tag

This commit is contained in:
2025-04-18 21:57:05 -03:00
parent 920f3aec25
commit e8405923b8
6 changed files with 73 additions and 32 deletions

View File

@@ -24,6 +24,18 @@ import '@fontsource/roboto'
<head>
<meta charset="UTF-8" />
<Head {...props} />
<!-- Google tag (gtag.js) -->
<script type="text/partytown" src="https://www.googletagmanager.com/gtag/js?id=G-GSTQ17E9DJ"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || []
window.gtag = function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'G-GSTQ17E9DJ')
</script>
<!-- End Google tag (gtag.js) -->
</head>
<body>
@@ -57,5 +69,12 @@ import '@fontsource/roboto'
&copy; {year} EDUSEG&reg; Todos os direitos reservados. CNPJ15.608.435/0001-90
</Container>
</footer>
<style is:global>
/* https://css-tricks.com/almanac/properties/c/content-visibility/ */
img {
content-visibility: auto;
}
</style>
</body>
</html>