feat: add cloudflare web analytics (#1723)

This commit is contained in:
Hieu D 2024-05-03 17:46:17 -07:00 committed by GitHub
parent 12c340e98b
commit c17fba44f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -68,6 +68,8 @@ analytics:
matomo: matomo:
id: # fill in your Matomo ID id: # fill in your Matomo ID
domain: # fill in your Matomo domain domain: # fill in your Matomo domain
cloudflare:
id: # fill in your Cloudflare Web Analytics token
# Pageviews settings # Pageviews settings
pageviews: pageviews:

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 -->