8000 feat: add cloudflare web analytics (#1723) · Goder-0/goder-0.github.io@c17fba4 · GitHub
[go: up one dir, main page]

Skip to content

Commit c17fba4

Browse files
authored
feat: add cloudflare web analytics (cotes2020#1723)
1 parent 12c340e commit c17fba4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ analytics:
6868
matomo:
6969
id: # fill in your Matomo ID
7070
domain: # fill in your Matomo domain
71+
cloudflare:
72+
id: # fill in your Cloudflare Web Analytics token
7173

7274
# Pageviews settings
7375
pageviews:

_includes/analytics/cloudflare.html

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

0 commit comments

Comments
 (0)
0