I’ve setup a Piwik installation which has two hostnames. One is for accessing UI (piwik.example.org), the other will be used for tracker (piwik-collector.example.org). For the tracker hostname, I’ve setup a vhost which only contains piwik.php and piwik.js. This works as expected.
Now I want to make it easier when getting the tracking code from the UI. As today when you’re using the UI hostname (piwik.example.org), you will see the UI hostname in the tracking code. I want to be able to see the tracker hostname (piwik-collector.example.org) in the tracking code instead.
Any thoughts on what would be the best approach?