Skip to content

Commit

Permalink
📈 add moar analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnath committed Jan 27, 2024
1 parent 4fbae6e commit 9f772e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workspaces/website/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<head>
<title>Redirecting to Scott Nath's fantastic website landing page that is awesome</title>
<meta http-equiv="refresh" content="0;URL='https://scottnath.com'" />
<script defer data-domain="scottnath.com" src="https://plausible.io/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<script>document.addEventListener('DOMContentLoaded', function () { plausible('404', { props: { path: document.location.pathname } }); });</script>
</head>
<body>
<p>This page is fail, go to <a href="https://scottnath.com">scottnath.com</a>.</p>
Expand Down
2 changes: 2 additions & 0 deletions workspaces/website/src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const { title, description, image = '/scott-nath-profile-pic.jpeg' } = Astro.props;
---
<script defer data-domain="scottnath.com" src="https://plausible.io/js/script.js" type="text/partytown"></script>
<script type="text/partytown" defer data-domain="scottnath.com" src="https://plausible.io/js/script.outbound-links.js"></script>



<!-- Global Metadata -->
Expand Down

0 comments on commit 9f772e3

Please sign in to comment.