matomo-org / matomo-org/matomo-for-wordpress

Support configuring a list of site URLs

Open
#545 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.