Skip to content

Commit 563f98a

Browse files
authored
chore: remove Plausible (#539)
1 parent dbb2e26 commit 563f98a

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/layouts/Layout.astro

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export interface Props {
2929
ogImageAlt?: string
3030
link?: object[]
3131
structuredData?: object[]
32-
is404?: boolean
3332
}
3433
3534
const {
@@ -41,7 +40,6 @@ const {
4140
ogImageAlt,
4241
link = [],
4342
structuredData = [],
44-
is404 = false
4543
} = Astro.props
4644
4745
const canonicalUrl = new URL(Astro.url.pathname, Astro.site).toString()
@@ -134,16 +132,6 @@ import "../styles/global.css"
134132
/>
135133
<Icons />
136134
<script is:inline set:html={themeToggleInitScript}></script>
137-
<script defer data-domain="ddev.com" src="https://plausible.io/js/script.js"
138-
></script>
139-
{
140-
is404 && (
141-
<script is:inline>
142-
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }
143-
</script>
144-
<script is:inline>plausible("404",{ props: { path: document.location.pathname } });</script>
145-
)
146-
}
147135
<StructuredData data={jsonLd} />
148136
</head>
149137
<body class="dark:bg-slate-800">

src/pages/404.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PostBody from "../components/PostBody.astro"
55
const title = `404`
66
---
77

8-
<Layout title={title} noindex={true} is404={true}>
8+
<Layout title={title} noindex={true}>
99
<main class="max-w-4xl mx-auto mb-24 px-6 lg:px-0">
1010
<h1 class="font-mono text-5xl my-24 mb-8 dark:text-white">{title}</h1>
1111
<PostBody>

0 commit comments

Comments
 (0)