cybersmog, The new #TYPO3 PAGEVIEW ContentObject in v13.1 is a real time saver. Out of the box it comes with the site, language and page objects and all the constants. And the @documentation team already did an awesome job and updated the TypoScript Reference:
https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/ContentObjects/Pageview/Index.html