Online Learning is increasing rapidly every year. However, there are some factors which differ from the traditional classroom learning method. In online learning, teachers (hosts) cannot monitor every student (participants) at once which is possible in classroom learning. Hence, it is difficult to identify the attention of the learners. This paper proposes a Deep Learning approach to detect the attention level of the learners using Convolutional Neural Network in edge computing. Additionally the browser activity is tracked to further identify the attention level of the learner. The Neural Network classifies the attention of students to one of the four different categories, namely highly attentive, attentive, less attentive and least attentive. This attention level is computed on edge device and only the final output is sent to the server. As a result, low amount of bandwidth is consumed and privacy of the user is respected. The CNN model was trained using Dataset for Affective States in E-Environments (DAiSEE). An effective system accuracy of 84.1% was achieved during the experimentation.