Digital technology influences behaviours, moods and wellbeing. The relationships are complex, but users are increasingly interested in finding how to balance a digital life with psychological wellbeing. We describe MindGauge, a mobile app that helps users collect and analyse data about moods and behaviours. In this study, we collected computer and smartphone usage and self-reports from 72 participants by using MindGauge and RescueTime. We examined the relationship between productivity, task-switching, mood and lifestyle. The results show that a measure of productivity is positively correlated with task-switching occurrences. Also, that more task-switching is associated with negative moods. A few lifestyle aspects, such as sleep quality, have a significant relationship with task-switching and productivity. We also contribute a mood detection model that utilise both digital footprints and lifestyle contexts, yielding a 87% accuracy. The study provides new results, and tools, to understand the impact of technology on wellbeing.