Changeset d549549 in Klonkt for src/views


Ignore:
Timestamp:
06/16/2026 09:41:28 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
029f047
Parents:
3f893bf
Message:

Statistics module (Phase 3): cookie-free tracking + premium stats page

Counters: posts.view_count, audio_tracks.play_count, stat_daily
(pageviews/day) + stat_visitor_day (unique visitors via daily rotating
salted hash of IP+UA, never stored → no cookie, no consent needed).
StatsService records pageview on home + post-view (skips admins), play on
the initial player stream fetch. /admin/stats (god-only +
premiumUnlocked-gated): cards + 14-day cookie-free bar chart
(visitors/views) + top posts/tracks. Dashboard button is premium-gated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

Location:
src/views/pages
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin.ejs

    r3f893bf rd549549  
    2929      <a href="/admin/settings" class="btn">⚙️ Instellingen</a>
    3030    <% } %>
     31    <% if (typeof premiumUnlocked === 'undefined' || premiumUnlocked) { %>
     32      <a href="/admin/stats" class="btn">📊 Statistieken</a>
     33    <% } %>
    3134    <a href="/admin/updates" class="btn">🔄 Updates</a>
    3235  </nav>
Note: See TracChangeset for help on using the changeset viewer.