I've just noticed in SPO in Office 365, in the pages library they show page views.
Any ideas how one would go about getting that via REST or another method to display that in the page layout?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityUse REST API and managed properties to get page views
For recently viewed page you can use "ViewsRecent" and while "ViewsLifeTime" is update every 14 or 15 days.
You can use SharePoint 2013 Search Query Tool to generate REST queries on the fly and refine searches
https://some-SharePoint-online-tenant.sharepoint.com/_api/search/query?querytext='*'&rowlimit=10&sortlist='viewsrecent:descending'
Good luck!