matomo-org / matomo-org/matomo-for-wordpress
Support configuring a list of site URLs
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 145
- Forks
- 35
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 6
Description
see https://matomo.org/faq/how-to/how-do-i-add-a-referral-exclusion-in-matomo/
In Matomo for WordPress this feature is currently not available.
Not sure how we could let a user configure additional URLs best? As it's rare maybe it would be enough to let users define a constant in wp-config.php and we add the configured URLs to the list of site urls. Not sure though if we can already hook into this and dynamically add these sites. However, we could potentially read the constant defined in wp-config.php and then configure this as part of the site/sync scheduled task if needed. However, this would mean that it would take a while for a constant change to be active which may not be what users expect and they'd think the feature is not working.
Possibly we can hook into the `Site.setSites` event and add more sites dynamically, maybe.
The goal of this issue is to make the referral exclusion work without having this manage measurable page.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked referral-exclusion FAQ and investigate whether the Matomo `Site.setSites` event can add configured URLs dynamically. Compare that with reading a constant from `wp-config.php` and determine how configuration changes would be applied. Done means referral exclusion works without requiring a manageable site.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100