1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-18 22:15:32 -04:00

fix analytics

This commit is contained in:
2020-04-28 08:45:56 -04:00
parent b0893ff52f
commit 9a87b9fa8d
6 changed files with 26 additions and 85 deletions

View File

@@ -261,7 +261,7 @@
</footer>
{{ if eq hugo.Environment "production" }}
<amp-pixel src="https://s.jarv.is/image.gif" layout="nodisplay"></amp-pixel>
<amp-pixel src="{{ "sa/noscript.gif" | absURL }}?hostname=CANONICAL_HOSTNAME&path=CANONICAL_PATH&referrer=DOCUMENT_REFERRER&https=true&ua=USER_AGENT&width=SCREEN_WIDTH&type=pageview" layout="nodisplay"></amp-pixel>
{{ end }}
</body>
</html>

View File

@@ -1,5 +1,4 @@
{{ if eq hugo.Environment "production" }}
<link rel="preconnect" href="https://s.jarv.is" crossorigin>
{{ if and .IsPage (and (eq .Type .Site.Params.mainSection) (ne .Params.comments false)) }}
<link rel="preconnect" href="https://utteranc.es" crossorigin>
<link rel="preconnect" href="https://api.utteranc.es" crossorigin>