Bakki Mahesh.
Web developer & aspiring cloud engineer
Useful portfolio counts without visitor profiles.
How this portfolio measures public page loads and selected actions while avoiding analytics cookies, visitor identifiers and message contents.
Reading preferences
Start with a small question
A portfolio owner can learn from a few simple counts: which case studies are opened, whether visitors reach contact options, and whether a résumé download link is used. Answering those questions does not require building a profile of each visitor.
A deliberately small data model
This portfolio aggregates events into daily records. A record contains a day, public path, event name, count and expiry date. It does not contain a visitor ID, email address, message body, full URL, query string, IP address or user agent.
day: 2026-10-25
path: /projects/agencyos
event: project_open
count: aggregate event count
expiresAt: retention deadlineCounts are events, not unique people. Reloads can increase page-load counts, and a download click does not prove a recruiter read the PDF.
Validate the event boundary
The public analytics endpoint accepts a small event-name enum and public route patterns. Query strings, administrator paths and extra fields are rejected. Dynamic project, page and article paths are checked against published content before a count is recorded.
Same-origin checks and a rate limit reduce accidental misuse. A public counting endpoint still cannot prove that every event comes from a human, so its dashboard should remain a directional tool rather than a verified audience report.
Respect browser choices
The tracker checks Do Not Track, Global Privacy Control and a local opt-out preference. It does not create an analytics cookie or a persistent visitor identifier. The privacy page provides an explicit control to disable anonymous counts in that browser.
Preference storage is separate from analytics data. A browser can keep the theme and opt-out choice without the database knowing who made that choice.
Expire data instead of collecting forever
Daily counts carry an expiry date approximately 90 days after creation. MongoDB’s TTL index removes expired records asynchronously, and a scheduled cleanup provides a second retention path. The administrator dashboard offers 7-, 30- and 90-day views.
Keep contact information separate
Contact forms save private submissions for an administrator to review and answer. Analytics records never copy those submissions, including their subject or message body. Internal notes and follow-up dates stay in the private inbox.
The hosting platform and email provider may process operational request information under their own policies; this small analytics model does not replace those services’ logs or settings.
Know what the numbers cannot say
Aggregate counts can show which pages attract attention. They cannot establish hiring outcomes, identify individual recruiters, measure satisfaction, or prove that a project’s protected workflows work correctly.
That boundary is useful: the dashboard answers a limited question without pretending to know more.
This note describes the portfolio’s aggregate event implementation, not a legal certification or a guarantee about third-party processing.