![[USV Workflow Callout]] This is for tracking any habits from [[My habits workflow]]. If you want to track statistics, head to [[My statistic tracking workflow]]. # Using Datacore > [!DANGER] Newest version > The Datacore habit tracker was introduced in version 2.2, and is the easier way to set up habit tracking that I recommend you set up first. If you want to have a monthly calendar view though, you can look into [[#Using Tracker]]. - You can track and visualize your habits using [[My Habit Tracker]] (in the vault) - To set this up, you first need to go through [[My habits workflow]] ## Setting up individual habits - For each habit you want to track, create a habit note for it and set the `Status` to 🟨 - Fill out the habit tracking related fields, which can be seen in [[Habits#Tracking related]] - If you get a warning callout while trying to load it, make sure you add any missing metadata fields that are mentioned and `Rerun`/re-open the note # Using Tracker ## Examples > [!INFO] Video Example > [31:36](https://www.youtube.com/watch?v=sj8oJeYHTDQ&t=1896s) - Yearly keystone habits (task, metric, and non-tracked) > [!EXAMPLE]+ Habit dashboard > You can create a canvas with embeds to each tracker chart to see all your habits in one place > [[My Habits Board.canvas|♻️ My Habits Board]] > ![](https://i.imgur.com/SsSEw8P.png) > [!EXAMPLE]+ Task tracker [[Eat greens]] ![](https://i.imgur.com/G5LX7nL.png) > [!EXAMPLE]+ Metric tracker > [[My Habits/Writing]] ![](https://i.imgur.com/kXpJ85f.png) ## Tracking > [!WARNING] Only daily tracking > Obsidian plugins only make showcasing daily tracking convenient. As of now there's no simple way to only show a streak consisting of a certain day (ex. only show whether you did something on Sundays), it has to be the whole calendar or consecutive days in a line chart. ### Task - Create a markdown task in your daily note - If you don't want it to show up every day, you can do something like [[Templater Snippets#Show task only on certain days]] - If you consistently do it in a certain part of your day you can follow the examples in [[Daily Template]] and put the task under a section in [[Daily Template#Today]], or you can just keep it under [[Daily Template#Trackers]] - Open command palette and search for `Task Tracker Addon`, you should see the following command: - `Hotkeys for Templates: Insert from Templater: addons/Task Tracker Addon` - When prompted, put in the exact name of the task you made earlier that you want to track - (Optional) Add summaries to periodic reviews to calculate % completion (see [[Monthly Review Template#Meditation]] as an example) ### Metric - Create a new place for your new habit - Open command palette and search for `Metric Tracker Addon`, you should see the following command: - `Hotkeys for Templates: Insert from Templater: addons/Metric Tracker Addon` - When prompted, put in the numerical value - When prompted, put in the value of the threshold value you are aiming to hit every day - 1 - ex) If you are trying to read 30 pages a day, put 29 as your threshold - (Optional): Include multiple metric trackers in one calendar via [[Obsidian Tracker Plugin#Summary]] - (Optional) Add summaries to periodic reviews to calculate averages (see [[Monthly Review Template#Energy]] as an example) - Types of functions you can use include `sum()`, `average()`, etc - Just make sure that you have the right start and end date ### Start and end dates If you're using the calendar view in a periodic note and only want to include the values in the timeframe for calculating averages or sums, you can see examples inside each periodic review template. But here you go anyways - be sure to not replace the variables if you are pasting them into a template, but to replace them if you are applying them to an already existing periodic note. Weekly ``` startDate: <% moment(tp.file.title,'YYYY-[W]WW').day(1).format("YYYY-MM-DD") %> endDate: <% moment(tp.file.title,'YYYY-[W]WW').add(1,'weeks').day(0).format("YYYY-MM-DD") %> ``` Monthly ``` startDate: <% moment(tp.file.title,'YYYY-[M]MM').startOf('month').format('YYYY-MM-DD') %> endDate: <% moment(tp.file.title,'YYYY-[M]MM').endOf('month').format('YYYY-MM-DD') %> ``` Quarterly ``` startDate: <% moment(tp.file.title,'YYYY-[Q]Q').startOf('quarter').format('YYYY-MM-DD') %> endDate: <% moment(tp.file.title,'YYYY-[Q]Q').endOf('quarter').format('YYYY-MM-DD') %> ``` Yearly ``` startDate: <% moment(tp.file.title,'YYYY').startOf('year').format('YYYY-MM-DD') %> endDate: <% moment(tp.file.title,'YYYY').endOf('year').format('YYYY-MM-DD') %> ``` ## Reviewing habits I review my habits during my periodic reviews as part of [[My Alignment Philosophy]]. Instead of visiting each habit, I have a habit dashboard that looks like this: There are two main views that are part of each addon: ### Summary #### Task > [!EXAMPLE] Example > [[Eat greens]] > ![|500](https://i.imgur.com/kyslUdv.png) For task habit tracking, the summary includes: - Your percentage completion rate - The total amount of times you checked it off vs didn't #### Metric For metric habit tracking, the summary includes: - Minimum - Maximum - Mean - Median ### Calendar - When you complete the task/meet the threshold for multiple days in a row, you can see the days connected in a streak #### Task - Clicking on the label at the top of the calendar can toggle between completed/uncompleted to be visibls #### Metric - Shade of green depends on how close you were to your threshold. Once you reach your threshold it becomes green - Clicking on the day will show you the specific value