From 34721b19683dabbe281cb6c81ecefe2474f27c41 Mon Sep 17 00:00:00 2001 From: Thomas Pinder Date: Wed, 30 Sep 2026 22:11:39 +0200 Subject: [PATCH] revert: remove the Cloudflare Web Analytics beacon This reverts commit ccc299b4. Cloudflare rejects the beacon on this hostname: the docs are served by GitHub Pages, outside the Cloudflare zone, and the quantclimate.com Web Analytics site does not accept it. Each page view logged a CORS error and recorded nothing. Analytics will come from serving the docs through Cloudflare instead. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015fagcMeo1LmLG2Dg3NybmQ --- docs/conf.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7add4ec23..f55f64232 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -375,25 +375,6 @@ "doc_path": "docs", } -# -- Cloudflare Web Analytics ------------------------------------------------- -# GitHub Pages serves the docs through a DNS-only CNAME. Cloudflare does not -# proxy this traffic, so it cannot inject its beacon. The page must load the -# script itself. -# -# The token belongs to the Web Analytics site for the quantclimate.com zone. -# Cloudflare matches the hostname by suffix, so that site also accepts data from -# gpjax.quantclimate.com. The token is not a secret: the browser of each reader -# receives it. -html_js_files = [ - ( - "https://static.cloudflareinsights.com/beacon.min.js", - { - "type": "module", - "data-cf-beacon": '{"token": "3f29427f68be43bcb980df919a279816"}', - }, - ), -] - # -- Redirects from the retired MkDocs site (sphinx-reredirects) ------------- # The retired MkDocs site (then at docs.jaxgaussianprocesses.com) ran with # `use_directory_urls`