Lookup hostname in current page's URL to set the site ID for the tracker request.
Subsites bubble up until match is found.
-
Clone the plugin into the plugins directory of your Piwik installation.
cd plugins/ git clone https://github.com/cryu/piwik-plugin-TrackSiteByUrl.git TrackSiteByUrl
-
Login as superuser into your Piwik installation and activate the plugin under Settings -> Plugins
If you are interested in contributing to this plugin, feel free to send pull requests!