Skip to content

Commit

Permalink
analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnguyennz committed Jan 5, 2024
1 parent b6ca380 commit 3b30162
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content/pages/colophon.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ This colophon page outlines the technology and tools used to build this site.

This site is built with [Astro](https://astro.build), a web framework.

[Tailwind CSS](https://tailwindcss.com/), a CSS framework, is used for styling.
[Tailwind CSS](https://tailwindcss.com/) is used for base CSS styles.

[Netlify](https://www.netlify.com/) handles hosting, deployment, and edge functions used to generate Open Graph images.

[Orama](https://www.oramasearch.com/) is used for search functionality.

Unit tests are run with [Vitest](https://vitest.dev/). End-to-end tests are run with [Cypress](https://www.cypress.io/).

Analytics are powered by [Clarity](https://clarity.microsoft.com/). Privacy info is [available here](https://learn.microsoft.com/en-us/clarity/faq#privacy).

### Design and Visual Elements
[DM Sans](https://fonts.google.com/specimen/DM+Sans) is a sans serif font under the Open Font License.

Expand Down
15 changes: 15 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,20 @@ const pathname = Astro.url.pathname;
{/*voice && <PlayVoice id={pathname} />*/}

<Footer />

<script is:inline>
(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", "kh936c7uh5");
</script>
</body>
</html>

0 comments on commit 3b30162

Please sign in to comment.