Analyzing user behavior and user motivations