This PR provides the possibility to configure a list of host excluded from referrer detection.
The list can be maintained globally, as well as enriched per site.
Referrer on that exclusion list will be ignored on PHP side and such hits will be handled as DIRECT entry.
@sgiehl I haven't reviewed yet, but based on your comment in the other issue, can we add
paypal.com to the "global" list of excluded referrers so that users don't have to configure it and it just works for people out of the box?
I'm not able to say if there might be reasons for someone to not having it excluded, but yes, I can let it be added to the list once on update or install.
@bx80 I've created a PR for the developer docs, so the new methods will be documented. Feel free to review and merge that one.
In addition I've updated the FAQ: https://matomo.org/faq/how-to/how-do-i-add-a-referral-exclusion-in-matomo/