Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Umami analytics script to site header
The commit includes the Umami analytics script to the head of the site. The script will allow access to more detailed analytics data for the website contributing to more informed decision-making in website design and development. The script is inserted with the "defer" attribute to prevent it from blocking the parsing of the HTML while it's loading.
  • Loading branch information
reatlat committed Jan 17, 2024
1 parent 047ecb0 commit 36cd63b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_includes/partials/scripts-head.njk
@@ -1,6 +1,8 @@
{# color theme toggle #}
<script>!function(t,e,m){t&&"light"===t&&(e.classList.remove("dark"),e.setAttribute("data-theme","light"),m.setAttribute("content","#ffffff"))}(localStorage.getItem("theme"),document.documentElement,document.querySelector('meta[name="theme-color"]'));</script>

<script defer src="https://us.umami.is/script.js" data-website-id="657a44f2-6e6b-4c6e-9531-9bbfff64e441"></script>

{%- if eleventy.env.runMode === "serve" -%}
<link rel="stylesheet" href="/css/main.css">
{%- else -%}
Expand Down

0 comments on commit 36cd63b

Please sign in to comment.