Skip to content

Commit

Permalink
add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoho committed Jan 16, 2024
1 parent b80ced1 commit 3ae14a2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions hugo/assets/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,13 @@ a {
color: var(--text-2);
}
}

.visually-hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
10 changes: 9 additions & 1 deletion hugo/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- META TAGS -->
<title>{{ .Title }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

{{ block "meta" . }}
{{ partial "meta.html" . }}
Expand All @@ -21,6 +21,14 @@
{{ $style := resources.Get "styles.scss" | resources.ToCSS $options | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />

<script
defer
type="text/javascript"
src="https://api.pirsch.io/pirsch.js"
id="pirschjs"
data-code="27O0Nv1tj0bPVKq6x82ZFM5cfxi701Kw"
></script>

<!-- Extras -->
{{ block "scripts" . }}
{{ end }}
1 change: 1 addition & 0 deletions hugo/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div class="wrapper">
<div class="content-container">
<a class="home-link" href="/">
<span class="visually-hidden">Home</span>
<svg
class="gloria-deo-logo"
width="886"
Expand Down

0 comments on commit 3ae14a2

Please sign in to comment.