Skip to content

Commit

Permalink
Revert "cleanup: remove plausible"
Browse files Browse the repository at this point in the history
This reverts commit 1409f70.
  • Loading branch information
BrickheadJohnny committed Feb 19, 2025
1 parent a1c9f18 commit 17d328c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ const nextConfig = {
},
],
afterFiles: [
{
source: "/js/script.js",
destination: "https://stat.zgen.hu/js/plausible.exclusions.js",
},
{
source: "/api/event",
destination: "https://stat.zgen.hu/api/event",
Expand Down
3 changes: 3 additions & 0 deletions src/app/privacy-policy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ const Page = (): JSX.Element => (
<b>Intercom R&D Unlimited Company</b> for customer communications,
and,
</li>
<li>
<b>Plausible</b>, for data analytics.
</li>
</ul>
<p>
If you purchase through our website, depending on the payment method
Expand Down
9 changes: 9 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ class MyDocument extends Document {
<Head>
{process.env.NODE_ENV === "production" && (
<>
<script
async
defer
src="/js/script.js"
data-api="/api/event"
data-domain="guild.xyz"
integrity="sha512-HVRUd9pld7dyE4GD9bua0YojsAokMtFExYGvwJhJ5zq37EEX7yEOeYEsh0yh/CypC832F1VkewDepCdoDlPwEw=="
data-exclude="/oauth**"
/>
<Script
async
defer
Expand Down

0 comments on commit 17d328c

Please sign in to comment.