gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.38k stars 7.49k forks source link

[Feature Request] Add support for Cloudflare Web Analytics #10464

Closed ashutoshsaboo closed 10 months ago

ashutoshsaboo commented 1 year ago

Feature Request:

Duplicate of https://github.com/gohugoio/hugo/issues/8482 , which got prematurely auto closed by the github bot. Can we please have a direct integration with Cloudflare Analytics in Hugo, just like the existing support for Google Analytics: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/google_analytics_async.html ?

Cloudflare analytics are privacy preserving and non-obtrusive form of analytics for static websites.

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

ashutoshsaboo commented 10 months ago

Is this being looked at?

jmooring commented 10 months ago

Creating yet another embedded template doesn't make sense to me. The tracking code is trivial for anyone to add to their site:

<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "xxx"}'></script>

Every embedded template and shortcode has a cost: implementation, testing, maintenance, and documentation.

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.