Advanced features

Track hash-router pages

Count route changes in apps with a hash router (yourdomain.com/#/pricing) as pageviews by adding supr-hash to the script.

Apps with a hash router keep the route after # (yourdomain.com/#/pricing). By default SuprAnalytics ignores the hash, so every route would be /. Add supr-hash="true":

<script defer supr-website-id="YOUR_WEBSITE_ID" supr-hash="true" src="…/js/script.js"></script>

Each hash change is then a pageview, and pages show as /#/pricing.

AI agent or LLM? Read this page as Markdown