How can I track anchor elements (#)?

Administration

Needed permissions: owner

By default, Piwik PRO keeps anchor elements (#) in page URLs. In reports, you’ll see full page URLs like clearbank.com/product-tour#first-step. But if you want, you can turn this setting off.

For a website or app

To turn off tracking anchor elements (#), follow these steps:

Available from version 16.0.0. For versions below 16.0.0, go to Menu > Administration > Websites & apps > Settings > Keep page URL fragments when tracking.

  1. Go to Menu > Administration.
  2. Navigate to Sites & apps.
  3. On the left, select the site or app you want to work with.
  4. Navigate to Data collection > Page URLs.
  5. Turn off Keep page URL fragments when tracking
    Keep anchors in page URLs (off)

For the whole account

To turn off tracking anchor elements (#), follow these steps:

  1. Go to Menu > Settings.
  2. Navigate to Data collection > Page URLs.
  3. Turn off Keep page URL fragments when tracking
    Keep anchors in page URLs (off)

Was this article helpful?

Technical support

If you still have some questions, visit our community.
There’s always someone ready to help!

Back to help center