You can set up a goal in Beeminder to increase the amount of time you spend doing focused work (e.g. Pomodoro Technique, timeboxing, etc...). You can start a FocusTime session to block distractions during these periods, and this recipe will automatically log the time with Beeminder.
Popular services on IFTTT