Skip to content

Commit

Permalink
chore: use microsoft clarity to do data analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsang4 committed Jul 17, 2024
1 parent 54785de commit 0c7ed88
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ const socialImageURL = new URL(
}

<script is:inline src="/toggle-theme.js"></script>
<script type="text/javascript">
;(function (c, l, a, r, i, t, y) {
c[a] =
c[a] ||
function () {
;(c[a].q = c[a].q || []).push(arguments)
}
t = l.createElement(r)
t.async = 1
t.src = "https://www.clarity.ms/tag/" + i
y = l.getElementsByTagName(r)[0]
y.parentNode.insertBefore(t, y)
})(window, document, "clarity", "script", "n8xa0dyy57")
</script>
<ViewTransitions />
</head>
<body>
Expand All @@ -98,15 +112,15 @@ const socialImageURL = new URL(
</div>
)
}
{
<!-- {
import.meta.env.UMAMI_URL && (
<script
async
src={`${import.meta.env.UMAMI_URL}/script.js`}
data-website-id={import.meta.env.UMAMI_ID}
/>
)
}
} -->
<style>
.hide {
display: none;
Expand Down

0 comments on commit 0c7ed88

Please sign in to comment.