Skip to content

Commit

Permalink
Remove partytown
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanalemunioz committed Nov 22, 2024
1 parent bc897ad commit 0989a7b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 40 deletions.
8 changes: 1 addition & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import simpleStackForm from "simple-stack-form";
import { defineConfig } from "astro/config";
import partytown from '@astrojs/partytown'

// https://astro.build/config
export default defineConfig({
Expand All @@ -26,12 +25,7 @@ export default defineConfig({
applyBaseStyles: false,
}),
db(),
simpleStackForm(),
partytown({
config: {
forward: ["dataLayer.push"],
},
}),
simpleStackForm()
],
output: "static",
markdown: {
Expand Down
29 changes: 0 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"dependencies": {
"@astrojs/db": "^0.8.6",
"@astrojs/mdx": "^2.2.0",
"@astrojs/partytown": "^2.0.4",
"@astrojs/react": "^3.1.0",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.1",
Expand Down
5 changes: 2 additions & 3 deletions src/components/layout/base-head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ setDarkMode();
document.addEventListener("astro:after-swap", setDarkMode);
</script>


<!-- Google tag (gtag.js) -->
<script type="text/partytown" async src="https://www.googletagmanager.com/gtag/js?id=G-GHNJM0PE77"></script>
<script type="text/partytown" >
<script is:inline type="text/javascript" async src="https://www.googletagmanager.com/gtag/js?id=G-GHNJM0PE77"></script>
<script is:inline type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
Expand Down

0 comments on commit 0989a7b

Please sign in to comment.