feat: add cloudflare web analytics (#1723)

This commit is contained in:
Hieu D
2024-05-04 08:46:17 +08:00
committed by GitHub
parent 12c340e98b
commit c17fba44f5
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -68,6 +68,8 @@ analytics:
matomo:
id: # fill in your Matomo ID
domain: # fill in your Matomo domain
cloudflare:
id: # fill in your Cloudflare Web Analytics token
# Pageviews settings
pageviews:
+7
View File
@@ -0,0 +1,7 @@
<!-- Cloudflare Web Analytics -->
<script
defer
src="https://static.cloudflareinsights.com/beacon.min.js"
data-cf-beacon='{"token": "{{ site.analytics.cloudflare.id }}"}'
></script>
<!-- End Cloudflare Web Analytics -->