Tracking attendance in an online class can be tricky. A few tricks are having daily, or regular post or quizzes that need to be accomplished. The other trick, my preference, is a tracking system that allows you, the teacher, to see how often and for how long students are on. This can be taken further to look at what aspects of the course they are using.