Add 404 page tracking
This commit is contained in:
parent
6b0f7d59d5
commit
d252bd0a2c
|
@ -13,5 +13,6 @@
|
|||
</head>
|
||||
<body>
|
||||
{% block body %}{% endblock %}
|
||||
{% block javascripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
8
source/_pages/404.html
Normal file
8
source/_pages/404.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: Page not found
|
||||
permalink: /404.html
|
||||
---
|
||||
|
||||
{% block javascripts %}
|
||||
<script>plausible("404",{ props: { path: document.location.pathname } });</script>
|
||||
{% endblock %}
|
|
@ -1,3 +1,4 @@
|
|||
{% if plausible.domain %}
|
||||
<script defer data-domain="{{ plausible.domain }}" src="https://plausible.io/js/plausible.js"></script>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue