Skip to content

Commit

Permalink
feat: add cloudflare web analytics (mmistakes#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
dqhntt authored May 4, 2024
1 parent 12c340e commit c17fba4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions _includes/analytics/cloudflare.html
Original file line number Diff line number Diff line change
@@ -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 -->

0 comments on commit c17fba4

Please sign in to comment.