From a531737107167728c5fc8e25a4aadbd65d47533c Mon Sep 17 00:00:00 2001 From: Ari Kalfus Date: Tue, 20 Apr 2021 00:52:34 -0400 Subject: [PATCH] Add support for Cloudflare analytics (#798) --- CHANGELOG.md | 1 + _config.yml | 3 +++ _includes/cloudflare_analytics.html | 8 ++++++++ _includes/head.html | 1 + 4 files changed, 13 insertions(+) create mode 100644 _includes/cloudflare_analytics.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 8645051..efa7296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Added support for Patreon, Medium, and Itch.io in the social network links in the footer (#783, #788) - Fixed bug where special characters in the title led to broken share tags (#744) - Updated staticman from using v2 (public servers) to v3 (private servers) due to the public servers becoming obsolete (#775) +- Added support for Cloudflare Analytics (#797) ## v5.0.0 (2020-09-15) diff --git a/_config.yml b/_config.yml index 4977a08..8bc1f89 100644 --- a/_config.yml +++ b/_config.yml @@ -133,6 +133,9 @@ footer-link-col: "#404040" # Fill in your Google Analytics ID to track your website using Google Analytics #google_analytics: "" +# Fill in your Cloudflare Analytics beacon token to track your website using Cloudflare Analytics +#cloudflare_analytics: "" + # Google Tag Manager ID #gtm: "" diff --git a/_includes/cloudflare_analytics.html b/_includes/cloudflare_analytics.html new file mode 100644 index 0000000..bd63f8b --- /dev/null +++ b/_includes/cloudflare_analytics.html @@ -0,0 +1,8 @@ +{% if site.cloudflare_analytics %} + + + +{% endif %} diff --git a/_includes/head.html b/_includes/head.html index 730e967..cf93eda 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -44,6 +44,7 @@ {% include gtag.html %} {% include gtm_head.html %} {% include google_analytics.html %} + {% include cloudflare_analytics.html %} {% if layout.common-ext-css %} {% for css in layout.common-ext-css %}