It depends on the analytics package you are using. Google Analytics uses a tracking code to track, not just a domain. They even have a way to make tracking so that it does not interfere with the site, if they also use Google Analytics. Their documents in event tracking on multiple domains can make a difference.
In fact, it all depends on how the tracking engine works. Try it, and don't forget to check and see if sites using the same engine are tracking (refer to FireBug or Chrome Dev tools to find relevant queries) to be a good neighbor.
source share