Skip to content

Commit

Permalink
Merge pull request #52 from earthrise-media/enable/plausible-analytics
Browse files Browse the repository at this point in the history
Enable Plausible analytics
  • Loading branch information
vgeorge authored Feb 23, 2024
2 parents 2db0b9d + 0a68580 commit 8f3bbc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DATABASE_URL=postgres://postgres:postgres@localhost:5433/food-twin?sslmode=disable
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=
#NEXT_PUBLIC_PLAUSIBLE_DOMAIN=<Website domain for Plausible analytics>
7 changes: 7 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ function Home({
href="/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
{process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN && (
<script
defer
data-domain={process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN}
src="https://plausible.io/js/script.js"
></script>
)}
</Head>

<MapProvider>
Expand Down

0 comments on commit 8f3bbc8

Please sign in to comment.