As Sigmund Freud and others have noted, there many influences that shape us as individuals. Pavlov and his dogs taught us about conditioning and showed how we can be trained to respond in a certain way to a particular stimulus. A modern technological variant in the press recently being an app linked wrist band that can give you an electric shock should you indulge in some bad habit such as smoking or perhaps even spending too much money. No doubt the hackers are looking forward to having some fun with this.
I personally like (and hope that it is true) the story that the creator of the shock giving device once hired someone to sit next to him and slap him on the face every time he was seen using (wasting time on) Facebook. Not Kierkegaard but probably more effective.