Skip to content

Commit

Permalink
Add analytics script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderson1993 committed Jan 9, 2025
1 parent 9c580f2 commit 4bd5afc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type LoaderData = {
};

export const loader: LoaderFunction = async ({ request }) => {
let session = await getSession(request);
const session = await getSession(request);
const toast = session.get("toast");
const error = session.get("error");
return json<LoaderData>(
Expand Down Expand Up @@ -91,6 +91,13 @@ export default function App() {
<ScrollRestoration />
<Scripts />
<LiveReload />

<script
id="counterscale-script"
data-site-id="thoriumsim.com"
src="https://analytics.ralexanderson.com/tracker.js"
defer
></script>
</body>
</html>
);
Expand Down

0 comments on commit 4bd5afc

Please sign in to comment.