add scropts
This commit is contained in:
@@ -12,7 +12,7 @@ export default defineConfig({
|
||||
react(),
|
||||
partytown({
|
||||
config: {
|
||||
forward: ['dataLayer.push'],
|
||||
forward: ['dataLayer.push', 'fbq'],
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
367
superpage/public/fbevents.js
Normal file
367
superpage/public/fbevents.js
Normal file
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user