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

switch simple analytics proxy to a netlify function

This commit is contained in:
2020-08-08 00:13:07 -04:00
parent d9833c6d30
commit 76b3a55efd
10 changed files with 396 additions and 111 deletions

View File

@@ -257,7 +257,7 @@
{{ if eq hugo.Environment "production" }}
<!-- https://docs.simpleanalytics.com/without-javascript -->
<amp-pixel src="{{ "api/views/noscript.gif" | absURL }}?ignore-dnt=true&amp;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 }}?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>
{{ end }}
</body>
</html>