add scropts

This commit is contained in:
2025-04-18 22:14:57 -03:00
parent e8405923b8
commit 0b2935cafc
3 changed files with 377 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ export default defineConfig({
react(),
partytown({
config: {
forward: ['dataLayer.push'],
forward: ['dataLayer.push', 'fbq'],
},
}),
],

File diff suppressed because one or more lines are too long

View File

@@ -24,6 +24,7 @@ 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">
@@ -36,6 +37,14 @@ import '@fontsource/roboto'
gtag('config', 'G-GSTQ17E9DJ')
</script>
<!-- End Google tag (gtag.js) -->
<!-- Facebook Pixel Code -->
<script type="text/partytown" src="/fbevents.js"></script>
<script type="text/partytown">
fbq('init', '1668701220059147')
fbq('track', 'PageView')
</script>
<!-- End Facebook Pixel Code -->
</head>
<body>