View Tracker

pending

by Sean Nam

Tracks note view counts and last-viewed dates via YAML frontmatter.

Updated 23d agoMITDiscovered via Obsidian Unofficial Plugins
View on GitHub

Obsidian View Tracker

Track how many times you open each note -- directly in YAML frontmatter.

Features

  • Increments a views counter and sets a last-viewed timestamp each time you open a note
  • Configurable dedup window (default 30s) prevents inflation from rapid re-opens or tab switches
  • Opt-in per note or track all notes globally
  • Customizable frontmatter field names
  • Configurable timezone and 12h/24h timestamp format
  • No server, no network, no database -- everything lives in the note itself

Usage

Add tracked: true to any note's frontmatter to start tracking:

---
tracked: true
---

Or use the command palette: View Tracker: Toggle tracking for current note.

You can also enable "Track all notes" in settings to skip the opt-in step.

Settings

SettingDefaultDescription
Track all notesOffTrack every note instead of opt-in only
Dedup window30sMinimum seconds between increments for the same note
Views fieldviewsFrontmatter field name for view count
Last viewed fieldlast-viewedFrontmatter field name for timestamp
Tracked fieldtrackedFrontmatter field name for opt-in flag
TimezoneAmerica/New_YorkIANA timezone for timestamps
24-hour formatOffUse 24-hour time instead of 12-hour AM/PM

Installation

From Community Plugins

  1. Open Settings > Community plugins
  2. Search for "View Tracker"
  3. Click Install, then Enable

Manual

  1. Download main.js and manifest.json from the latest release
  2. Create a view-tracker folder in your vault's .obsidian/plugins/ directory
  3. Copy both files into it
  4. Enable the plugin in Settings > Community plugins

Development

npm install
npm run dev    # development build with sourcemaps
npm run build  # production build (minified)

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.