By default Matomo (Piwik) will remove the #hashtag part of the URL to keep your reports clean. However it is common that you wish to record the hash tags as they may contain interesting and relevant information.

To track URL hash tags (enable/disable) login as Super User, click on “Administration” and on “Websites”.

  • In the “Global websites settings” section, below the “Page URL fragments tracking” title, you can enable Hash tags tracking by enabling the checkbox “Keep Page URL fragments when tracking Page URLs”. This setting will be applied to all websites.
  • You may also enable/disable Hashtags tracking for each individual website. In the listing of Websites, click “Edit”. In the column “URLs”, below the help notice, you will find a checkbox “Keep Page URL fragments when tracking Page URLs”, which lets you set your preference for websites.


  • URL Hash Tags are only tracked when the user loaded the Page and the URL contained a hash tag. If the user loads example.html and then clicks on an anchor link to example.html#contact within this same page, Matomo will not track this click as a new page view.
  • If your app is a Single-Page-App, learn more about tracking page views in Single-Page-Apps
  • When #hashtags tracking is disabled, tracking Campaign parameters via the hash tag will still work as expected.
  • Without hashtags, goals or funnel steps associated with hashtags will not function correctly, as the hashtag is removed during tracking.
Previous FAQ: How to track error pages (404 pages) in Matomo? Which URLs are 404 and which referrers lead to these pages?