Nowadays, numerous teachers are using Technology Enhanced Learning systems in various domains. The tracks analysis concerning students' actions logged by Technology Enhanced Learning systems can help teachers to improve their pedagogical scenarios making them more relevant to students. Very often analysis solutions are developed ad hoc and without considering the teachers observational needs. In our work, we consider i) that it is very important to identify teachers' needs; ii) to provide a formal description of indicators for capitalization; and iii) to facilitate sharing and reusing of indicators. In this paper, we present our proposal for obtaining these goals. Firstly, we describe our approach for tracking analysis, and the declarative language including the formalization of the calculation method for pedagogical indicators. Then, we present our developed tools (editor and interpreter). We also briefly present an experiment which validates our proposal.