Matomo has a small code snippet that you need to include in the Layout so that it can track the pages.