This plugin will track the view count for each file in your vault. The count can be seen as a property or at the bottom of the note in the status bar depending on plugin configuration.
- In Obsidian, open Settings
- Go to Community plugins
- Select Browse
- Search for View Count by Trey Wallis
- Select Install
- Then select Enable
By default the plugin will save view count in a property called view-count
in each file that is opened. The view count will be incremented once a day. To change these settings, please view the Settings section below.
To see a list of the 20 notes with the highest view count, open the sidebar and click on the eye icon
This plugin has 2 storage options for view count: Property and File. Please restart Obsidian after changing this setting.
Property storage - If property is selected, each note will have their view count stored in a property in their frontmatter.
File storage - If file is selected, the view count for all notes will be stored in a JSON file called view-count.json
in the Obsidian config directory (by default .obsidian
). The view count will then appear in the status bar at the bottom of each note.
Increment count once a day - if enabled a view count will increment once a day. Once a day meaning an opening of a file after 12 am your local time for any given date. If disabled, the view count will increment each time the file is opened.
When increment a day is enabled and the property type is set to storage, a last view date property will be stored to your note.
- The view count is stored in the frontmatter of each note, making it readily accessible
- Since the view count is stored in frontmatter, it can also be viewed on mobile
- Only markdown files have frontmatter, so only markdown files will have their views tracked
- Since the frontmatter updates every time a view occurs, your files may update more frequently than you would like
- The view count is tracked for both markdown and canvas files
- The view count for your vault is stored in one file, versus scattered across many notes
- Since view count is displayed in the status bar at the bottom of a note, you cannot see the view count on mobile