1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 04:55:30 -04:00

simple analytics pixel on AMP pages

This commit is contained in:
2020-02-01 08:11:54 -05:00
parent 9e794df120
commit cfc99631a9
5 changed files with 7 additions and 1 deletions

View File

@@ -256,6 +256,9 @@
<div class="left">Content by <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>, licensed under <a href="https://creativecommons.org/licenses/by/4.0/" title="Creative Commons Attribution 4.0 International" target="_blank" rel="noopener">CC-BY-4.0</a>.</div>
<div class="right"><a class="back-to-top" href="#top">↑ Back to top.</a></div>
</footer>
<!-- Simple Analytics -->
<amp-pixel src="https://s.jarv.is/image.gif" layout="nodisplay"></amp-pixel>
</body>
</html>

View File

@@ -1,3 +1,4 @@
<link rel="preconnect" href="https://s.jarv.is" crossorigin>
<link rel="preload" href="{{ "fonts/inter-regular-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ "fonts/inter-medium-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ "fonts/inter-bold-subset.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>

View File

@@ -1,4 +1,4 @@
{{ if eq hugo.Environment "production" }}
<script async defer src="https://s.jarv.is/app.js"></script>
<script data-skip-dnt="true" async defer src="https://s.jarv.is/app.js"></script>
<noscript><img src="https://s.jarv.is/image.gif" alt=""></noscript>
{{ end }}