From 3c9a4fc7ad4bfa5ca8c057260ded7552ffdd83b5 Mon Sep 17 00:00:00 2001 From: Ivo Zeitz Date: Wed, 21 Oct 2026 19:55:35 +0200 Subject: [PATCH] feat: Plausible analytics on the docs (data.bazarpro.de) Co-Authored-By: Claude Opus 5.5 --- astro.config.mjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index f4da12d..f12b745 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -21,6 +21,18 @@ export default defineConfig({ editLink: { baseUrl: 'https://github.com/BazarPro/docs/edit/main/' }, lastUpdated: true, customCss: ['./src/styles/theme.css'], + // Plausible (data.bazarpro.de): cookie-free page views; options are set per site in Plausible + head: [ + { + tag: 'script', + attrs: { async: true, src: 'https://data.bazarpro.de/js/pa-gpOnG9e83--1wgsh8mo2o.js' }, + }, + { + tag: 'script', + content: + 'window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init()', + }, + ], sidebar: [ { label: 'Erste Schritte',