Skip to content

Commit 987c1d2

Browse files
authored
Add proxied Plausible analytics (#2369)
Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
1 parent 16899c3 commit 987c1d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web/src/pages/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ const Index = () => {
5959
content="Develop full-stack web apps without boilerplate."
6060
/>
6161
<meta property="twitter:image" content={coverPhotoAbsoluteUrl} />
62+
{/* Using Cloudflare Workers to proxy the analytics script */}
63+
<script
64+
defer
65+
data-domain="wasp-lang.dev"
66+
data-api="/waspara/wasp/event"
67+
src="/waspara/wasp/script.js"
68+
></script>
6269
</Head>
6370
<Nav />
6471
<div className="min-h-screen">

0 commit comments

Comments
 (0)