1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 08:58:30 -04:00

simple analytics pixel on AMP pages

This commit is contained in:
Jake Jarvis 2020-02-01 08:11:54 -05:00
parent 9e794df120
commit cfc99631a9
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
5 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Personal website of [@jakejarvis](https://github.com/jakejarvis), created and de
- [Hugo extended](https://github.com/gohugoio/hugo) - [Hugo extended](https://github.com/gohugoio/hugo)
- [Netlify](https://www.netlify.com/) - [Netlify](https://www.netlify.com/)
- [Commento](https://gitlab.com/commento/commento) - [Commento](https://gitlab.com/commento/commento)
- [Simple Analytics](https://simpleanalytics.com/) ([referral link](https://referral.simpleanalytics.com/jake-jarvis))
- [...and much more.](https://jarv.is/uses/) - [...and much more.](https://jarv.is/uses/)
I keep an ongoing list of [blog post ideas](https://github.com/jakejarvis/jarv.is/issues/1) and [coding to-dos](https://github.com/jakejarvis/jarv.is/issues/11) as issues in this repo. I keep an ongoing list of [blog post ideas](https://github.com/jakejarvis/jarv.is/issues/1) and [coding to-dos](https://github.com/jakejarvis/jarv.is/issues/11) as issues in this repo.

View File

@ -32,6 +32,7 @@
Hugo extended Hugo extended
Netlify Netlify
Commento Commento
Simple Analytics
...and much more: https://jarv.is/uses/ ...and much more: https://jarv.is/uses/
# VIEW SOURCE # VIEW SOURCE

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="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> <div class="right"><a class="back-to-top" href="#top">↑ Back to top.</a></div>
</footer> </footer>
<!-- Simple Analytics -->
<amp-pixel src="https://s.jarv.is/image.gif" layout="nodisplay"></amp-pixel>
</body> </body>
</html> </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-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-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> <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" }} {{ 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> <noscript><img src="https://s.jarv.is/image.gif" alt=""></noscript>
{{ end }} {{ end }}