Skip to content

Commit

Permalink
chore(website): add analytics (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyalcinkaya authored May 9, 2024
1 parent 2c26fa9 commit 8b52448
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"typescript": "5.2.2"
},
"dependencies": {
"@next/third-parties": "^14.2.3",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
Expand Down
9 changes: 9 additions & 0 deletions apps/website/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import '@/globals.css'
import { GeistMono } from 'geist/font/mono'
import { GeistSans } from 'geist/font/sans'
import Script from 'next/script'
import { GoogleAnalytics } from '@next/third-parties/google'
import type { Metadata, Viewport } from 'next'

import { Button } from '@/components/ui/button'
Expand Down Expand Up @@ -47,6 +49,13 @@ export default function RootLayout({
</footer>
<TailwindIndicator />
</body>
<Script
src="https://unpkg.com/@tinybirdco/flock.js"
data-host="https://api.tinybird.co"
data-token={process.env.NEXT_PUBLIC_TINYBIRD_TOKEN}
strategy="lazyOnload"
/>
<GoogleAnalytics gaId={`${process.env.NEXT_PUBLIC_GA_ID}`} />
</html>
)
}
Expand Down
20 changes: 20 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 8b52448

Please sign in to comment.