This PR add to new feature to tracking code:
Branch is rebased. I hope that now it'll work.
@czolnowski look at "files" -> the pull requests contains lots of changes un-related to your PR. Maybe you can create a new PR if that's easier?
Closing. New PR is here: https://github.com/piwik/piwik/pull/6380