Online educational platforms increasingly allow learners to consume content at their own pace with on-demand formats, in contrast to the synchronous content of traditional education. Thus, it is important to understand and model learner engagement within these environments. Using data from four business courses hosted on Coursera, we model learner behavior as a two-stage decision process, with the first stage determining across-day continuation versus quitting and the second stage determining within-day choices among lectures, quizzes, and breaks. By modeling the heterogeneity across learners pursuing lecture and quiz completion goals, we capture different patterns of consumption that correspond to extant theories of goal progress within an empirical field setting. We find that most individuals exhibit a learning style where lecture utility changes as an inverted-U-shaped function of current progress. Our model may also be used as an early detection system to anticipate changes in engagement and allows us to relate learning styles to final performance outcomes and enrollment in additional courses. Finally, we examine the role of quizzes in how consumption patterns vary across learners in different courses and between those who have paid or not paid for the option to earn a course certificate.