Page View Event (Create an event listener that track page, especially when they are viewed)

I want to know when a page is viewed then get the page id and setReferelLink and count the number of views.
Is there such event in confluence server, if so would you please point me to the doc or give an explanation on how I could do this. Thank you in advance

If you included Google Analytics tracking code on you page, this would be sent to your Google Analytics.

That works well if you want to track in the frontend. In the backend you’ll probably rather listen for the PageViewEvent. :slight_smile:

After this is received in the backend, how do we send the data to google analytics. I check the SDK It seems that you have to put in some of the private key. Not sure if that is a good idea as this is running on client’s environment.