Skip to content

Commit 2164a58

Browse files
Add Cloudflare Web Analytics beacon
1 parent 855940a commit 2164a58

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

layouts/_default/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
{{ block "main" . }}{{ end }}
2626
{{ partial "site-footer.html" . }}
2727
{{ block "scripts" . }}{{ end }}
28+
{{ partial "analytics.html" . }}
2829
</body>
2930
</html>

layouts/partials/analytics.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{ if hugo.IsProduction }}
2+
<!-- Cloudflare Web Analytics -->
3+
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "9d48d74e2e474145ad055ba1e6d4be0f"}'></script>
4+
<!-- End Cloudflare Web Analytics -->
5+
{{ end }}

0 commit comments

Comments
 (0)