True, the SharePoint site collection audit log does not track view events in SharePoint Online! This is only available with SharePoint Server on-premises.
But you can obtain the information from the Office 365 audit log using the Office 365 Management Activity API. The API is, however, only accessible to administrators. You can and should not query it directly from a user context in the browser.
One way to get the data would be to develop a background agent that subscribes to new events and writes them to a data store of your own choice. E.g. a SharePoint list, a SQL table, a complete SQL data warehouse or an Azure storage account. You can then query the data from there.