Skip to content

Page Based Statistics: Inconsistancy when pages are moved in the page tree #4161

@jarlhengstmengel

Description

@jarlhengstmengel

Describe the Bug

When page accesses are fetched from Matomo, currently the whole url is construtcted. This creates the situation, that when a page is moved in the page tree, the historic data could get inconsitent. Since all slugs are (theoreticly) unique, it's enough to query matomo by region, language and page slug. This would prevent inconsistanies and simplify the code, since we wouldn't build the complete url for every page in a region anymore.

Example filter for one page: https://statistics.integreat-app.de/index.php?module=CoreHome&action=index&idSite=12&period=day&date=yesterday&updated=1#?period=day&date=2026-02-05&idSite=12&category=General_Actions&subcategory=General_Pages&segment=pageUrl%3D%24beratungsstellen-und-beh%252525C3%252525B6rden%3BpageUrl%3D%40%25252Fchildren%25252F%25253Fdepth%25253D2%252526url%25253D%25252Fstadtdachau%25252Fde

Steps to Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected Behavior

Actual Behavior

Screenshot

Additional Information

See discussion in Matomo

Traceback

Related Issues

Part of #1097

Summary of discussion and updates to the description

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions