Skip to content

Commit

Permalink
fix: partytown 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
cbcruk committed Dec 4, 2024
1 parent edcd464 commit ee52435
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import react from '@astrojs/react'
import partytown from '@astrojs/partytown'

// https://astro.build/config
export default defineConfig({
Expand All @@ -17,11 +16,6 @@ export default defineConfig({
plugins: [['babel-plugin-react-compiler']],
},
}),
partytown({
config: {
forward: ['dataLayer.push'],
},
}),
],
markdown: {
shikiConfig: {
Expand Down
4 changes: 1 addition & 3 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ const { title, description, image } = Astro.props

<!-- Analytics -->
<script
type="text/partytown"
async
src={`https://www.googletagmanager.com/gtag/js?id=${GA_TRACKING_ID}`}
></script>
<script
type="text/partytown"
set:html={`
window.dataLayer = window.dataLayer || [];
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${GA_TRACKING_ID}');
Expand Down

0 comments on commit ee52435

Please sign in to comment.