Plausible Analytics integrates automatically with modern
pushState based frontend routers. If you're running a single-page application
with React, Angular, Vue or similar frameworks, you don't need to add any extra configuration to make analytics work.
You can verify this by installing the Plausible Analytics script and checking the "Network" tab in your devtools. Each time you navigate to a new page, an HTTP POST request to
https://plausible.io/api/event should be triggered.
If you're using a frontend framework that uses the URL hash for routing, you need to take an extra step to install the hash-based tracker instead of the default one. See details here.