Skip to content

Commit

Permalink
Test plausible analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
bring-shrubbery committed Sep 14, 2024
1 parent 408aced commit 2468d1c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/nextjs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ export default function RootLayout({
}: PropsWithChildren<{ announcement: ReactNode }>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<script
defer
data-domain="svg-to-swiftui.quassum.com"
src="/plausible/js/script.hash.outbound-links.pageview-props.tagged-events.js"
/>
<script
dangerouslySetInnerHTML={{
__html: `window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }`,
}}
/>
</head>

<body
className={cn(
"h-screen w-full bg-background font-sans text-foreground antialiased",
Expand Down
4 changes: 4 additions & 0 deletions apps/nextjs/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
{
"source": "/stats/:match*",
"destination": "https://analytics.quassum.com/:match*"
},
{
"source": "/plausible/:match*",
"destination": "https://plausible.io/:match*"
}
]
}

0 comments on commit 2468d1c

Please sign in to comment.