Skip to content

Commit

Permalink
Add loader for GoatCounter analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-mather committed Sep 30, 2024
1 parent f1641f6 commit f9402de
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/_components/AnalyticsScript.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Script from "next/script";

const COUNT_URL = "https://ace3tooltest.goatcounter.com/count";

/** Load the script for GoatCounter analytics.
*/
export default function AnalyticsScript() {
return (
<Script
src="//gc.zgo.at/count.js"
data-goatcounter={COUNT_URL}
async
strategy="afterInteractive"
/>
);
}

0 comments on commit f9402de

Please sign in to comment.