matomo-org/matomo

Clarify "Keep Page URL fragments when tracking Page URLs" Option in Measurable Settings

Open

#22,791 opened on Nov 22, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)PHP (2,847 forks)batch import
EnhancementHelp wantedtriaged

Repository metrics

Stars
 (21,513 stars)
PR merge metrics
 (Avg merge 8d 11h) (106 merged PRs in 30d)

Description

Within the configuration of a measurable there is an option "Keep Page URL fragments when tracking Page URLs", this option is not super clear, could we precise that this is about #. Screenshot from 2024-11-22 10-51-13

Steps to reproduce

  1. Open the Matomo settings and navigate to the configuration of a Measurable.
  2. Locate the option labeled "Keep Page URL fragments when tracking Page URLs".
  3. Review the description or functionality associated with this option.

What I got:

The option "Keep Page URL fragments when tracking Page URLs" lacks clarity. It is not immediately clear that it refers to tracking the fragment identifier (#) in the URL, which can affect how analytics handle single-page applications or anchor-based navigation.

What I expected instead:

A more precise explanation for the option, such as:
"This setting determines whether the fragment identifier (e.g., #section) in URLs is included when tracking page views. Enable this if you want analytics to differentiate between sections of a page identified by # fragments."


Contributor guide