Some days just kind of suck. Some days feel great.<p>What makes for a great work day for you?<p>"N hours of coding"<p>"Yesterday I told myself I'd add X feature tomorrow. I did that today!" (even if it only took 2 hours)<p>"I ate a good breakfast. I worked out. I played with my kids. I did N hours of work and didn't question my sanity."
Over time, I've found the answer to be seasonal or at least heavily dependent on cycles of context and mood.<p>In vague terms, the best work days are when I start, build, and complete something for myself. It could be a prototype, a one-off program, or a feature on an existing application. It's a milestone of encapsulated accomplishment. This is especially nice when it has a visual component I can point to and share with someone. If it's for my employer, that's ok too, but not as fulfilling.<p>There are other seasons when success is just attending work, making a small step of progress, and not quitting.
Anything that moves the needle. Examples: a production release, a decision made, a bug investigated, a plan made, training<p>Unproductive: working on a presentation that is unrelated to what I work on, having a full day of meetings that don't move the needle
Completing things I had planned for the day (or having made a good effort and adjusting the schedule)<p>It took me, literally, years of therapy to accept that scheduling my days will not limit my freedom and creativity. On the contrary, it gives my rational side sovereignty over emotions and makes typical day a safe space to focus all creative energies on a particular task.
THe best way to track productivity is to define it first. I would say start your day with 1-2 things that you really want to get done and get those done. Rest are just nice to have. "Get done" doesn't necessarily mean complete but you spent time on them and made progress.
Minimizing or eliminating wasted time (scrolling, etc) is success for me. That means I spent time on something productive or relaxing or enjoyable -- all of which are wins in life.
I also consider productive when I solve a problem that took days. Even if the solution looks trivial in retrospect. Of course, it takes some effort to be kind to oneself.