We have a "work area" of the house-- a place that's only for work. And we don't work in other areas. Sometimes I like to work in coffee shops too.
I think the key is associating a place with getting things done, and associating everywhere else with nothing to do with work. Building up a routine really helps, having goals every day helps. And we don't have kids or roommates/other family members around, but if we did I imagine finding an uninterrupted space helps too (I know folks who purposefully get a coworking space or always work in coffee shops, for example).
Having a 'no work' zone in my house has been SO helpful.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.