Based on another PR to merge first: https://github.com/piwik/piwik/pull/9933
setDomains("example.com/index*") will correctly not track an outlink request for example.com/index.html or example.com/index_en.html
The user guide for this new capability: https://github.com/piwik/developer-documentation/pull/122/files?short_path=60f3612#diff-60f3612107814f4dba4f161a21efa02e
LGTM. Maybe we should add this new feature to the developer changelog?
Also I cannot merge it probably because of a conflict with piwik.js maybe. I could resolve that later.
merged in https://github.com/piwik/piwik/pull/9979