Support Cloudflare Web Analytics (#763)
* Support Cloudflare Web Analytics * Support Cloudflare Web Analytics --------- Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
08017d5977
commit
8f2d583ab6
2 changed files with 11 additions and 0 deletions
|
@ -153,6 +153,9 @@ params:
|
||||||
analytics:
|
analytics:
|
||||||
enabled: false
|
enabled: false
|
||||||
services:
|
services:
|
||||||
|
# cloudflare web analytics
|
||||||
|
# cloudflare:
|
||||||
|
# token: "<token>"
|
||||||
# Google Analytics
|
# Google Analytics
|
||||||
google:
|
google:
|
||||||
id: G-H4LBG7NDFZ
|
id: G-H4LBG7NDFZ
|
||||||
|
|
|
@ -43,6 +43,14 @@
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with .cloudflare }}
|
||||||
|
<!-- Cloudflare Web Analytics -->
|
||||||
|
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
|
||||||
|
data-cf-beacon='{"token": "{{ .token }}"}'
|
||||||
|
></script>
|
||||||
|
<!-- End Cloudflare Web Analytics -->
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue