Piwik.js generating 404

I’m hosting piwik under one domain but tracking another domain with it, though both are on the same server. In my 404 error log, a 404 error called “/piwik/piwik.js” is generated for every page someone visits. What can be done about this problem?

Thanks!

Check the JavaScript tracking tag on the pages with the domain that you’re tracking. Generally, pkBaseURL should be the domain where Piwik is installed (unless you’re using a proxy, or domain aliases for a single vhost).