piwik_hosts_alias = [ "hostname1.com", "hostname2.com", ... ];
For some site configurations we need to support wildcards so you can specify hostname like:
*.hostname.com Keywords: piwik.js
In my patch (which doesn't use regular expressions), wildcards are specified in a separate variable.
piwik_hosts_alias = [ "example.com" ]; /* matches only example.com / piwik_wildcard_hosts_alias = [ ".example.com" ]; / matches *.example.com but not example.com */
Anthon, thanks for your patch. we would like to minimize complexity and no of variables involved. I suggest that we don't use regular expressions, but that the user can specify the domains in the same array piwik_hosts_alias with the notation *.domain.com
In the JS, you could look for the character * using substring and apply the same algorithm found in your patch.
Attachment includes tests added to page2.php, and rolls-up the piwik.js patches from #141 (revised per matt's comments), #248, and #351.
thanks for patch vipsoft; see 
Consider a host an alias host and not record the links to this domain as outlinks
[...] piwik_url = http://yourwebsite/piwik/piwik.php; piwik_hosts_alias = "hostname2.com"; // the current tracked website is added to this array anyway piwik_log(piwik_action_name, piwik_idsite, piwik_url); [...]
Wiki docs update looks good.