Skip to content

Commit

Permalink
Merge pull request #90 from fiqryq/41-integrate-with-umami
Browse files Browse the repository at this point in the history
chore(analytic): add script umami #41
  • Loading branch information
fiqryq authored Dec 28, 2022
2 parents 270c84e + 7fac1c1 commit 70e68fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
6 changes: 6 additions & 0 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ export default function Document() {
<Html className="antialiased" lang="en">
<Head>
<script dangerouslySetInnerHTML={{ __html: themeScript }} />
<script
async
defer
data-website-id={process.env.NEXT_PUBLIC_UMAMI_ID}
src="https://dashboard.fiqry.dev/umami.js"
/>
</Head>
<body className="bg-zinc-50 dark:bg-black">
<Main />
Expand Down

1 comment on commit 70e68fb

@vercel
Copy link

@vercel vercel bot commented on 70e68fb Dec 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.