Hash routing

Hashrouting is a method of routing in web applications where the URL contains the # symbol, followed by a path that defines the current view or state of the application. It is used for navigation within a page without reloading it, and changes occur on the client side. For example, the URL could be: https://example.com/#/home.

The analytics script does not automatically detect if you are using hash routing. If you are using hash routing, you need to pass the data-hash-routing attribute in the script tag, with the default value set to false.

<script defer data-hash-routing="true"></script>

If you provide the attribute, the script will preserve paths with the # symbol without trimming them. If you do not provide the attribute, the script will trim paths containing the # symbol.