From 8f2d583ab60f81a3c0aa3e6cd98830ec9722a941 Mon Sep 17 00:00:00 2001 From: ZeYanLin Date: Sun, 30 Jul 2023 15:48:13 +0800 Subject: [PATCH] Support Cloudflare Web Analytics (#763) * Support Cloudflare Web Analytics * Support Cloudflare Web Analytics --------- Co-authored-by: Emruz Hossain --- exampleSite/config.yaml | 3 +++ layouts/partials/analytics.html | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index ad283d5..ceb7416 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -153,6 +153,9 @@ params: analytics: enabled: false services: + # cloudflare web analytics + # cloudflare: + # token: "" # Google Analytics google: id: G-H4LBG7NDFZ diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index 87429a5..fac3a09 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -43,6 +43,14 @@ })(); {{ end }} + + {{ with .cloudflare }} + + + + {{ end }} {{ end }} {{ end }} {{ end }}