I have created a SPA within a content editor. I now need to track clicks and page views statistics. The site cannot use any 3. Party tools, so it needs to stay within this SP solution. I'm thinking this can be done with lists, but has anyone done something like this before? I'm looking for list setup and approaches. :) Thanks in advance.
Extra info: there would properly be arround 10.000 people using this site.
Update: Sorry for these missing information. I only have access to create webparts and manage list. So only frontend code. I cannot change masterpages, run server-side code or anything like that.
In my SPA, I have a number of elements(divs and span) that I eould like to track clicks on. It seems, that based on the answers its possible to use a statistics webpart to track all the page views. But how can I track clicks on my elements? My first thought was to use the REST API to update a list with the clicks, but since there will be around 10.000 users clickin on it. I need to have timestamp on each click. Having the username for click is only nice-2-have.