From 3c7ad68be2ccb3fea93c265ef38428fbc7b4b32f Mon Sep 17 00:00:00 2001 From: architeur Date: Mon, 29 Dec 2025 14:00:33 +0100 Subject: [PATCH] =?UTF-8?q?Besucherz=C3=A4hler=20um=20Page=20Views=20erwei?= =?UTF-8?q?tert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Zwei separate Zähler: Unique Visitors (Session) + Page Views (jeden Aufruf) - Footer zeigt beide Werte an - Neue Datendateien in .gitignore aufgenommen 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .gitignore | 2 ++ api/counter.php | 30 +++++++++++++++++------------- index.html | 6 ++++-- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 2313378..8d104df 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,8 @@ node_modules/ # Counter data api/counter.txt +api/visitors.txt +api/pageviews.txt kostenschaetzung/ schadendokumentation/ zeitwert/ diff --git a/api/counter.php b/api/counter.php index 8e498e7..66c57a6 100644 --- a/api/counter.php +++ b/api/counter.php @@ -1,33 +1,37 @@ $count, - 'formatted' => number_format($count, 0, ',', '.') + 'visitors' => $visitors, + 'visitors_formatted' => number_format($visitors, 0, ',', '.'), + 'pageviews' => $pageviews, + 'pageviews_formatted' => number_format($pageviews, 0, ',', '.') ]); diff --git a/index.html b/index.html index bf01b15..c4c4da1 100644 --- a/index.html +++ b/index.html @@ -280,7 +280,7 @@