Eye tracking studies have widely been used in improving the design and usability of web pages, and in the research of understanding how users navigate them. However, there is limited research in clustering users' eye movement sequences (i.e., scanpaths) on web pages to identify a general direction they follow. Existing research tends to be reductionist which means the resulting path is so short that is not useful. Moreover, there is little work on correlating users' scanpaths with visual elements of web pages and the underlying source code which means the result cannot be used for further processing. In order to address these limitations, we introduce a new concept in clustering scanpaths called Scanpath Trend Analysis (STA) which does not only consider the visual elements visited by all users, but also considers the visual elements visited by the majority in any order. We present an algorithm which automatically does this trend analysis to identify a trending scanpath of multiple web users in terms of visual elements of a web page. In contrast to existing research, the STA algorithm first analyses mostly visited visual elements in given scanpaths, then clusters the scanpaths by using these visual elements based on their overall positions in the individual scanpaths, and then constructs a trending scanpath in terms of these visual elements. This algorithm was experimentally evaluated by an eye tracking study on six web pages for two different kinds of tasks, and therefore 12 cases in total. Our experimental results show that the STA algorithm generates a trending scanpath that addresses the reductionist problem of existing work by preventing the loss of commonly visited visual elements for all the cases. Based on the statistical tests, the STA algorithm also generates a trending scanpath which is significantly more similar to the inputted scanpaths compared to other existing work in 10 out of 12 cases. In the rest of the cases, the STA algorithm still performs significantly better than some of other existing work. This algorithm contributes to behaviour analysis research on the web which can be used for different purposes, for example re-engineering web pages guided by the trending scanpath to improve users' experience or guiding designers to improve their design.