BJ Fogg has a few insights regarding good habit retention: https://www.youtube.com/watch?v=g56aKi-z05w
Basically if you look at it as a process, making sure not to overwhelm yourself before the habit becomes second nature, you have a better chance of succeeding at it.