1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-24 18:31:16 -04:00

fix AMP pixel (hopefully)

This commit is contained in:
2020-08-08 08:03:22 -04:00
parent 76b3a55efd
commit 9b5a29be7b
3 changed files with 17 additions and 4 deletions

View File

@@ -257,7 +257,7 @@
{{ if eq hugo.Environment "production" }}
<!-- https://docs.simpleanalytics.com/without-javascript -->
<amp-pixel src="{{ "api/send_view" | absURL }}?hostname=CANONICAL_HOSTNAME&amp;path=CANONICAL_PATH&amp;referrer=DOCUMENT_REFERRER&amp;https=true&amp;ua=USER_AGENT&amp;width=VIEWPORT_WIDTH&amp;type=pageview" layout="nodisplay"></amp-pixel>
<amp-pixel src="{{ "api/send_view" | absURL }}?noscript=true&amp;type=pageview&amp;hostname=CANONICAL_HOSTNAME&amp;path=CANONICAL_PATH&amp;referrer=DOCUMENT_REFERRER&amp;https=true&amp;ua=USER_AGENT&amp;width=VIEWPORT_WIDTH" layout="nodisplay"></amp-pixel>
{{ end }}
</body>
</html>