If your website is a Single Page Application (so you are using JavaScript instead of regular links for page changes) Matomo can’t automatically detect when you are changing the page.
To fix this you need to call _paq.push(['trackPageView']); whenever Matomo should track a new page (after setting the new URL and Title)