mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Configure Partytown for Google Analytics 4
This commit is contained in:
parent
beb2e23e8e
commit
59963d4906
1 changed files with 7 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ import tailwind from '@astrojs/tailwind'
|
|||
// https://github.com/withastro/astro/tree/main/packages/integrations/netlify
|
||||
import netlify from '@astrojs/netlify/functions'
|
||||
// import sitemap from '@astrojs/sitemap'
|
||||
import partytown from '@astrojs/partytown'
|
||||
|
||||
|
||||
// import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
|
||||
|
||||
|
|
@ -33,6 +35,11 @@ export default defineConfig({
|
|||
// 'https://doesitarm.com/absolute-url',
|
||||
// ]
|
||||
// })
|
||||
partytown({
|
||||
// Add dataLayer.push as a forwarding-event.
|
||||
// https://github.com/withastro/astro/tree/main/packages/integrations/partytown#configforward
|
||||
config: { forward: [ 'dataLayer.push' ] },
|
||||
}),
|
||||
],
|
||||
// Vite options
|
||||
// https://docs.astro.build/en/reference/configuration-reference/#vite
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue